-
Notifications
You must be signed in to change notification settings - Fork 988
/
options.twig
484 lines (460 loc) · 24.4 KB
/
options.twig
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
{#
LimeSurvey
Copyright (C) 2007-2017 The LimeSurvey Project Team / Louis Gac
All rights reserved.
License: GNU/GPL License v2 or later, see LICENSE.php
LimeSurvey is free software. This version may have been modified pursuant
to the GNU General Public License, and as distributed it includes or
is derivative of works licensed under the GNU General Public License or
other free or open source software licenses.
See COPYRIGHT.php for copyright notices and details.
(¯`·._.·(¯`·._.· Default survey template options ._.·´¯)·._.·´¯)
This is the form for the option parameters of the basic default template.
#}
{# The animation options are pulled from animate.css #}
{% set animationOptions = '' %}
{# For surveyspecific settings add an inherit option #}
{% if templateConfiguration.sid is not empty or templateConfiguration.gsid is not empty %}
{% set animationOptions = animationOptions ~ '
<option value="inherit">Inherit</option>
' %}
{% endif %}
{# List of possible animation of animate.css #}
{% set animationOptions = animationOptions ~ '
<optgroup label="Attention Seekers">
<option value="bounce">bounce</option>
<option value="flash">flash</option>
<option value="pulse">pulse</option>
<option value="rubberBand">rubberBand</option>
<option value="shake">shake</option>
<option value="swing">swing</option>
<option value="tada">tada</option>
<option value="wobble">wobble</option>
<option value="jello">jello</option>
</optgroup>
<optgroup label="Bouncing Entrances">
<option value="bounceIn">bounceIn</option>
<option value="bounceInDown">bounceInDown</option>
<option value="bounceInLeft">bounceInLeft</option>
<option value="bounceInRight">bounceInRight</option>
<option value="bounceInUp">bounceInUp</option>
</optgroup>
<optgroup label="Bouncing Exits">
<option value="bounceOut">bounceOut</option>
<option value="bounceOutDown">bounceOutDown</option>
<option value="bounceOutLeft">bounceOutLeft</option>
<option value="bounceOutRight">bounceOutRight</option>
<option value="bounceOutUp">bounceOutUp</option>
</optgroup>
<optgroup label="Fading Entrances">
<option value="fadeIn">fadeIn</option>
<option value="fadeInDown">fadeInDown</option>
<option value="fadeInDownBig">fadeInDownBig</option>
<option value="fadeInLeft">fadeInLeft</option>
<option value="fadeInLeftBig">fadeInLeftBig</option>
<option value="fadeInRight">fadeInRight</option>
<option value="fadeInRightBig">fadeInRightBig</option>
<option value="fadeInUp">fadeInUp</option>
<option value="fadeInUpBig">fadeInUpBig</option>
</optgroup>
<optgroup label="Fading Exits">
<option value="fadeOut">fadeOut</option>
<option value="fadeOutDown">fadeOutDown</option>
<option value="fadeOutDownBig">fadeOutDownBig</option>
<option value="fadeOutLeft">fadeOutLeft</option>
<option value="fadeOutLeftBig">fadeOutLeftBig</option>
<option value="fadeOutRight">fadeOutRight</option>
<option value="fadeOutRightBig">fadeOutRightBig</option>
<option value="fadeOutUp">fadeOutUp</option>
<option value="fadeOutUpBig">fadeOutUpBig</option>
</optgroup>
<optgroup label="Flippers">
<option value="flip">flip</option>
<option value="flipInX">flipInX</option>
<option value="flipInY">flipInY</option>
<option value="flipOutX">flipOutX</option>
<option value="flipOutY">flipOutY</option>
</optgroup>
<optgroup label="Lightspeed">
<option value="lightSpeedIn">lightSpeedIn</option>
<option value="lightSpeedOut">lightSpeedOut</option>
</optgroup>
<optgroup label="Rotating Entrances">
<option value="rotateIn">rotateIn</option>
<option value="rotateInDownLeft">rotateInDownLeft</option>
<option value="rotateInDownRight">rotateInDownRight</option>
<option value="rotateInUpLeft">rotateInUpLeft</option>
<option value="rotateInUpRight">rotateInUpRight</option>
</optgroup>
<optgroup label="Rotating Exits">
<option value="rotateOut">rotateOut</option>
<option value="rotateOutDownLeft">rotateOutDownLeft</option>
<option value="rotateOutDownRight">rotateOutDownRight</option>
<option value="rotateOutUpLeft">rotateOutUpLeft</option>
<option value="rotateOutUpRight">rotateOutUpRight</option>
</optgroup>
<optgroup label="Sliding Entrances">
<option value="slideInUp">slideInUp</option>
<option value="slideInDown">slideInDown</option>
<option value="slideInLeft">slideInLeft</option>
<option value="slideInRight">slideInRight</option>
</optgroup>
<optgroup label="Sliding Exits">
<option value="slideOutUp">slideOutUp</option>
<option value="slideOutDown">slideOutDown</option>
<option value="slideOutLeft">slideOutLeft</option>
<option value="slideOutRight">slideOutRight</option>
</optgroup>
<optgroup label="Zoom Entrances">
<option value="zoomIn">zoomIn</option>
<option value="zoomInDown">zoomInDown</option>
<option value="zoomInLeft">zoomInLeft</option>
<option value="zoomInRight">zoomInRight</option>
<option value="zoomInUp">zoomInUp</option>
</optgroup>
<optgroup label="Zoom Exits">
<option value="zoomOut">zoomOut</option>
<option value="zoomOutDown">zoomOutDown</option>
<option value="zoomOutLeft">zoomOutLeft</option>
<option value="zoomOutRight">zoomOutRight</option>
<option value="zoomOutUp">zoomOutUp</option>
</optgroup>
<optgroup label="Specials">
<option value="hinge">hinge</option>
<option value="jackInTheBox">jackInTheBox</option>
<option value="rollIn">rollIn</option>
<option value="rollOut">rollOut</option>
</optgroup>
'
%}
{# The default template offers the variety of the basic bootswatch styles #}
{% set bootswatchOption = '' %}
{# For surveyspecific settings add an inherit option #}
{% if templateConfiguration.sid is not empty or templateConfiguration.gsid is not empty %}
{% set bootswatchOption = bootswatchOption ~ '
<option value="inherit">Inherit</option>
' %}
{% endif %}
{# List of Bootswatch styles #}
{% set bootswatchOption = bootswatchOption ~ '
<option value="">Basic Bootstrap</option>
<option value="css/cerulean.css">Cerulean</option>
<option value="css/cosmo.css">Cosmo</option>
<option value="css/cyborg.css">Cyborg</option>
<option value="css/darkly.css">Darkly</option>
<option value="css/flatly.css">Flatly</option>
<option value="css/journal.css">Journal</option>
<option value="css/lumen.css">Lumen</option>
<option value="css/paper.css">Paper</option>
<option value="css/readable.css">Readable</option>
<option value="css/sandstone.css">Sandstone</option>
<option value="css/simplex.css">Simplex</option>
<option value="css/slate.css">Slate</option>
<option value="css/solar.css">Solar</option>
<option value="css/spacelab.css">Spacelab</option>
<option value="css/superhero.css">Superhero</option>
<option value="css/united.css">United</option>
<option value="css/yeti.css">Yeti</option>
'
%}
<style>
label.btn{
outline:none !important;
}
</style>
<div class="container-fluid" style="position:relative">
{# Small loading animation to give the scripts time to parse and render the correct values #}
<div class="simple-template-edit-loading" style="display:none;height:100%;width:100%;position:absolute;left:0;top:0;background:rgb(255,255,255);background:rgba(235,235,235,0.8);z-index:2000;" class="">
<div style="position:absolute; left:49%;top:35%;" class="text-center"><i class="fa fa-spinner fa-pulse fa-3x fa-fw"></i></div>
</div>
{# Begin template option form #}
<form class='form action_update_options_string_form' action=''>
{# If this is a surveyspecific settings page, offer the possibility to do a full inheritance of the parent template #}
{% if templateConfiguration.sid is not empty or templateConfiguration.gsid is not empty %}
<div class='row'>
<div class='form-group row'>
<label for='simple_edit_options_general_inherit' class='control-label'>Inherit everything</label>
<div class='col-sm-12'>
<div class="btn-group" data-toggle="buttons">
<label class="btn btn-default">
<input id="general_inherit_on" name='general_inherit' type='radio' value='on' class='form-control selector_option_general_inherit ' data-id='simple_edit_options_general_inherit'/>
Yes
</label>
<label class="btn btn-default">
<input id="general_inherit_off" name='general_inherit' type='radio' value='off' class='form-control selector_option_general_inherit ' data-id='simple_edit_options_general_inherit'/>
No
</label>
</div>
</div>
</div>
</div>
<div class="row action_hide_on_inherit">
<hr/>
</div>
{% endif %}
{# First settings row #}
<div class='row action_hide_on_inherit'>
<div class='col-sm-12 col-md-6'>
{# Ajaxmode setting #}
<div class='form-group row'>
<label for='simple_edit_options_ajaxmode' class='control-label'>Ajaxmode</label>
<div class='col-sm-12'>
<div class="btn-group" data-toggle="buttons">
<label class="btn btn-default">
<input name='ajaxmode' type='radio' value='on' class='selector_option_radio_field ' data-id='simple_edit_options_ajaxmode'/>
Yes
</label>
<label class="btn btn-default">
<input name='ajaxmode' type='radio' value='off' class='selector_option_radio_field ' data-id='simple_edit_options_ajaxmode'/>
No
</label>
{# If this is a root template setting, don't show the inherit button #}
{% if templateConfiguration.sid is not empty or templateConfiguration.gsid is not empty %}
<label class="btn btn-default">
<input name='ajaxmode' type='radio' value='inherit' class='selector_option_radio_field ' data-id='simple_edit_options_ajaxmode'/>
Inherit
</label>
{% endif %}
</div>
</div>
</div>
</div>
<div class='col-sm-12 col-md-6'>
{# Background image #}
<div class='form-group row'>
<label for='simple_edit_options_backgroundimage' class='control-label'>Background image</label>
<div class='col-sm-12'>
<div class="btn-group" data-toggle="buttons">
<label class="btn btn-default">
<input type='radio' name='backgroundimage' value='on' class='selector_option_radio_field simple_edit_options_backgroundimage ' data-id='backgroundimage' />
Yes
</label>
<label class="btn btn-default">
<input type='radio' name='backgroundimage' value='off' class='selector_option_radio_field simple_edit_options_backgroundimage ' data-id='backgroundimage' />
No
</label>
{# If this is a root template setting, don't show the inherit button #}
{% if templateConfiguration.sid is not empty or templateConfiguration.gsid is not empty %}
<label class="btn btn-default">
<input type='radio' name='backgroundimage' value='inherit' class='selector_option_radio_field simple_edit_options_backgroundimage ' data-id='backgroundimage' />
Inherit
</label>
{% endif %}
</div>
</div>
</div>
</div>
<div class='col-sm-12 col-md-6'>
{# Box container #}
<div class='form-group row'>
<label for='simple_edit_options_backgroundimage' class='control-label'>Box container</label>
<div class='col-sm-12'>
<div class="btn-group" data-toggle="buttons">
<label class="btn btn-default">
<input type='radio' name='boxcontainer' value='on' class='selector_option_radio_field simple_edit_options_boxcontainer ' data-id='boxcontainer' />
Yes
</label>
<label class="btn btn-default">
<input type='radio' name='boxcontainer' value='off' class='selector_option_radio_field simple_edit_options_boxcontainer ' data-id='boxcontainer' />
No
</label>
{# If this is a root template setting, don't show the inherit button #}
{% if templateConfiguration.sid is not empty or templateConfiguration.gsid is not empty %}
<label class="btn btn-default">
<input type='radio' name='boxcontainer' value='inherit' class='selector_option_radio_field simple_edit_options_boxcontainer ' data-id='boxcontainer' />
Inherit
</label>
{% endif %}
</div>
</div>
</div>
</div>
</div>
<div class='row action_hide_on_inherit'>
<hr/>
</div>
<div class='row action_hide_on_inherit' >
<div class='col-sm-12 col-md-4'>
{# Brandlogo #}
<div class='form-group row'>
<label for='simple_edit_options_brandlogo' class='control-label'>Brandlogo</label>
<div class='col-sm-12'>
<div class="btn-group" data-toggle="buttons">
<label class="btn btn-default">
<input type='radio' name='brandlogo' value='on' class='selector_option_radio_field ' data-id='simple_edit_options_brandlogo' />
Yes
</label>
<label class="btn btn-default">
<input type='radio' name='brandlogo' value='off' class='selector_option_radio_field ' data-id='simple_edit_options_brandlogo' />
No
</label>
{# If this is a root template setting, don't show the inherit button #}
{% if templateConfiguration.sid is not empty or templateConfiguration.gsid is not empty %}
<label class="btn btn-default">
<input type='radio' name='brandlogo' value='inherit' class='selector_option_radio_field ' data-id='simple_edit_options_brandlogo' />
Inherit
</label>
{% endif %}
</div>
</div>
</div>
</div>
<div class='col-sm-12 col-md-8'>
{# Brandlogo file selector #}
<div class='form-group row'>
<label for='simple_edit_options_brandlogofile' class='control-label'>Brandlogo file</label>
<div class='col-sm-12'>
<select class='form-control selector_option_value_field selector_radio_childfield' data-parent="brandlogo" id='simple_edit_options_brandlogofile' name='brandlogofile'>
{% if templateConfiguration.sid is not empty or templateConfiguration.gsid is not empty %}
<option value="inherit">Inherit</option>
{% endif %}
{% for brandlogo in templateConfiguration.brandlogoFileList %}
<option value="{{brandlogo.filepath}}">{{brandlogo.filename}}</option>
{% endfor %}
</select>
</div>
</div>
</div>
</div>
<div class='row action_hide_on_inherit' >
<div class='col-sm-12 col-md-4'>
<div class='form-group row'>
{# Animate body On/Off #}
<label for='simple_edit_options_animatebody' class='control-label'>Animate body</label>
<div class='col-sm-12'>
<div class="btn-group" data-toggle="buttons">
<label class="btn btn-default">
<input type='radio' value='on' class='selector_option_radio_field ' data-id='simple_edit_options_animatebody' name='animatebody' />
Yes
</label>
<label class="btn btn-default">
<input type='radio' value='off' class='selector_option_radio_field ' data-id='simple_edit_options_animatebody' name='animatebody' />
No
</label>
{# If this is a root template setting, don't show the inherit button #}
{% if templateConfiguration.sid is not empty or templateConfiguration.gsid is not empty %}
<label class="btn btn-default">
<input type='radio' value='inherit' class='selector_option_radio_field ' data-id='simple_edit_options_animatebody' name='animatebody' />
Inherit
</label>
{% endif %}
</div>
</div>
</div>
</div>
<div class='col-sm-12 col-md-8'>
{# Animate body -> Animation type #}
<div class='form-group row'>
<label for='simple_edit_options_bodyanimation' class='control-label'>Body animation</label>
<div class='col-sm-12'>
<select class='form-control selector_option_value_field selector_radio_childfield' data-parent="animatebody" id='simple_edit_options_bodyanimation' name='bodyanimation'>
{{animationOptions}}
</select>
</div>
</div>
</div>
</div>
<div class='row action_hide_on_inherit'>
<div class='col-sm-12 col-md-4'>
{# Animate question -> On/Off #}
<div class='form-group row'>
<label for='simple_edit_options_animatequestion' class='control-label'>Animate question</label>
<div class='col-sm-12'>
<div class="btn-group" data-toggle="buttons">
<label class="btn btn-default">
<input type='radio' value='on' class='selector_option_radio_field ' data-id='simple_edit_options_animatequestion' name='animatequestion' />
Yes
</label>
<label class="btn btn-default">
<input type='radio' value='off' class='selector_option_radio_field ' data-id='simple_edit_options_animatequestion' name='animatequestion' />
No
</label>
{# If this is a root template setting, don't show the inherit button #}
{% if templateConfiguration.sid is not empty or templateConfiguration.gsid is not empty %}
<label class="btn btn-default">
<input type='radio' value='inherit' class='selector_option_radio_field ' data-id='simple_edit_options_animatequestion' name='animatequestion' />
Inherit
</label>
{% endif %}
</div>
</div>
</div>
</div>
<div class='col-sm-12 col-md-8'>
{# Animate question -> Animation type #}
<div class='form-group row'>
<label for='simple_edit_options_questionanimation' class='control-label'>Question animation</label>
<div class='col-sm-12'>
<select class='form-control selector_option_value_field selector_radio_childfield' data-parent="animatequestion" id='simple_edit_options_questionanimation' name='questionanimation'>
{{animationOptions}}
</select>
</div>
</div>
</div>
</div>
<div class='row action_hide_on_inherit'>
<div class='col-sm-12 col-md-4'>
{# Animate alert -> On/Off #}
<div class='form-group row'>
<label for='simple_edit_options_animatealert' class='control-label'>Animate alert</label>
<div class='col-sm-12'>
<div class="btn-group" data-toggle="buttons">
<label class="btn btn-default">
<input type='radio' value='on' class='selector_option_radio_field ' data-id='simple_edit_options_animatealert' name='animatealert' />
Yes
</label>
<label class="btn btn-default">
<input type='radio' value='off' class='selector_option_radio_field ' data-id='simple_edit_options_animatealert' name='animatealert' />
No
</label>
{# If this is a root template setting, don't show the inherit button #}
{% if templateConfiguration.sid is not empty or templateConfiguration.gsid is not empty %}
<label class="btn btn-default">
<input type='radio' value='inherit' class='selector_option_radio_field ' data-id='simple_edit_options_animatealert' name='animatealert' />
Inherit
</label>
{% endif %}
</div>
</div>
</div>
</div>
<div class='col-sm-12 col-md-8'>
{# Animate alert -> Animation options #}
<div class='form-group row'>
<label for='simple_edit_options_alertanimation' class='control-label'>Alert animation</label>
<div class='col-sm-12'>
<select class='form-control selector_option_value_field selector_radio_childfield' data-parent="animatealert" id='simple_edit_options_alertanimation' name='alertanimation'>
{{animationOptions}}
</select>
</div>
</div>
</div>
</div>
<div class='row ls-space margin top-15 bottom-15 '>
<hr/>
</div>
<div class='row'>
<div class='col-sm-12'>
<div class='panel panel-default'>
<div class='panel-heading'>Bootstrap theme</div>
<div class='panel-body'>
{# Bootstrap Bootswatch theme #}
<div class='form-group row'>
<label for='simple_edit_cssframework' class='control-label'>Bootswatch theme</label>
<div class='col-sm-12'>
<select class='form-control selector_cssframework_value_field' id='simple_edit_cssframework' name='cssframework'>
{{bootswatchOption}}
</select>
</div>
</div>
</div>
</div>
</div>
</div>
<div class='row hidden'>
<div class='col-sm-12'>
<button class='btn btn-success col-md-2 col-sm-4 col-xs-6 action_update_options_string_button'>Save</button>
</div>
</div>
</form>
</div>