Skip to content

Commit

Permalink
Use has-error for error tab.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bozhidar Hristov committed Dec 15, 2017
1 parent 6a62a35 commit cdf4263
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions Resources/views/bootstrap_3_tab_layout.html.twig
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
{% block translations_row %}
{{ form_label(form) }}
<div class="form-group">
{{ form_label(form) }}

{{ block('nav_tabs') }}
{{ block('nav_tabs') }}

{{ block('tab_contents') }}
{{ block('tab_contents') }}

{{ form_errors(form) }}
</div>
{% endblock %}

{% block nav_tabs %}
Expand All @@ -17,7 +21,7 @@
{% block nav_tab %}
<li {% if loop.first %}class="active"{% endif %}>
<a data-toggle="tab" href="#{{ key }}"
class="{% if not child.vars.valid %}label label-danger{% endif %}">
class="{% if not child.vars.valid %}has-error{% endif %}">
{{ form_label(child) }}
</a>
</li>
Expand Down

0 comments on commit cdf4263

Please sign in to comment.