the tabs plugin has a persistent_active feature to enable saving the active tab in...
[myslice.git] / plugins / tabs / templates / tabs.html
1 <ul class="nav nav-tabs{%if persistent_active%} persistent-active{%endif%}" id='tabs-{{ domid }}'>
2 {% for son in sons %}
3 <li{% if son.is_active %} class='active'{% endif %}> <a href="#tab-{{ son.domid }}" data-toggle="tab">{{ son.title }}</a> </li>
4 {% endfor %}
5 </ul><!--nav-tabs-->
6 <div class="tab-content">
7 {% for son in sons %}
8 <div class="tab-pane fade in{% if son.is_active %} active{% endif %}" id="tab-{{ son.domid }}">
9 {{ son.rendered }}
10 </div><!--tab-pane-->
11 {% endfor %}
12 </div><!--tab-content-->