X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/0f1e9d0ce90560631d35dd27aa3db2f26f6964c7..f9240cc5131b9e373cd45906a0564dbb92fd72d5:/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..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 -%}
         </{{ element|default('label') }}>
     {%- endif -%}
@@ -294,16 +302,16 @@
 {%- endblock repeated_row -%}
 
 {%- block form_row -%}
-    <div>
+    <div class="row">
         {{- form_label(form) -}}
-        <section>
+        <div>
             {{- form_widget(form) -}}
             {%- if errors|length > 0 -%}
-                <div class="error">
+                <div class="message error">
                     {{- form_errors(form) -}}
                 </div>
             {%- endif -%}
-        </section>
+        </div>
     </div>
 {%- endblock form_row -%}
 
@@ -338,10 +346,8 @@
         <input type="hidden" name="_method" value="{{ method }}" />
     {%- endif -%}
     {%- if errors|length > 0 -%}
-        <header>
-            <div class="error">
-                {{- form_errors(form) -}}
-            </div>
+        <header class="message error">
+			{{- form_errors(form) -}}
         </header>
     {%- endif -%}
 {%- endblock form_start -%}