0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-30 01:46:24 +01:00

Add 'data-tab-nav' to tabbed interface

For compatibility with https://github.com/wagtail/wagtail/pull/7020
This commit is contained in:
Karl Hobley 2021-04-20 10:33:32 +01:00 committed by Matt Westcott
parent 43c6cd776a
commit b528b063e5

View File

@ -6,7 +6,7 @@
{% trans "Account" as account_str %}
{% include "wagtailadmin/shared/header.html" with title=account_str merged=1 tabbed=1 %}
<ul class="tab-nav merged">
<ul class="tab-nav merged" data-tab-nav>
{% for tab in panels_by_tab.keys %}
<li{% if forloop.first %} class="active"{% endif %}><a href="#{{ tab.name }}">{{ tab.title }}</a></li>
{% endfor %}