use label tag + for attribute instead of a + href for properly work with inline formsets

This commit is contained in:
seroy
2018-02-20 00:58:08 +03:00
parent 09cd0a8177
commit d7889b0601
3 changed files with 6 additions and 6 deletions

View File

@@ -3,7 +3,7 @@
<ul class="localized-fields-widget tabs">
{% for widget in widget.subwidgets %}
<li class="localized-fields-widget tab">
<a href="#{{ widget_id }}_{{ widget.lang_code }}">{{ widget.lang_name|capfirst }}</a>
<label for="{{ widget_id }}_{{ widget.lang_code }}">{{ widget.lang_name|capfirst }}</label>
</li>
{% endfor %}
</ul>