{{ 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 %}
