|
1 | 1 | {% block form_row %}
|
2 |
| -{% spaceless %} |
| 2 | +{% apply spaceless %} |
3 | 3 | <div class="control-group control-group-{{ name }}{% if errors|length > 0 %} has-error{% endif %}">
|
4 | 4 | {{ form_label(form) }}
|
5 | 5 | {{ form_widget(form) }}
|
6 | 6 | {{ form_errors(form) }}
|
7 | 7 | {{ block('form_help') }}
|
8 | 8 | </div>
|
9 |
| -{% endspaceless %} |
| 9 | +{% endapply %} |
10 | 10 | {% endblock form_row %}
|
11 | 11 |
|
12 | 12 | {% block form_help %}
|
13 |
| -{% spaceless %} |
| 13 | +{% apply spaceless %} |
14 | 14 | {% if help %}
|
15 | 15 | <span class="help-block">
|
16 | 16 | <p class="muted">{{ help|trans({}, translation_domain) }}</p>
|
17 | 17 | </span>
|
18 | 18 | {% endif %}
|
19 |
| -{% endspaceless %} |
| 19 | +{% endapply %} |
20 | 20 | {% endblock form_help %}
|
21 | 21 |
|
22 | 22 | {% block s2a_collection_fieldset_widget %}
|
23 |
| -{% spaceless %} |
| 23 | +{% apply spaceless %} |
24 | 24 | {% if prototype is defined %}
|
25 | 25 | {% set item = prototype %}
|
26 | 26 | {% set attr = attr|merge({'data-prototype': block('s2a_collection_fieldset_item') }) %}
|
|
39 | 39 | <div class="clearfix"></div>
|
40 | 40 | {{ form_rest(form) }}
|
41 | 41 | </div>
|
42 |
| -{% endspaceless %} |
| 42 | +{% endapply %} |
43 | 43 | {% endblock s2a_collection_fieldset_widget %}
|
44 | 44 |
|
45 | 45 | {% block s2a_collection_fieldset_item %}
|
|
54 | 54 | {% endblock s2a_collection_fieldset_item %}
|
55 | 55 |
|
56 | 56 | {% block s2a_collection_table_widget %}
|
57 |
| -{% spaceless %} |
| 57 | +{% apply spaceless %} |
58 | 58 | {% if prototype is defined %}
|
59 | 59 | {% set item = prototype %}
|
60 | 60 | {% set attr = attr|merge({'data-prototype': block('s2a_collection_table_item') }) %}
|
|
75 | 75 | {% endfor %}
|
76 | 76 | </tbody>
|
77 | 77 | </table>
|
78 |
| -{% endspaceless %} |
| 78 | +{% endapply %} |
79 | 79 | {% endblock s2a_collection_table_widget %}
|
80 | 80 |
|
81 | 81 | {% block s2a_collection_table_item %}
|
|
119 | 119 | {% endblock s2a_collection_table_item %}
|
120 | 120 |
|
121 | 121 | {% block s2a_upload_collection_widget %}
|
122 |
| -{% spaceless %} |
| 122 | +{% apply spaceless %} |
123 | 123 | {% set original_full_name = full_name %}
|
124 | 124 | {% set full_name = full_name ~ '[uploads][]' %}
|
125 | 125 | <div id="{{ id ~ '_widget_container' }}">
|
|
164 | 164 | {% include "@AdmingeneratorFormExtensions/Form/UploadCollection/template_upload.html.twig" %}
|
165 | 165 | {% endif %}
|
166 | 166 | </div>
|
167 |
| -{% endspaceless %} |
| 167 | +{% endapply %} |
168 | 168 | {% endblock s2a_upload_collection_widget %}
|
169 | 169 |
|
170 | 170 | {% block s2a_double_list_prototype %}
|
171 |
| -{% spaceless %} |
| 171 | +{% apply spaceless %} |
172 | 172 | <div id="{{ id ~ '_widget_container' }}" class="double-list">
|
173 | 173 | <div class="col-xs-12 col-sm-5 list-unselected dropdown open">
|
174 | 174 | {% include "@AdmingeneratorFormExtensions/Form/DoubleList/unselected_list.html.twig" %}
|
|
181 | 181 | </div>
|
182 | 182 | {{ block('choice_widget') }}
|
183 | 183 | </div>
|
184 |
| -{% endspaceless %} |
| 184 | +{% endapply %} |
185 | 185 | {% endblock s2a_double_list_prototype %}
|
186 | 186 |
|
187 | 187 | {% block s2a_double_list_document_widget %}
|
|
197 | 197 | {% endblock s2a_double_list_model_widget %}
|
198 | 198 |
|
199 | 199 | {% block s2a_single_upload_widget %}
|
200 |
| -{% spaceless %} |
| 200 | +{% apply spaceless %} |
201 | 201 | <div id="{{ id ~ '_widget_container' }}" class="single-upload">
|
202 | 202 | <div class="btn-toolbar form-actions form-actions-condensed singleupload-buttonbar">
|
203 | 203 | <span class="btn btn-success fileinput">
|
|
210 | 210 | {% include "@AdmingeneratorFormExtensions/Form/SingleUpload/preview.html.twig" %}
|
211 | 211 | </div>
|
212 | 212 | </div>
|
213 |
| -{% endspaceless %} |
| 213 | +{% endapply %} |
214 | 214 | {% endblock s2a_single_upload_widget %}
|
215 | 215 |
|
216 | 216 | {% block s2a_select2_choice_widget %}
|
|
246 | 246 | {% endblock %}
|
247 | 247 |
|
248 | 248 | {% block s2a_datetime_family_prototype %}
|
249 |
| -{% spaceless %} |
| 249 | +{% apply spaceless %} |
250 | 250 | <input id="{{ id }}" name="{{ full_name }}" type="hidden" value="{{ value }}" />
|
251 | 251 | <div id="{{ id ~ '_widget' }}" class="s2a-date" {% if width is defined and width is not null %}style="width: {{ width }}px"{% endif %}>
|
252 | 252 | <input {{ block('s2a_datetime_family_widget_attributes') }} />
|
|
257 | 257 | <i class="{{ widgetIcon }}"></i>
|
258 | 258 | </a>
|
259 | 259 | </div>
|
260 |
| -{% endspaceless %} |
| 260 | +{% endapply %} |
261 | 261 | {% endblock s2a_datetime_family_prototype %}
|
262 | 262 |
|
263 | 263 | {% block s2a_datetime_family_widget_attributes -%}
|
|
280 | 280 | {%- endblock s2a_datetime_family_widget_attributes %}
|
281 | 281 |
|
282 | 282 | {% block s2a_datetime_picker_widget %}
|
283 |
| -{% spaceless %} |
| 283 | +{% apply spaceless %} |
284 | 284 | {% set widgetIcon = 'fa fa-calendar' %}
|
285 | 285 | {{ block('s2a_datetime_family_prototype') }}
|
286 |
| -{% endspaceless %} |
| 286 | +{% endapply %} |
287 | 287 | {% endblock s2a_datetime_picker_widget %}
|
288 | 288 |
|
289 | 289 | {% block s2a_date_picker_widget %}
|
290 |
| -{% spaceless %} |
| 290 | +{% apply spaceless %} |
291 | 291 | {% set widgetIcon = 'fa fa-calendar' %}
|
292 | 292 | {{ block('s2a_datetime_family_prototype') }}
|
293 |
| -{% endspaceless %} |
| 293 | +{% endapply %} |
294 | 294 | {% endblock s2a_date_picker_widget %}
|
295 | 295 |
|
296 | 296 | {% block s2a_time_picker_widget %}
|
297 |
| -{% spaceless %} |
| 297 | +{% apply spaceless %} |
298 | 298 | {% set widgetIcon = 'fa fa-clock-o' %}
|
299 | 299 | {{ block('s2a_datetime_family_prototype') }}
|
300 |
| -{% endspaceless %} |
| 300 | +{% endapply %} |
301 | 301 | {% endblock s2a_time_picker_widget %}
|
302 | 302 |
|
303 | 303 | {% block s2a_google_map_widget %}
|
304 |
| -{% spaceless %} |
| 304 | +{% apply spaceless %} |
305 | 305 | <div {{ block('widget_container_attributes') }}>
|
306 | 306 | <div id="{{ id }}_container">
|
307 | 307 | <div class="input-group">
|
|
323 | 323 | {{ form_row(child) }}
|
324 | 324 | {% endfor %}
|
325 | 325 | </div>
|
326 |
| -{% endspaceless %} |
| 326 | +{% endapply %} |
327 | 327 | {% endblock s2a_google_map_widget %}
|
328 | 328 |
|
329 | 329 | {% block s2a_money_widget %}
|
330 |
| -{% spaceless %} |
| 330 | +{% apply spaceless %} |
331 | 331 | <div class="input-group">
|
332 | 332 | <span class="input-group-addon">{{ money_pattern|replace({ '{{ widget }}': '' })|raw }}</span>
|
333 | 333 | {{ block('form_widget_simple')|raw }}
|
334 | 334 | </div>
|
335 |
| -{% endspaceless %} |
| 335 | +{% endapply %} |
336 | 336 | {% endblock %}
|
337 | 337 |
|
338 | 338 | {% block s2a_daterange_picker_widget %}
|
339 |
| -{% spaceless %} |
| 339 | +{% apply spaceless %} |
340 | 340 | <div class="input-group">
|
341 | 341 | <span class="input-group-addon"><i class="fa fa-calendar fa-fw"></i></span>
|
342 | 342 | {{ block('form_widget_simple') }}
|
343 | 343 | </div>
|
344 |
| -{% endspaceless %} |
| 344 | +{% endapply %} |
345 | 345 | {% endblock s2a_daterange_picker_widget %}
|
0 commit comments