X-Git-Url: https://git.rapsys.eu/.gitweb.cgi/airbundle/blobdiff_plain/01bff23c28bdf94e5b0c50c41f94b06d5a727646..1ff2570fa1206fc9d726c16e89e2ca4030951602:/Resources/views/form/form_div_layout.html.twig diff --git a/Resources/views/form/form_div_layout.html.twig b/Resources/views/form/form_div_layout.html.twig index 29ec401..9270f0e 100644 --- a/Resources/views/form/form_div_layout.html.twig +++ b/Resources/views/form/form_div_layout.html.twig @@ -273,9 +273,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,16 +302,16 @@ {%- endblock repeated_row -%} {%- block form_row -%} -
+
{{- form_label(form) -}} -
+
{{- form_widget(form) -}} {%- if errors|length > 0 -%}
{{- form_errors(form) -}}
{%- endif -%} -
+
{%- endblock form_row -%} @@ -338,10 +346,8 @@ {%- endif -%} {%- if errors|length > 0 -%} -
-
- {{- form_errors(form) -}} -
+
+ {{- form_errors(form) -}}
{%- endif -%} {%- endblock form_start -%}