summaryrefslogtreecommitdiff
path: root/tuskar_ui/infrastructure/templates/horizon/common/_items_count_tab_group.html
blob: 1d873133756b38cc8e0cb81bf7c2db03a9d13c34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{% with tab_group.get_tabs as tabs %}
{% if tabs %}

  {# Tab Navigation #}
  <ul id="{{ tab_group.get_id }}" {{ tab_group.attr_string|safe }}>
    {% for tab in tabs %}
    <li {{ tab.attr_string|safe }}>
      <a href="?{{ tab_group.param_name}}={{ tab.get_id }}" data-toggle="tab" data-target="#{{ tab.get_id }}" data-loaded='{{ tab.load|yesno:"true,false" }}'>
        {{ tab.name }} {% if tab.get_items_count %} ({{ tab.get_items_count }}) {% endif %}
      </a>
    </li>
    {% endfor %}
  </ul>

  {# Tab Content #}
  <div class="tab-content">
    {% for tab in tabs %}
    <div id="{{ tab.get_id }}" class="tab-pane{% if tab.is_active %} active{% endif %}">
      {{ tab.render }}
    </div>
    {% endfor %}
  </div>

{% endif %}
{% endwith %}