X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/0f1e9d0ce90560631d35dd27aa3db2f26f6964c7..a5e223064069f98bbaa14090d0439064072406c7:/Resources/views/form/form_div_layout.html.twig?ds=sidebyside diff --git a/Resources/views/form/form_div_layout.html.twig b/Resources/views/form/form_div_layout.html.twig index dfc79b3..61c8a03 100644 --- a/Resources/views/form/form_div_layout.html.twig +++ b/Resources/views/form/form_div_layout.html.twig @@ -43,12 +43,14 @@ {%- endblock choice_widget -%} {%- block choice_widget_expanded -%} -
{%- for child in form %} - {{- form_widget(child) -}} - {{- form_label(child, null, {translation_domain: choice_translation_domain}) -}} +
+ {{- form_label(child, null, {translation_domain: choice_translation_domain}) -}} +
+ {{- form_widget(child) -}} +
+
{% endfor -%} -
{%- endblock choice_widget_expanded -%} {%- block choice_widget_collapsed -%} @@ -273,9 +275,17 @@ {%- endif -%} <{{ element|default('label') }}{% if label_attr %}{% with { attr: label_attr } %}{{ block('attributes') }}{% endwith %}{% endif %}> {%- if translation_domain is same as(false) -%} - {{- label -}} + {%- if label_html is same as(false) -%} + {{- label -}} + {%- else -%} + {{- label|raw -}} + {%- endif -%} {%- else -%} - {{- label|trans({}, translation_domain) -}} + {%- if label_html is same as(false) -%} + {{- label|trans({}, translation_domain) -}} + {%- else -%} + {{- label|trans({}, translation_domain)|raw -}} + {%- endif -%} {%- endif -%} {%- endif -%} @@ -294,21 +304,21 @@ {%- endblock repeated_row -%} {%- block form_row -%} -
+
{{- form_label(form) -}} -
+
{{- form_widget(form) -}} {%- if errors|length > 0 -%} -
+
{{- form_errors(form) -}}
{%- endif -%} -
+
{%- endblock form_row -%} {%- block button_row -%} -
+
{{- form_widget(form) -}}
{%- endblock button_row -%} @@ -338,10 +348,8 @@ {%- endif -%} {%- if errors|length > 0 -%} -
-
- {{- form_errors(form) -}} -
+
+ {{- form_errors(form) -}}
{%- endif -%} {%- endblock form_start -%}