|
1 | 1 | {% block form_row %}
|
2 |
| -{% apply spaceless %} |
3 | 2 | <div class="control-group control-group-{{ name }}{% if errors|length > 0 %} has-error{% endif %}">
|
4 | 3 | {{ form_label(form) }}
|
5 | 4 | {{ form_widget(form) }}
|
6 | 5 | {{ form_errors(form) }}
|
7 | 6 | {{ block('form_help') }}
|
8 | 7 | </div>
|
9 |
| -{% endapply %} |
10 | 8 | {% endblock form_row %}
|
11 | 9 |
|
12 | 10 | {% block form_help %}
|
13 |
| -{% apply spaceless %} |
14 |
| - {% if help %} |
| 11 | + {%- if help -%} |
15 | 12 | <span class="help-block">
|
16 | 13 | <p class="muted">{{ help|trans({}, translation_domain) }}</p>
|
17 | 14 | </span>
|
18 |
| - {% endif %} |
19 |
| -{% endapply %} |
| 15 | + {%- endif -%} |
20 | 16 | {% endblock form_help %}
|
21 | 17 |
|
22 | 18 | {% block s2a_collection_fieldset_widget %}
|
23 |
| -{% apply spaceless %} |
24 |
| -{% if prototype is defined %} |
| 19 | +{%- if prototype is defined %} |
25 | 20 | {% set item = prototype %}
|
26 | 21 | {% set attr = attr|merge({'data-prototype': block('s2a_collection_fieldset_item') }) %}
|
27 | 22 | {% endif %}
|
28 |
| -{% set attr = attr|merge({'class': 'control-group' }) %} |
| 23 | +{% set attr = attr|merge({'class': 'control-group' }) -%} |
29 | 24 | <div {{ block('widget_container_attributes') }}>
|
30 | 25 | <div id="{{ id ~ '_toolbar' }}" class="btn-toolbar form-actions form-actions-condensed">
|
31 | 26 | {%- include "@AdmingeneratorFormExtensions/Form/BootstrapCollection/collection_add.html.twig" -%}
|
|
39 | 34 | <div class="clearfix"></div>
|
40 | 35 | {{ form_rest(form) }}
|
41 | 36 | </div>
|
42 |
| -{% endapply %} |
43 | 37 | {% endblock s2a_collection_fieldset_widget %}
|
44 | 38 |
|
45 | 39 | {% block s2a_collection_fieldset_item %}
|
|
54 | 48 | {% endblock s2a_collection_fieldset_item %}
|
55 | 49 |
|
56 | 50 | {% block s2a_collection_table_widget %}
|
57 |
| -{% apply spaceless %} |
58 | 51 | {% if prototype is defined %}
|
59 | 52 | {% set item = prototype %}
|
60 | 53 | {% set attr = attr|merge({'data-prototype': block('s2a_collection_table_item') }) %}
|
|
75 | 68 | {% endfor %}
|
76 | 69 | </tbody>
|
77 | 70 | </table>
|
78 |
| -{% endapply %} |
79 | 71 | {% endblock s2a_collection_table_widget %}
|
80 | 72 |
|
81 | 73 | {% block s2a_collection_table_item %}
|
|
119 | 111 | {% endblock s2a_collection_table_item %}
|
120 | 112 |
|
121 | 113 | {% block s2a_upload_collection_widget %}
|
122 |
| -{% apply spaceless %} |
123 | 114 | {% set original_full_name = full_name %}
|
124 | 115 | {% set full_name = full_name ~ '[uploads][]' %}
|
125 | 116 | <div id="{{ id ~ '_widget_container' }}">
|
|
164 | 155 | {% include "@AdmingeneratorFormExtensions/Form/UploadCollection/template_upload.html.twig" %}
|
165 | 156 | {% endif %}
|
166 | 157 | </div>
|
167 |
| -{% endapply %} |
168 | 158 | {% endblock s2a_upload_collection_widget %}
|
169 | 159 |
|
170 | 160 | {% block s2a_double_list_prototype %}
|
171 |
| -{% apply spaceless %} |
172 | 161 | <div id="{{ id ~ '_widget_container' }}" class="double-list">
|
173 | 162 | <div class="col-xs-12 col-sm-5 list-unselected dropdown open">
|
174 | 163 | {% include "@AdmingeneratorFormExtensions/Form/DoubleList/unselected_list.html.twig" %}
|
|
181 | 170 | </div>
|
182 | 171 | {{ block('choice_widget') }}
|
183 | 172 | </div>
|
184 |
| -{% endapply %} |
185 | 173 | {% endblock s2a_double_list_prototype %}
|
186 | 174 |
|
187 | 175 | {% block s2a_double_list_document_widget %}
|
|
197 | 185 | {% endblock s2a_double_list_model_widget %}
|
198 | 186 |
|
199 | 187 | {% block s2a_single_upload_widget %}
|
200 |
| -{% apply spaceless %} |
201 | 188 | <div id="{{ id ~ '_widget_container' }}" class="single-upload">
|
202 | 189 | <div class="btn-toolbar form-actions form-actions-condensed singleupload-buttonbar">
|
203 | 190 | <span class="btn btn-success fileinput">
|
|
210 | 197 | {% include "@AdmingeneratorFormExtensions/Form/SingleUpload/preview.html.twig" %}
|
211 | 198 | </div>
|
212 | 199 | </div>
|
213 |
| -{% endapply %} |
214 | 200 | {% endblock s2a_single_upload_widget %}
|
215 | 201 |
|
216 | 202 | {% block s2a_select2_choice_widget %}
|
|
246 | 232 | {% endblock %}
|
247 | 233 |
|
248 | 234 | {% block s2a_datetime_family_prototype %}
|
249 |
| -{% apply spaceless %} |
250 | 235 | <input id="{{ id }}" name="{{ full_name }}" type="hidden" value="{{ value }}" />
|
251 | 236 | <div id="{{ id ~ '_widget' }}" class="s2a-date" {% if width is defined and width is not null %}style="width: {{ width }}px"{% endif %}>
|
252 | 237 | <input {{ block('s2a_datetime_family_widget_attributes') }} />
|
|
257 | 242 | <i class="{{ widgetIcon }}"></i>
|
258 | 243 | </a>
|
259 | 244 | </div>
|
260 |
| -{% endapply %} |
261 | 245 | {% endblock s2a_datetime_family_prototype %}
|
262 | 246 |
|
263 | 247 | {% block s2a_datetime_family_widget_attributes -%}
|
|
280 | 264 | {%- endblock s2a_datetime_family_widget_attributes %}
|
281 | 265 |
|
282 | 266 | {% block s2a_datetime_picker_widget %}
|
283 |
| -{% apply spaceless %} |
284 | 267 | {% set widgetIcon = 'fa-regular fa-calendar-days' %}
|
285 | 268 | {{ block('s2a_datetime_family_prototype') }}
|
286 |
| -{% endapply %} |
287 | 269 | {% endblock s2a_datetime_picker_widget %}
|
288 | 270 |
|
289 | 271 | {% block s2a_date_picker_widget %}
|
290 |
| -{% apply spaceless %} |
291 | 272 | {% set widgetIcon = 'fa-regular fa-calendar-days' %}
|
292 | 273 | {{ block('s2a_datetime_family_prototype') }}
|
293 |
| -{% endapply %} |
294 | 274 | {% endblock s2a_date_picker_widget %}
|
295 | 275 |
|
296 | 276 | {% block s2a_time_picker_widget %}
|
297 |
| -{% apply spaceless %} |
298 | 277 | {% set widgetIcon = 'fa-regular fa-clock' %}
|
299 | 278 | {{ block('s2a_datetime_family_prototype') }}
|
300 |
| -{% endapply %} |
301 | 279 | {% endblock s2a_time_picker_widget %}
|
302 | 280 |
|
303 | 281 | {% block s2a_google_map_widget %}
|
304 |
| -{% apply spaceless %} |
305 | 282 | <div {{ block('widget_container_attributes') }}>
|
306 | 283 | <div id="{{ id }}_container">
|
307 | 284 | <div class="input-group">
|
|
323 | 300 | {{ form_row(child) }}
|
324 | 301 | {% endfor %}
|
325 | 302 | </div>
|
326 |
| -{% endapply %} |
327 | 303 | {% endblock s2a_google_map_widget %}
|
328 | 304 |
|
329 | 305 | {% block s2a_money_widget %}
|
330 |
| -{% apply spaceless %} |
331 | 306 | <div class="input-group">
|
332 | 307 | <span class="input-group-addon">{{ money_pattern|replace({ '{{ widget }}': '' })|raw }}</span>
|
333 | 308 | {{ block('form_widget_simple')|raw }}
|
334 | 309 | </div>
|
335 |
| -{% endapply %} |
336 | 310 | {% endblock %}
|
337 | 311 |
|
338 | 312 | {% block s2a_daterange_picker_widget %}
|
339 |
| -{% apply spaceless %} |
340 |
| - <div class="input-group"> |
341 |
| - <span class="input-group-addon"><i class="fa fa-calendar-days fa-regular fa-fw"></i></span> |
| 313 | +<div class="input-group"> |
| 314 | + <span class="input-group-addon"><i class="fa fa-calendar-days fa-regular fa-fw"></i></span> |
342 | 315 | {{ block('form_widget_simple') }}
|
343 |
| -</div> |
344 |
| -{% endapply %} |
| 316 | +</div> |
345 | 317 | {% endblock s2a_daterange_picker_widget %}
|
0 commit comments