summaryrefslogtreecommitdiff
path: root/web/kbn_templates/routing_header.j2
blob: 527f154fce2ef55f97d98335dd0340d0e1a4aee3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{{ breadcrumbs([{'text': 'routing'|lang}]) }}

{% set routing_tabs = [
  {'tab': 'main',  'url': '/routing/main.cgi',   'label': 'routing_main'|lang},
  {'tab': 'rules', 'url': '/routing/rules.cgi', 'label': 'routing_rules'|lang},
  {'tab': 'dhcp',  'url': '/routing/dhcp.cgi',   'label': 'DHCP'}
] %}

<nav>
    <div class="nav nav-tabs" id="nav-tab">
        {% for tab in routing_tabs %}
            <a href="{{ tab.url }}" class="text-decoration-none"><button class="nav-link{% if tab.tab == selected_tab %} active{% endif %}" type="button">{{ tab.label }}</button></a>
        {% endfor %}
    </div>
</nav>

{% if error %}
    <div class="mt-4 alert alert-danger"><b>{{ "error"|lang }}:</b> {{ error }}</div>
{% endif %}