From cdf4263f8bd537425ba54d57fa5b7b8b2f1ca4cb Mon Sep 17 00:00:00 2001 From: Bozhidar Hristov Date: Fri, 15 Dec 2017 13:09:26 +0200 Subject: [PATCH] Use has-error for error tab. --- Resources/views/bootstrap_3_tab_layout.html.twig | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Resources/views/bootstrap_3_tab_layout.html.twig b/Resources/views/bootstrap_3_tab_layout.html.twig index 30b74f6..24f069d 100644 --- a/Resources/views/bootstrap_3_tab_layout.html.twig +++ b/Resources/views/bootstrap_3_tab_layout.html.twig @@ -1,9 +1,13 @@ {% block translations_row %} - {{ form_label(form) }} +
+ {{ form_label(form) }} - {{ block('nav_tabs') }} + {{ block('nav_tabs') }} - {{ block('tab_contents') }} + {{ block('tab_contents') }} + + {{ form_errors(form) }} +
{% endblock %} {% block nav_tabs %} @@ -17,7 +21,7 @@ {% block nav_tab %}
  • + class="{% if not child.vars.valid %}has-error{% endif %}"> {{ form_label(child) }}