summaryrefslogtreecommitdiff
path: root/web/kbn_templates/routing_header.j2
diff options
context:
space:
mode:
Diffstat (limited to 'web/kbn_templates/routing_header.j2')
-rw-r--r--web/kbn_templates/routing_header.j219
1 files changed, 19 insertions, 0 deletions
diff --git a/web/kbn_templates/routing_header.j2 b/web/kbn_templates/routing_header.j2
new file mode 100644
index 0000000..527f154
--- /dev/null
+++ b/web/kbn_templates/routing_header.j2
@@ -0,0 +1,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 %}