diff --git a/Resources/views/Form/fields.html.twig b/Resources/views/Form/fields.html.twig index 97e2896dc..aea99ca8d 100644 --- a/Resources/views/Form/fields.html.twig +++ b/Resources/views/Form/fields.html.twig @@ -17,9 +17,9 @@ #} {% block form_row %} -{% spaceless %} +{% apply spaceless %}
-
+ {% endapply %}"> {% if attr.class is not defined or ('cf-title' not in attr.class and 'cf-fields' not in attr.class ) %} {{ form_label(form) }} {% endif %}
-
+ {% endapply %}"> {{ form_widget(form) }} {{ form_errors(form) }}
-{% endspaceless %} +{% endapply %} {% endblock form_row %} {% block choice_widget_expanded %} -{% spaceless %} +{% apply spaceless %}
{% for child in form %} @@ -66,12 +66,12 @@ chill.checkNullValuesInChoices("{{ form.vars.full_name }}"); }); -{% endspaceless %} +{% endapply %} {% endblock choice_widget_expanded %} {% block choice_with_other_widget %} -{% spaceless %} +{% apply spaceless %} {% for child in form._choices %} {%- if child.vars.value != '_other' -%}
@@ -98,7 +98,7 @@ chill.checkNullValuesInChoices("{{ form._choices.vars.full_name }}"); }); -{% endspaceless %} +{% endapply %} {% endblock choice_with_other_widget %} {% block money_widget %} @@ -110,7 +110,7 @@ {% block date_widget %} -{% spaceless %} +{% apply spaceless %} {% if widget == 'single_text' %} {% set attr = {'class' : 'input datepicker'} %} {{ block('form_widget_simple') }} @@ -123,7 +123,7 @@ })|raw }}
{% endif %} -{% endspaceless %} +{% endapply %} {% endblock date_widget %} {%- block time_widget -%} @@ -139,7 +139,7 @@ {%- endblock time_widget -%} {% block form_errors %} -{% spaceless %} +{% apply spaceless %} {% if errors|length > 0 %} {% endif %} -{% endspaceless %} +{% endapply %} {% endblock form_errors %} {% block _formatter__aggregator_placement_csv_formatter_row %} diff --git a/Resources/views/Menu/adminSection.html.twig b/Resources/views/Menu/adminSection.html.twig index 5434b4be8..7fabd0ae9 100644 --- a/Resources/views/Menu/adminSection.html.twig +++ b/Resources/views/Menu/adminSection.html.twig @@ -27,13 +27,13 @@
{{ menu.label|trans }}
-
{% spaceless %} +
{% apply spaceless %} {% if menu.extras.icons is defined %} {% for icon in menu.extras.icons %} {% endfor %} {% endif %} - {% endspaceless %}
+ {% endapply %}
{% endfor %}