Skip to content

Commit

Permalink
Fix bug when translations are used in same page more than once
Browse files Browse the repository at this point in the history
  • Loading branch information
Bozhidar Hristov committed Aug 7, 2018
1 parent bb0cfd6 commit c2c0cf5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Resources/views/bootstrap_3_tab_layout.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@

{% block nav_tab %}
<li {% if loop.first %}class="active"{% endif %}>
<a data-toggle="tab" href="#{{ key }}"
<a data-toggle="tab" href="#{{ id ~ "_language_" ~ key }}"
class="{% if not child.vars.valid %}has-error{% endif %}">
{{ form_label(child) }}
</a>
</li>
{% endblock %}

{% block tab_content %}
<div id="{{ key }}" class="tab-pane fade {% if loop.first %}in active{% endif %}">
<div id="{{ id ~ "_language_" ~ key }}" class="tab-pane fade {% if loop.first %}in active{% endif %}">
{{ form_widget(child) }}
{{ form_errors(child) }}
</div>
Expand Down

0 comments on commit c2c0cf5

Please sign in to comment.