-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathLiquidPro Simple Forms.xml
3346 lines (2880 loc) · 160 KB
/
LiquidPro Simple Forms.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0" encoding="utf-8"?>
<addon addon_id="LiquidPro_SimpleForms" title="LiquidPro Simple Forms" version_string="2.1.9g" version_id="21909" url="https://xenforo.com/community/threads/simple-forms-paid-deleted.27945" install_callback_class="LiquidPro_SimpleForms_Version" install_callback_method="Install" uninstall_callback_class="LiquidPro_SimpleForms_Version" uninstall_callback_method="Uninstall">
<admin_navigation>
<navigation navigation_id="createForm" parent_navigation_id="simpleForms" display_order="60" link="forms/add" admin_permission_id="form" debug_only="0" hide_no_children="0"/>
<navigation navigation_id="displaySimpleForms" parent_navigation_id="simpleForms" display_order="1" link="forms" admin_permission_id="form" debug_only="0" hide_no_children="0"/>
<navigation navigation_id="documentation" parent_navigation_id="simpleForms" display_order="99999" link="forms/documentation" admin_permission_id="form" debug_only="0" hide_no_children="0"/>
<navigation navigation_id="globalFields" parent_navigation_id="simpleForms" display_order="80" link="fields/globals" admin_permission_id="form" debug_only="0" hide_no_children="0"/>
<navigation navigation_id="simpleForms" parent_navigation_id="applications" display_order="100" link="forms" admin_permission_id="form" debug_only="0" hide_no_children="0"/>
<navigation navigation_id="templateFields" parent_navigation_id="simpleForms" display_order="70" link="fields/templates" admin_permission_id="form" debug_only="0" hide_no_children="0"/>
</admin_navigation>
<admin_permissions>
<admin_permission admin_permission_id="form" display_order="2000"/>
</admin_permissions>
<admin_style_properties/>
<admin_templates>
<template title="destination_options.css"><![CDATA[#fieldHelper {
display:none;
background-color: #FCFCFF;
border: 1px solid #65A5D1;
border-radius: 5px 5px 5px 5px;
box-shadow: 0 0 15px #666666;
font-size: 11px;
padding: 2px;
width: 198px;
z-index: 7500;
position: absolute;
right: -168px;
}
#fieldHelper span.close {
float: right;
}
#fieldHelper span.close a {
background: url("styles/default/xenforo/permissions/deny.png") no-repeat scroll center center transparent;
cursor: pointer;
display: block;
height: 20px;
overflow: hidden;
padding: 5px;
text-indent: -1000px;
white-space: nowrap;
width: 20px;
}
#fieldHelper span.title {
color: #65A5D1;
float: left;
font-size: 11pt;
line-height: 20px;
padding:5px;
}
#fieldHelper ul.fields {
clear: both;
padding: 5px !important;
margin: 0 !important;
}
#fieldHelper ul.fields li {
list-style: none !important;
line-height: 20px !important;
padding: 0 0 5px 0 !important;
}]]></template>
<template title="destination_options_edit"><![CDATA[<xen:foreach loop="$formDestination.options" value="$option">
<xen:if is="{$option.field_type} == 'textbox'">
<xen:textboxunit label="{xen:if "{$option.title} != ''", '{$option.title}:', ''}" explain="{xen:raw $option.description}"
name="destination_options[{$formDestination.form_destination_id}][{$option.option_id}]" id="ctrl_destination_options_{$formDestination.form_destination_id}_{$option.option_id}"
value="{$option.option_value}" maxlength="{xen:if $option.max_length, $option.max_length}" inputclass="{xen:if $option.format_params.inputClass, $option.format_params.inputClass }" data-acDisplay="{xen:if $option.format_params.data-acDisplay, $option.format_params.data-acDisplay}" data-acUrl="{xen:if $option.format_params.data-acUrl, {xen:adminlink $option.format_params.data-acUrl} }"
/>
<xen:elseif is="{$option.field_type} == 'textarea'" />
<xen:textboxunit label="{xen:if "{$option.title} != ''", '{$option.title}:', ''}" explain="{xen:raw $option.description}"
name="destination_options[{$formDestination.form_destination_id}][{$option.option_id}]" id="ctrl_destination_options_{$formDestination.form_destination_id}_{$option.option_id}"
value="{$option.option_value}" rows="2" inputclass="{xen:if $option.format_params.inputClass, $option.format_params.inputClass }"
/>
<xen:elseif is="{$option.field_type} == 'radio'" />
<xen:radiounit label="{xen:if "{$option.title} != ''", '{$option.title}:', ''}" explain="{xen:raw $option.description}"
name="destination_options[{$formDestination.form_destination_id}][{$option.option_id}]" id="ctrl_destination_options_{$formDestination.form_destination_id}_{$option.option_id}" value="{$option.option_value}"
>
<xen:options source="$option.destinationOptionChoices" />
</xen:radiounit>
<xen:elseif is="{$option.field_type} == 'select'" />
<xen:selectunit label="{xen:if "{$option.title} != ''", '{$option.title}:', ''}" explain="{xen:raw $option.description}"
name="destination_options[{$formDestination.form_destination_id}][{$option.option_id}]" id="ctrl_destination_options_{$formDestination.form_destination_id}_{$option.option_id}" value="{$option.option_value}"
>
<xen:option value=""> </xen:option>
<xen:options source="$option.field_choices" />
</xen:selectunit>
<xen:elseif is="{$option.field_type} == 'checkbox'" />
<xen:checkboxunit label="{xen:if "{$option.title} != ''", '{$option.title}:', ''}" explain="{xen:raw $option.description}"
name="destination_options[{$formDestination.form_destination_id}][{$option.option_id}]" id="ctrl_destination_options_{$formDestination.form_destination_id}_{$option.option_id}" value="{$option.option_value}"
>
<xen:foreach loop="$option.destinationOptionChoices" key="$_choiceId" value="$_choice">
<xen:option value="{$_choiceId}" selected="isset({$option.option_value.{$_choiceId}})">{$_choice}</xen:option>
</xen:foreach>
</xen:checkboxunit>
<xen:elseif is="{$option.field_type} == 'multiselect'" />
<xen:selectunit label="{xen:if "{$option.title} != ''", '{$option.title}:', ''}" explain="{xen:raw $option.description}"
name="destination_options[{$formDestination.form_destination_id}][{$option.option_id}]" id="ctrl_destination_options_{$formDestination.form_destination_id}_{$option.option_id}" value="{xen:raw $option.option_value}"
size="7" multiple="multiple"
>
<xen:option value=""> </xen:option>
<xen:options source="$option.destinationOptionChoices" />
</xen:selectunit>
<xen:elseif is="{$option.field_type} == 'array'" />
<dl class="ctrlUnit">
<dt>{xen:if "{$option.title} != ''", '{$option.title}:', ''}</dt>
<dd>
<ul class="PollResponseContainer">
<xen:foreach loop="$option.option_value" value="$choice">
<li><input type="text" name="destination_options[{$formDestination.form_destination_id}][{$option.option_id}][]" class="textCtrl" placeholder="{xen:phrase poll_choice}..." maxlength="100" value="{xen:raw $choice}" /></li>
</xen:foreach>
<li><input type="text" name="destination_options[{$formDestination.form_destination_id}][{$option.option_id}][]" class="textCtrl" placeholder="{xen:phrase poll_choice}..." maxlength="100" /></li>
<li><input type="text" name="destination_options[{$formDestination.form_destination_id}][{$option.option_id}][]" class="textCtrl" placeholder="{xen:phrase poll_choice}..." maxlength="100" /></li>
</ul>
<input type="button" value="{xen:phrase add_additional_response}" class="button smallButton FieldAdder JsOnly" data-source="ul.PollResponseContainer li" data-maxfields="{$xenOptions.pollMaximumResponses}" />
</dd>
</dl>
<xen:elseif is="{$option.field_type} == 'callback'" />
{xen:raw $option.preparedOption}
</xen:if>
<input type="hidden" name="destination_options_shown[{$formDestination.form_destination_id}][]" value="{$option.option_id}" />
</xen:foreach>]]></template>
<template title="field_edit.css"><![CDATA[td.mceIframeContainer iframe{min-height:214px;}
.sortable-item {background:url({xen:property imagePath}/liquidpro/simpleforms/acp-icons/arrow_ns.png) no-repeat 415px 50%;}
.ui-state-highlight {height:25px;line-height:25px;background:#f0f7fc url('styles/default/xenforo/gradients/form-button-white-25px.png') repeat-x top;border:1px solid #A5CAE4;}]]></template>
<template title="field_edit.js"><![CDATA[<script type="text/javascript">
$(function() {
$("#sortable").sortable({
items: "li:not(.ui-state-disabled)",
placeholder: "ui-state-highlight"
});
});
</script>]]></template>
<template title="lpsf_destination_delete"><![CDATA[<xen:title>{xen:phrase confirm_deletion_of_destination}: {$destination.name}</xen:title>
<xen:h1>{xen:phrase confirm_deletion_of_destination}</xen:h1>
<xen:navigation>
<xen:breadcrumb href="{xen:adminlink 'destinations', $destination}">{$destination.name}</xen:breadcrumb>
</xen:navigation>
<xen:require css="delete_confirmation.css" />
<xen:form action="{xen:adminlink 'destinations/delete'}" class="deleteConfirmForm formOverlay">
<p>{xen:phrase please_confirm_want_to_delete_destination}:</p>
<strong><a href="{xen:adminlink 'destinations/edit', $destination}">{$destination.name}</a></strong>
<input type="hidden" name="destination_id" value="{$destination.destination_id}" />
<input type="hidden" name="_xfConfirm" value="1" />
<xen:submitunit save="{xen:phrase delete_destination}" />
</xen:form>]]></template>
<template title="lpsf_destination_edit"><![CDATA[<xen:title>{xen:if {$destination.destination_id}, '{xen:phrase edit_destination}: {$destination.name}', '{xen:phrase create_new_destination}'}</xen:title>
<xen:if is="{$destination.destination_id}">
<xen:navigation>
<xen:breadcrumb href="{xen:adminlink destinations}#{xen:helper listitemid, $destination.destination_id}">{$destination.name}</xen:breadcrumb>
</xen:navigation>
</xen:if>
<xen:form action="{xen:adminlink 'destinations/save', $destination}"
class="AutoValidator"
data-fieldValidatorUrl="{xen:adminlink 'destinations/validate-field', $destination}"
data-redirect="yes">
<fieldset>
<xen:textboxunit name="name" value="{$destination.name}" label="{xen:phrase lpsf_destination_name}:" data-liveTitleTemplate="{xen:if {$destination.destination_id},
'{xen:phrase edit_destination}: <em>%s</em>',
'{xen:phrase create_new_destination}: <em>%s</em>'}">
</xen:textboxunit>
</fieldset>
<fieldset>
<xen:textboxunit name="display_order" value="{$destination.display_order}" label="{xen:phrase display_order}:">
</xen:textboxunit>
<xen:textboxunit name="handler_class" value="{$destination.handler_class}" label="{xen:phrase handler_class}:">
</xen:textboxunit>
</fieldset>
<xen:submitunit save="{xen:phrase save_destination}">
<xen:if is="{$destination.destination_id}">
<input type="button" value="{xen:phrase delete_destination}..." accesskey="d" class="button OverlayTrigger"
data-href="{xen:adminlink destinations/delete, $destination}" />
</xen:if>
</xen:submitunit>
</xen:form>]]></template>
<template title="lpsf_destination_list"><![CDATA[<xen:title>{xen:phrase destinations}</xen:title>
<xen:topctrl>
<a href="{xen:adminlink 'destinations/add'}" class="button" accesskey="a">+ {xen:phrase create_new_destination}</a>
</xen:topctrl>
<xen:require css="filter_list.css" />
<xen:require js="js/xenforo/filter_list.js" />
<xen:form action="{xen:adminlink destinations}" class="section">
<xen:if is="{$destinations}">
<h2 class="subHeading">
<xen:include template="filter_list_controls" />
{xen:phrase destinations}
</h2>
<ol class="FilterList Scrollable">
<xen:foreach loop="$destinations" value="$destination">
<xen:listitem
id="{$destination.destination_id}"
label="{$destination.name}"
href="{xen:adminlink 'destinations/edit', $destination}"
delete="{xen:adminlink 'destinations/delete', $destination}">
</xen:listitem>
</xen:foreach>
</ol>
<p class="sectionFooter">{xen:phrase showing_x_of_y_items, 'count=<span class="FilterListCount">{xen:count $destinations}</span>', 'total={xen:count $destinations}'}</p>
<xen:else />
<div class="noResults">{xen:phrase there_no_destinations_defined}</div>
</xen:if>
</xen:form>]]></template>
<template title="lpsf_destination_option_thread_poll"><![CDATA[<xen:container var="$head.pollCss"><style>.hasJs .PollNonJsInput { display: none }</style></xen:container>
<dl class="ctrlUnit">
<dt><label for="ctrl_poll_question">{xen:phrase question}:</label></dt>
<dd><input type="text" name="destination_options[{$option.option_id}][question]" class="textCtrl FormFieldHelper" id="ctrl_poll_question" value="{$option.option_value.question}" maxlength="100" /></dd>
</dl>
<dl class="ctrlUnit">
<dt>{xen:phrase possible_responses}:</dt>
<dd>
<ul class="PollResponseContainer">
<xen:if is="{$option.option_value.responses}">
<xen:foreach loop="$option.option_value.responses" key="$pollResponseId" value="$response">
<li>
<input type="text" name="destination_options[{$option.option_id}][responses][{$pollResponseId}]" value="{$response}" class="textCtrl" placeholder="{xen:phrase poll_choice}..." maxlength="100" />
</li>
</xen:foreach>
</xen:if>
<xen:if is="{xen:count $option.option_value.responses} < {$xenOptions.pollMaximumResponses}">
<li><input type="text" name="destination_options[{$option.option_id}][responses][]" class="textCtrl" placeholder="{xen:phrase poll_choice}..." maxlength="100" /></li>
</xen:if>
</ul>
<input type="button" value="{xen:phrase add_additional_response}" class="FieldAdder button smallButton" data-source="ul.PollResponseContainer li" data-maxfields="{$xenOptions.pollMaximumResponses}" />
</dd>
</dl>
<!-- slot: after_poll_responses -->
<xen:if is="{$xenOptions.currentVersionId} >= 1040000">
<dl class="ctrlUnit">
<dt>{xen:phrase maximum_selectable_responses}:</dt>
<dd>
<ul>
<xen:if is="{$option.option_value.max_votes} == 1">
<li><label><input type="radio" name="destination_options[{$option.option_id}][max_votes_type]" value="single" {xen:checked '{$option.option_value.max_votes} == 1'} /> {xen:phrase single_choice}</label></li>
</xen:if>
<li><label><input type="radio" name="destination_options[{$option.option_id}][max_votes_type]" value="unlimited" {xen:checked '{$option.option_value.max_votes} == 0'} /> {xen:phrase unlimited}</label></li>
<li><input type="radio" name="destination_options[{$option.option_id}][max_votes_type]" value="number" class="Disabler" id="ctrl_max_votes_type_value" {xen:checked '{$option.option_value.max_votes} > 1'} />
<span id="ctrl_max_votes_type_value_Disabler">
<input type="number" class="textCtrl number SpinBox" name="max_votes_value" value="{xen:if '{$option.option_value.max_votes} > 1', $option.option_value.max_votes, 2}" min="1" step="1" />
</span>
</li>
</ul>
<p class="explain">
{xen:phrase this_is_maximum_number_responses_voter_may_select}
</p>
</dd>
</dl>
</xen:if>
<dl class="ctrlUnit">
<dt>{xen:phrase options}:</dt>
<dd>
<ul>
<xen:if is="{$xenOptions.currentVersionId} >= 1040000">
<li><label><input type="checkbox" name="destination_options[{$option.option_id}][change_vote]" value="1" {xen:checked '{$option.option_value.change_vote} == 1'} /> {xen:phrase allow_voters_to_change_their_votes}</label></li>
</xen:if>
<xen:if is="{$xenOptions.currentVersionId} < 1040000">
<li><label for="ctrl_poll_multiple"><input type="checkbox" name="destination_options[{$option.option_id}][multiple]" value="1" id="ctrl_poll_multiple" {xen:checked '{$option.option_value.max_votes} == 0'} /> {xen:phrase allow_selection_of_multiple_responses}</label></li>
</xen:if>
<li><label><input type="checkbox" name="destination_options[{$option.option_id}][public_votes]" value="1" {xen:checked '{$option.option_value.public_votes} == 1'} /> {xen:phrase display_votes_publicly}</label></li>
<xen:if is="{$xenOptions.currentVersionId} >= 1040000">
<li><label><input type="checkbox" name="destination_options[{$option.option_id}][view_results_unvoted]" value="1" {xen:checked '{$option.option_value.view_results_unvoted} == 1'} /> {xen:phrase allow_results_to_be_viewed_without_voting}</label></li>
</xen:if>
<li><label><input type="checkbox" name="destination_options[{$option.option_id}][close]" value="1" class="Disabler" id="ctrl_poll_close" {xen:checked '{$option.option_value.close} > 0'} /> {xen:phrase close_this_poll_after}:</label>
<ul id="ctrl_poll_close_Disabler">
<li>
<input type="text" size="5" name="destination_options[{$option.option_id}][close_length]" value="{$option.option_value.close_length}" class="textCtrl autoSize" />
<select name="destination_options[{$option.option_id}][close_units]" class="textCtrl autoSize">
<option value="hours" {xen:if "{$option.option_value.close_units} == 'hours'", 'selected="selected"'}>{xen:phrase hours}</option>
<option value="days" {xen:if "{$option.option_value.close_units} == 'days'", 'selected="selected"'}>{xen:phrase days}</option>
<option value="weeks" {xen:if "{$option.option_value.close_units} == 'weeks'", 'selected="selected"'}>{xen:phrase weeks}</option>
<option value="months" {xen:if "{$option.option_value.close_units} == 'months'", 'selected="selected"'}>{xen:phrase months}</option>
</select>
</li>
</ul>
</li>
</ul>
</dd>
</dl>]]></template>
<template title="lpsf_destination_option_thread_prefix"><![CDATA[<xen:selectunit label="{xen:if "{$option.title} != ''", '{$option.title}:', ''}" explain="{xen:raw $option.description}"
name="destination_options[{$option.option_id}]" id="ctrl_destination_options_{$option.option_id}" value="{$option.option_value}"
>
<xen:option value=""> </xen:option>
<xen:options source="$option.field_choices" />
</xen:selectunit>]]></template>
<template title="lpsf_field_add_type"><![CDATA[<xen:title>{xen:phrase add_field}</xen:title>
<xen:form action="{xen:adminlink 'fields/add'}">
<xen:radiounit name="type" label="{xen:phrase field_type}:" hint="{xen:phrase what_kind_of_field_do_you_want_to_add}">
<xen:options source="$options" selected="user" />
</xen:radiounit>
<input type="hidden" name="form_id" value="{$formId}" />
<xen:submitunit save="{xen:phrase proceed}..." />
</xen:form>]]></template>
<template title="lpsf_field_delete"><![CDATA[<xen:title>{xen:phrase confirm_deletion_of_field}: {$field.name}</xen:title>
<xen:h1>{xen:phrase confirm_deletion_of_field}</xen:h1>
<xen:navigation>
<xen:breadcrumb href="{xen:adminlink 'fields/edit', $field}">{$field.name}</xen:breadcrumb>
</xen:navigation>
<xen:require css="delete_confirmation.css" />
<xen:form action="{xen:adminlink 'fields/delete'}" class="deleteConfirmForm formOverlay">
<p>{xen:phrase please_confirm_want_to_delete_field}:</p>
<strong><a href="{xen:adminlink 'fields/edit', $field}">{$field.title}</a></strong>
<input type="hidden" name="field_id" value="{$field.field_id}" />
<input type="hidden" name="_xfConfirm" value="1" />
<input type="hidden" name="form_id" value="{$field.form_id}">
<xen:submitunit save="{xen:phrase delete_field}" />
</xen:form>]]></template>
<template title="lpsf_field_edit"><![CDATA[<xen:require css="public:editor_ui.css" />
<xen:require css="public:lpsf_jquery_timepicker.css" />
<xen:require css="field_edit.css" />
<xen:include template="field_edit.js" />
<xen:require js="js/liquidpro/simpleforms/jquery.timepicker.js" />
<xen:require js="js/liquidpro/simpleforms/simpleforms.js" />
<xen:require js="js/liquidpro/simpleforms/jquery-ui.custom.js" />
<xen:if is="{$field.type} == 'user'">
<xen:title>{xen:if {$field.field_id}, '{xen:phrase edit_field}: {$field.title}', '{xen:phrase create_new_field}'}</xen:title>
<xen:navigation>
<xen:breadcrumb href="{xen:adminlink forms/edit, $form}#{xen:helper listitemid, $form.form_id}">{$form.title}</xen:breadcrumb>
<xen:breadcrumb href="{xen:adminlink fields/edit, $field}#{xen:helper listitemid, $field.field_name}">{$field.title}</xen:breadcrumb>
</xen:navigation>
<xen:elseif is="{$field.type} == 'global'" />
<xen:title>{xen:if {$field.field_id}, '{xen:phrase edit_global_field}: {$field.title}', '{xen:phrase create_new_global_field}'}</xen:title>
<xen:if is="{$field.field_id}">
<xen:navigation>
<xen:breadcrumb href="{xen:adminlink fields/globals}">{xen:phrase global_fields}</xen:breadcrumb>
<xen:breadcrumb href="{xen:adminlink fields/edit, $field}#{xen:helper listitemid, $field.field_name}">{$field.title}</xen:breadcrumb>
</xen:navigation>
<xen:else />
<xen:navigation>
<xen:breadcrumb href="{xen:adminlink fields/globals}">{xen:phrase global_fields}</xen:breadcrumb>
</xen:navigation>
</xen:if>
<xen:else />
<xen:title>{xen:if {$field.field_id}, '{xen:phrase edit_template_field}: {$field.title}', '{xen:phrase create_new_template_field}'}</xen:title>
<xen:if is="{$field.field_id}">
<xen:navigation>
<xen:breadcrumb href="{xen:adminlink fields/templates}">{xen:phrase template_fields}</xen:breadcrumb>
<xen:breadcrumb href="{xen:adminlink fields/edit, $field}#{xen:helper listitemid, $field.field_name}">{$field.title}</xen:breadcrumb>
</xen:navigation>
<xen:else />
<xen:navigation>
<xen:breadcrumb href="{xen:adminlink fields/templates}">{xen:phrase template_fields}</xen:breadcrumb>
</xen:navigation>
</xen:if>
</xen:if>
<xen:form action="{xen:adminlink 'fields/save', $field}" class="AutoValidator" data-redirect="on">
<ul class="tabs Tabs" data-panes="#userFieldPanes > li">
<xen:hook name="admin_field_edit_tabs">
<li class="active"><a>{xen:phrase basic_information}</a></li>
<!-- slot: after_basic_information -->
<xen:if is="!{$field.parent_field_id}">
<xen:if is="!{$existingType} OR {$existingType} == 'text'">
<li><a>{xen:phrase options_for_text_fields}</a></li>
</xen:if>
</xen:if>
<!-- slot: after_options_for_text_fields -->
<xen:if is="!{$field.parent_field_id}">
<xen:if is="!{$existingType} OR {$existingType} == 'single' OR {$existingType} == 'multiple'">
<li><a>{xen:phrase options_for_choice_fields}</a></li>
</xen:if>
</xen:if>
<!-- slot: after_options_for_choice_fields -->
<li><a>{xen:phrase general_options}</a></li>
<!-- slot: after_general_information -->
</xen:hook>
</ul>
<ul id="userFieldPanes">
<xen:hook name="admin_field_edit_panes">
<li>
<xen:hook name="field_edit_basic_information">
<!-- slot: before_field_id -->
<xen:textboxunit label="{xen:phrase field_id}:" name="field_name" value="{$field.field_name}">
<xen:explain>{xen:phrase lpsf_this_is_unique_identifier_for_field}</xen:explain>
</xen:textboxunit>
<!-- slot: after_field_id -->
<xen:if hascontent="true">
<fieldset>
<xen:contentcheck>
<xen:if is="{$field.type} != 'global'">
<!-- slot: before_title -->
<xen:textboxunit label="{xen:phrase title}:" name="title" value="{$masterTitle}" data-liveTitleTemplate="{xen:if {$field.field_id},
'{xen:phrase edit_field}: <em>%s</em>',
'{xen:phrase create_new_field}: <em>%s</em>'}" />
<!-- slot: after_title-->
</xen:if>
<xen:if is="{$field.type} != 'global'">
<xen:checkboxunit label="">
<xen:option name="hide_title" selected="{$field.hide_title}">{xen:phrase hide_title}</xen:option>
</xen:checkboxunit>
<!-- slot: after_hide_title -->
</xen:if>
<xen:if is="{$field.type} != 'global'">
<xen:textboxunit label="{xen:phrase description}:" name="description" value="{$masterDescription}" rows="2" inputclass="Elastic" />
<!-- slot: after_description -->
</xen:if>
<xen:if is="{$field.type} != 'global' AND {$field.type} != 'template'">
<xen:checkboxunit label="">
<xen:option name="active" selected="{$field.active}">{xen:phrase field_is_active}</xen:option>
</xen:checkboxunit>
<!-- slot: after_active -->
</xen:if>
</xen:contentcheck>
</fieldset>
</xen:if>
<xen:if hascontent="true">
<fieldset>
<xen:contentcheck>
<xen:if is="{$field.type} != 'global'">
<!-- slot: before_display_order -->
<xen:spinboxunit label="{xen:phrase display_order}:" name="display_order" value="{$field.display_order}" min="0" />
<!-- slot: after_display_order -->
</xen:if>
</xen:contentcheck>
</fieldset>
</xen:if>
<xen:if is="!{$existingType}">
<fieldset>
<!-- slot: before_field_type -->
<xen:radiounit label="{xen:phrase field_type}:" name="field_type" value="{$field.field_type}">
<xen:options source="$validFieldTypes" />
</xen:radiounit>
<!-- slot: after_field_type -->
</fieldset>
</xen:if>
<xen:if hascontent="true">
<fieldset>
<xen:contentcheck>
<xen:if is="{$field.type} != 'global'">
<!-- slot: before_pre_text -->
<dl class="ctrlUnit">
<dt>
<label for="pre_text">{xen:phrase lpsf_pre_text}:</label>
</dt>
<dd>
{xen:raw $preTextEditor}
</dd>
</dl>
</xen:if>
<xen:if is="{$field.type} != 'global'">
<!-- slot: before_post_text -->
<dl class="ctrlUnit">
<dt>
<label for="post_text">{xen:phrase lpsf_post_text}:</label>
</dt>
<dd>
{xen:raw $postTextEditor}
</dd>
</dl>
<!-- slot: after_post_text -->
</xen:if>
</xen:contentcheck>
</fieldset>
</xen:if>
</xen:hook>
</li>
<!-- slot: after_basic_information -->
<xen:if is="{$existingType} == 'rating'">
<input type="hidden" name="field_type" value="{$field.field_type}"/>
</xen:if>
<xen:if is="!{$existingType} OR {$existingType} == 'text'">
<xen:hook name="field_edit_options_for_text_fields">
<xen:if hascontent="true">
<li>
<xen:contentcheck>
<xen:if is="!{$field.parent_field_id}">
<xen:if is="{$existingType}">
<!-- slot: before_text_field_type -->
<xen:radiounit label="{xen:phrase field_type}:" name="field_type" value="{$field.field_type}">
<xen:options source="$validFieldTypes" />
</xen:radiounit>
<!-- slot: after_text_field_type -->
</xen:if>
</xen:if>
<xen:if is="!{$field.parent_field_id}">
<fieldset>
<!-- slot: before_match_type -->
<xen:radiounit label="{xen:phrase value_match_requirements}:" name="match_type" value="{$field.match_type}" hint="{xen:phrase empty_values_always_allowed}">
<xen:option value="none">{xen:phrase none}</xen:option>
<xen:option value="number">{xen:phrase number}</xen:option>
<xen:option value="alphanumeric">{xen:phrase a_z_0_9_and_only}</xen:option>
<xen:option value="email">{xen:phrase email_address}</xen:option>
<xen:option value="url">URL</xen:option>
<xen:option value="regex" label="{xen:phrase regular_expression}:">
<xen:textbox name="match_regex" value="{$field.match_regex}" />
</xen:option>
<xen:option value="callback" label="{xen:phrase php_callback}:">
<xen:disabled>
<xen:textbox name="match_callback_class" value="{$field.match_callback_class}" placeholder="{xen:phrase class}" size="25" />
::
<xen:textbox name="match_callback_method" value="{$field.match_callback_method}" placeholder="{xen:phrase method}" size="25" />
</xen:disabled>
</xen:option>
</xen:radiounit>
<!-- slot: after_match_type -->
</fieldset>
</xen:if>
<xen:if is="!{$field.parent_field_id}">
<fieldset>
<!-- slot: before_minimum_length -->
<xen:spinboxunit label="{xen:phrase minimum_length}:" name="min_length" value="{$field.min_length}" min="0" />
<!-- slot: after_minimum_length -->
<xen:spinboxunit label="{xen:phrase maximum_length}:" name="max_length" value="{$field.max_length}" min="0" />
<!-- slot: after_maximum_length -->
</fieldset>
</xen:if>
</xen:contentcheck>
</li>
</xen:if>
<!-- slot: after_options_for_text_fields -->
</xen:hook>
<xen:else />
<input type="hidden" name="match_type" value="none" />
</xen:if>
<xen:if is="!{$field.parent_field_id}">
<xen:if is="!{$existingType} OR {$existingType} == 'single' OR {$existingType} == 'multiple'">
<li>
<xen:hook name="admin_field_edit_options_for_choice_fields">
<xen:if is="{$existingType}">
<!-- slot: before_choice_field_type -->
<xen:radiounit label="{xen:phrase field_type}:" name="field_type" value="{$field.field_type}">
<xen:options source="$validFieldTypes" />
</xen:radiounit>
<!-- slot: after_choice_field_type -->
</xen:if>
<fieldset>
<!-- slot: before_field_choices -->
<xen:controlunit label="{xen:phrase possible_choices}:">
<ul class="FieldChoices" id="sortable">
<xen:foreach loop="$masterFieldChoices" key="$choice" value="$text">
<li class="sortable-item">
<input type="text" name="field_choice[]" value="{$choice}" class="textCtrl" placeholder="{xen:phrase value_a_z_0_9_and_only}" size="25" maxlength="25" />
<input type="text" name="field_choice_text[]" value="{$text}" class="textCtrl" placeholder="{xen:phrase text}" size="25" />
</li>
</xen:foreach>
<li class="ui-state-disabled">
<input type="text" name="field_choice[]" class="textCtrl" placeholder="{xen:phrase value_a_z_0_9_and_only}" size="25" maxlength="25" />
<input type="text" name="field_choice_text[]" class="textCtrl" placeholder="{xen:phrase text}" size="25" />
</li>
</ul>
<input type="button" value="{xen:phrase add_additional_choice}" class="button smallButton FieldAdder" data-source="ul.FieldChoices li" />
<p class="explain">{xen:phrase value_represents_internal_value_for_choice_text_is_displayed}</p>
</xen:controlunit>
<!-- slot: after_field_choices -->
</fieldset>
</xen:hook>
</li>
<!-- slot: after_options_for_choice_fields -->
</xen:if>
</xen:if>
<li>
<xen:hook name="admin_field_edit_general_information">
<xen:if is="{$field.type} != 'global' AND {$field.type} != 'template'">
<!-- slot: before_required -->
<xen:checkboxunit label="">
<xen:option name="required" selected="{$field.required}" label="{xen:phrase field_is_required}">
<xen:hint>{xen:phrase required_fields_will_always_be_shown_during_registration}</xen:hint>
</xen:option>
</xen:checkboxunit>
<!-- slot: after_required -->
</xen:if>
<xen:if is="!{$field.parent_field_id}">
<xen:if is="(!{$existingType} OR {$existingType} == 'text') AND {$field.field_type} != 'wysiwyg' AND {$field.field_type} != 'date' AND {$field.field_type} != 'datetime' AND {$field.field_type} != 'time'">
<xen:textboxunit label="{xen:phrase placeholder}:" name="placeholder" value="{$field.placeholder}">
<xen:explain>{xen:phrase placeholder_for_field}</xen:explain>
</xen:textboxunit>
</xen:if>
</xen:if>
<!-- slot: after_placeholder -->
<xen:if is="{$field.type} != 'global'">
<xen:if is="{$field.field_type} == 'wysiwyg'">
<dl class="ctrlUnit">
<dt>
<label for="ctrl_field_{$field.field_id}">{xen:phrase default_value}:</label>
</dt>
<dd>
{xen:raw $field.editor}
</dd>
</dl>
<xen:elseif is="{$field.field_type} == 'date'" />
<dl class="ctrlUnit">
<dt>
<label for="ctrl_default_value">{xen:phrase default_value}:</label>
</dt>
<dd>
<input type="date" name="default_value" id="ctrl_default_value" size="10" class="textCtrl" value="{$field.default_value}" />
</dd>
</dl>
<xen:elseif is="{$field.field_type} == 'datetime'" />
<dl class="ctrlUnit">
<dt>
<label for="ctrl_default_value_date">{xen:phrase default_value}:</label>
</dt>
<dd>
<input type="date" name="default_value[date]" id="ctrl_default_value_date" size="10" class="textCtrl" value="{$field.default_value.date}" />
<input type="text" name="default_value[time]" id="ctrl_default_value_time" size="10" class="textCtrl lpsfTimePicker" value="{$field.default_value.time}" />
</dd>
</dl>
<xen:elseif is="{$field.field_type} == 'time'" />
<dl class="ctrlUnit">
<dt>
<label for="ctrl_default_value">{xen:phrase default_value}:</label>
</dt>
<dd>
<input type="text" name="default_value" id="ctrl_default_value" size="10" class="textCtrl lpsfTimePicker" value="{$field.default_value}" />
</dd>
</dl>
<xen:elseif is="!{$field.field_id} OR {$field.field_type} == 'textarea'" />
<xen:textboxunit label="{xen:phrase default_value}:" name="default_value" rows="4" value="{$field.default_value}">
<xen:explain>{xen:phrase default_value_for_field}</xen:explain>
</xen:textboxunit>
<xen:else />
<xen:textboxunit label="{xen:phrase default_value}:" name="default_value" value="{$field.default_value}">
<xen:explain>{xen:phrase default_value_for_field}</xen:explain>
</xen:textboxunit>
</xen:if>
<!-- slot: after_default_value -->
</xen:if>
</xen:hook>
</li>
</xen:hook>
</ul>
<xen:if is="{$field.type} == 'user'">
<input type="hidden" name="form_id" value="{$field.form_id}" />
</xen:if>
<input type="hidden" name="type" value="{$field.type}" />
<xen:submitunit save="{xen:phrase save_field}">
<xen:if is="{$field.field_id}">
<input type="button" value="{xen:phrase delete_field}..." accesskey="d" class="button OverlayTrigger"
data-href="{xen:adminlink 'fields/delete', $field}" />
</xen:if>
</xen:submitunit>
</xen:form>]]></template>
<template title="lpsf_field_globals_list"><![CDATA[<xen:title>{xen:phrase global_fields}</xen:title>
<xen:require css="filter_list.css" />
<xen:require js="js/xenforo/filter_list.js" />
<xen:topctrl>
<a href="{xen:adminlink 'fields/add', '', 'type=global'}" class="button" accesskey="f">+ {xen:phrase add_global_field}</a>
</xen:topctrl>
<xen:form action="{xen:adminlink fields/templates}" class="section">
<xen:if is="{$globals}">
<h2 class="subHeading">
<xen:include template="filter_list_controls" />
{xen:phrase global_fields}
</h2>
<ol class="FilterList">
<xen:foreach loop="$globals" value="$field">
<xen:listitem
id="field_{$field.field_id}"
label="{$field.title}"
href="{xen:adminlink fields/edit, $field}"
delete="{xen:adminlink fields/delete, $field}">
<xen:popup title="{xen:phrase controls}" ctrlclass="toolsCtrl">
<xen:link href="{xen:adminlink 'fields/delete', $field}">{xen:phrase delete}</xen:link>
<xen:link href="{xen:adminlink 'fields/edit', $field}">{xen:phrase edit}</xen:link>
</xen:popup>
</xen:listitem>
</xen:foreach>
</ol>
<p class="sectionFooter">{xen:phrase showing_x_of_y_items, 'count=<span class="FilterListCount">{xen:count $globals}</span>', 'total={xen:count $globals}'}</p>
<xen:else />
<div class="noResults">{xen:phrase no_fields_have_been_added_yet}</div>
</xen:if>
</xen:form>]]></template>
<template title="lpsf_field_templates_list"><![CDATA[<xen:title>{xen:phrase template_fields}</xen:title>
<xen:require css="filter_list.css" />
<xen:require js="js/xenforo/filter_list.js" />
<xen:topctrl>
<a href="{xen:adminlink 'fields/add', '', 'type=template'}" class="button" accesskey="f">+ {xen:phrase add_template_field}</a>
</xen:topctrl>
<xen:form action="{xen:adminlink fields/templates}" class="section">
<xen:if is="{$templates}">
<h2 class="subHeading">
<xen:include template="filter_list_controls" />
{xen:phrase template_fields}
</h2>
<ol class="FilterList">
<xen:foreach loop="$templates" value="$field">
<xen:listitem
id="field_{$field.field_id}"
label="{$field.title}"
snippet="{$field.field_name}"
href="{xen:adminlink fields/edit, $field}"
delete="{xen:adminlink fields/delete, $field}">
<xen:popup title="{xen:phrase controls}" ctrlclass="toolsCtrl">
<xen:link href="{xen:adminlink 'fields/delete', $field}">{xen:phrase delete}</xen:link>
<xen:link href="{xen:adminlink 'fields/edit', $field}">{xen:phrase edit}</xen:link>
</xen:popup>
</xen:listitem>
</xen:foreach>
</ol>
<p class="sectionFooter">{xen:phrase showing_x_of_y_items, 'count=<span class="FilterListCount">{xen:count $templates}</span>', 'total={xen:count $templates}'}</p>
<xen:else />
<div class="noResults">{xen:phrase no_fields_have_been_added_yet}</div>
</xen:if>
</xen:form>]]></template>
<template title="lpsf_form_add"><![CDATA[<xen:title>{xen:phrase create_new_form}</xen:title>
<xen:form action="{xen:adminlink 'forms/save', $form}"
class="AutoValidator"
data-fieldValidatorUrl="{xen:adminlink 'forms/validate-field', $form}"
data-redirect="yes">
<xen:hook name="admin_form_add">
<!-- slot: before_title -->
<xen:textboxunit name="title" value="{$form.title}" label="{xen:phrase title}:" data-liveTitleTemplate="{xen:if {$form.node_id},
'{xen:phrase edit_form}: <em>%s</em>',
'{xen:phrase create_new_form}: <em>%s</em>'}">
</xen:textboxunit>
<!-- slot: after_title -->
<xen:textboxunit name="description" value="{$form.description}" label="{xen:phrase description}:" hint="{xen:phrase you_may_use_html}" explain="{xen:phrase node_description_explain}" rows="2" inputclass="Elastic" />
<!-- slot: after_description -->
<fieldset>
<!-- slot: before_active -->
<xen:checkboxunit label="{xen:phrase lpsf_form_is_active}:" name="active">
<xen:option label="" value="1" selected="0"/>
</xen:checkboxunit>
<!-- slot: after_active -->
<xen:checkboxunit label="{xen:phrase hide_from_list}:" hint="{xen:phrase hide_from_list_hint}" name="hide_from_list">
<xen:option label="" value="1" selected="{$form.hide_from_list}"/>
</xen:checkboxunit>
<!-- slot: after_hide_from_list -->
<xen:spinboxunit name="max_responses" label="{xen:phrase max_responses_allowed}:" explain="{xen:phrase max_responses_allowed_explain}" min="0">
</xen:spinboxunit>
<!-- slot: after_max_responses -->
<xen:spinboxunit name="max_responses_per_user" label="{xen:phrase max_responses_per_user_allowed}:" explain="{xen:phrase max_responses_per_user_allowed_explain}" min="0">
</xen:spinboxunit>
<!-- slot: after_max_responses_per_user -->
<xen:textboxunit label="{xen:phrase complete_message}:" explain="{xen:phrase complete_message_explain}" name="complete_message" value="Thank you for submitting this form. We will respond to you shortly." />
<!-- slot: after_complete_message -->
<xen:radiounit label="{xen:phrase redirect}" name="redirect_method">
<xen:explain>{xen:phrase redirect_url_explain}</xen:explain>
<xen:option label="{xen:phrase lpsf_redirect_form}" value="self" selected="{$form.redirect_method} == 'self'" selected="1"/>
<xen:option label="{xen:phrase redirect_url}" value="url">
<xen:textbox name="redirect_url" value="{$form.redirect_url}"/>
</xen:option>
</xen:radiounit>
<!-- slot: after_redirect_method -->
<script>
$(function()
{
$('#DatePresets').change(function(e)
{
var $ctrl = $(this),
value = $ctrl.val(),
$form = $ctrl.closest('form');
if (value == -1)
{
return;
}
$form.find($ctrl.data('start') || 'input[name=start]').val(value);
$form.find($ctrl.data('end') || 'input[name=end]').val('');
$form.submit();
});
});
</script>
<fieldset>
<xen:controlunit label="">
<ul>
<li><label>
<input type="checkbox" name="start_date[enabled]" value="start" class="Disabler" id="pcrit_start" />
{xen:phrase lpsf_start_date}:</label>
<div class="criteriaQualifier" id="pcrit_start_Disabler">
<input type="date" name="start_date[ymd]" class="textCtrl autoSize" />
<label>{xen:phrase lpsf_time}:
<xen:select name="start_date[hh]" inputclass="autoSize">
<xen:options source="$dateCriteria.hours" />
</xen:select></label>:<xen:select name="start_date[mm]" inputclass="autoSize">
<xen:options source="$dateCriteria.minutes" />
</xen:select>
<ul>
<li><label><input type="radio" name="start_date[user_tz]" value="1" />
{xen:phrase lpsf_in_visitor_timezone}</label></li>
<li><label><input type="radio" name="start_date[user_tz]" value="0" class="Disabler" id="pcrit_start_tz" />
{xen:phrase lpsf_in_selected_timezone}:</label>
<ul id="pcrit_start_tz_Disabler">
<li>
<xen:select name="start_date[timezone]" inputclass="autoSize">
<xen:options source="$dateCriteria.timezones" />
</xen:select>
</li>
</ul>
</li>
</ul>
</div>
</li>
</ul>
</xen:controlunit>
</fieldset>
<fieldset>
<xen:controlunit label="">
<ul>
<li><label>
<input type="checkbox" name="end_date[enabled]" value="end" class="Disabler" id="pcrit_end" />
{xen:phrase lpsf_end_date}:</label>
<div class="criteriaQualifier" id="pcrit_end_Disabler">
<input type="date" name="end_date[ymd]" class="textCtrl autoSize" />
<label>{xen:phrase lpsf_time}:
<xen:select name="end_date[hh]" inputclass="autoSize">
<xen:options source="$dateCriteria.hours" />
</xen:select></label>:<xen:select name="end_date[mm]" inputclass="autoSize">
<xen:options source="$dateCriteria.minutes" />
</xen:select>
<ul>
<li><label><input type="radio" name="end_date[user_tz]" value="1" />
{xen:phrase lpsf_in_visitor_timezone}</label></li>
<li><label><input type="radio" name="end_date[user_tz]" value="0" class="Disabler" id="pcrit_end_tz" />
{xen:phrase lpsf_in_selected_timezone}:</label>
<ul id="pcrit_end_tz_Disabler">
<li>
<xen:select name="end_date[timezone]" inputclass="autoSize">
<xen:options source="$dateCriteria.timezones" />
</xen:select>
</li>
</ul>
</li>
</ul>
</div>
</li>
</ul>
</xen:controlunit>
</fieldset>
<!-- slot: after_start_and_end_dates -->
</fieldset>
<xen:submitunit save="{xen:phrase lpsf_save_form}">
<xen:if is="{$form.node_id}"><a href="{xen:adminlink forms/delete-confirm, $form}" class="button">{xen:phrase delete_form}...</a></xen:if>
</xen:submitunit>
</xen:hook>
</xen:form>]]></template>
<template title="lpsf_form_add_global_field"><![CDATA[<xen:title>{xen:phrase add_global_field}</xen:title>
<xen:h1>{xen:phrase add_global_field}</xen:h1>
<xen:navigation>
<xen:breadcrumb href="{xen:adminlink 'forms/edit', $form}">{$form.title}</xen:breadcrumb>
</xen:navigation>
<xen:require css="delete_confirmation.css" />
<xen:form action="{xen:adminlink 'forms/add-global-field', $form}" class="formOverlay">
<xen:selectunit label="{xen:phrase global_field}" name="global">
<xen:options source="$preparedGlobals"/>
</xen:selectunit>
<xen:submitunit save="{xen:phrase add_global_field}" />
<input type="hidden" name="_xfConfirm" value="1" />
</xen:form>]]></template>
<template title="lpsf_form_add_template_field"><![CDATA[<xen:title>{xen:phrase add_template_field}</xen:title>
<xen:h1>{xen:phrase add_template_field}</xen:h1>
<xen:navigation>
<xen:breadcrumb href="{xen:adminlink 'forms/edit', $form}">{$form.title}</xen:breadcrumb>
</xen:navigation>
<xen:require css="delete_confirmation.css" />
<xen:form action="{xen:adminlink 'forms/add-template-field', $form}" class="formOverlay">
<xen:selectunit label="{xen:phrase field_template}" name="template">