File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change 1
1
{% block koff_i18n_widget %}
2
2
{{ form_errors(form ) }}
3
- <div class =" a2lix_translations tabbable" >
4
- <ul class =" a2lix_translationsLocales nav nav-tabs" >
3
+ <ul class =" nav nav-tabs" role =" tablist" >
5
4
{% for translationsFields in form %}
6
5
{% set locale = translationsFields .vars .name %}
7
-
8
- <li {% if app .request .locale == locale %}class =" active" {% endif %}>
9
- <a href =" #" data-toggle =" tab" data-target =" .{{ translationsFields .vars .id }}_a2lix_translationsFields-{{ locale }}" >
6
+ <li class =" nav-item" >
7
+ <a href =" #{{ translationsFields .vars .id }}-{{ locale }}" class =" nav-link {% if app .request .locale == locale %}active{% endif %}" data-toggle =" tab" id =" {{ translationsFields .vars .id }}-{{ locale }}-tab" >
10
8
{{ translationsFields .vars .label | default (locale |humanize)| trans }}
11
9
{% if form .vars .default_locale == locale %}{{ ' [Default]' | trans }}{% endif %}
12
10
{% if translationsFields .vars .required %}*{% endif %}
13
11
</a >
14
12
</li >
15
13
{% endfor %}
16
- </ul >
14
+ </ul >
17
15
18
- <div class =" a2lix_translationsFields tab-content" >
16
+ <div class =" tab-content" >
19
17
{% for translationsFields in form %}
20
18
{% set locale = translationsFields .vars .name %}
21
19
22
- <div class =" {{ translationsFields . vars . id }}_a2lix_translationsFields-{{ locale }} tab-pane {% if app .request .locale == locale %}active{% endif %} {% if not form .vars .valid %}sonata-ba-field-error{% endif %} " >
20
+ <div class =" tab-pane {% if app .request .locale == locale %}active{% endif %}" id = " {{ translationsFields .vars .id }}-{{ locale }} " role = " tabpanel " >
23
21
{{ form_errors(translationsFields ) }}
24
22
{{ form_widget(translationsFields ) }}
25
23
</div >
26
24
{% endfor %}
27
- </div >
28
25
</div >
29
26
{% endblock %}
30
27
You can’t perform that action at this time.
0 commit comments