summaryrefslogtreecommitdiffstats
path: root/ogcp/templates/actions
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2022-03-07 15:30:43 +0100
committerJavier Sánchez Parra <jsanchez@soleta.eu>2022-03-07 16:39:12 +0100
commit45d1d56ed969963c3a8e8c26b49afa143cc1ef39 (patch)
tree962d92fd96aaa23d622f7a8e546384ef3d805a7a /ogcp/templates/actions
parent2afbb1e2082c176cf54c7660097a2e1e7e4674f7 (diff)
Set scopes nav buttons as active
When loading any scopes view, its nav button becomes active.
Diffstat (limited to 'ogcp/templates/actions')
-rw-r--r--ogcp/templates/actions/add_center.html2
-rw-r--r--ogcp/templates/actions/add_room.html2
-rw-r--r--ogcp/templates/actions/client_details.html1
-rw-r--r--ogcp/templates/actions/delete_center.html2
-rw-r--r--ogcp/templates/actions/delete_client.html2
-rw-r--r--ogcp/templates/actions/delete_room.html2
6 files changed, 11 insertions, 0 deletions
diff --git a/ogcp/templates/actions/add_center.html b/ogcp/templates/actions/add_center.html
index 59ab450..396e332 100644
--- a/ogcp/templates/actions/add_center.html
+++ b/ogcp/templates/actions/add_center.html
@@ -1,6 +1,8 @@
{% extends 'scopes.html' %}
{% import "bootstrap/wtf.html" as wtf %}
+{% block nav_center %} active{% endblock %}
+{% block nav_center_add %} active{% endblock %}
{% block content %}
<h1 class="m-5">{{_('Add center form')}}</h1>
diff --git a/ogcp/templates/actions/add_room.html b/ogcp/templates/actions/add_room.html
index d3ecc8b..0a51fa9 100644
--- a/ogcp/templates/actions/add_room.html
+++ b/ogcp/templates/actions/add_room.html
@@ -1,6 +1,8 @@
{% extends 'scopes.html' %}
{% import "bootstrap/wtf.html" as wtf %}
+{% block nav_room %} active{% endblock %}
+{% block nav_room_add %} active{% endblock %}
{% block content %}
<h1 class="m-5">{{_('Add room form')}}</h1>
diff --git a/ogcp/templates/actions/client_details.html b/ogcp/templates/actions/client_details.html
index f06fcda..62d73c7 100644
--- a/ogcp/templates/actions/client_details.html
+++ b/ogcp/templates/actions/client_details.html
@@ -3,6 +3,7 @@
{% block nav_client %} active{% endblock %}
{% block nav_client_details %} active{% endblock %}
+{% block nav_client_add %}active{% endblock %}
{% block content %}
<h1 class="m-5">{{_('Client details')}}</h1>
diff --git a/ogcp/templates/actions/delete_center.html b/ogcp/templates/actions/delete_center.html
index 1a52cdd..668bf9c 100644
--- a/ogcp/templates/actions/delete_center.html
+++ b/ogcp/templates/actions/delete_center.html
@@ -1,6 +1,8 @@
{% extends 'scopes.html' %}
{% import "bootstrap/wtf.html" as wtf %}
+{% block nav_center %} active{% endblock %}
+{% block nav_center_delete %} active{% endblock %}
{% block content %}
<h1 class="m-5">{{_('Delete center form')}}</h1>
diff --git a/ogcp/templates/actions/delete_client.html b/ogcp/templates/actions/delete_client.html
index 7a144b5..637be21 100644
--- a/ogcp/templates/actions/delete_client.html
+++ b/ogcp/templates/actions/delete_client.html
@@ -2,6 +2,8 @@
{% import "bootstrap/wtf.html" as wtf %}
{% import "macros.html" as macros %}
+{% block nav_client %} active{% endblock %}
+{% block nav_client_delete %} active{% endblock %}
{% block content %}
{% set ip_list = form.ips.data.split(' ') %}
diff --git a/ogcp/templates/actions/delete_room.html b/ogcp/templates/actions/delete_room.html
index 1761bb3..fffb25d 100644
--- a/ogcp/templates/actions/delete_room.html
+++ b/ogcp/templates/actions/delete_room.html
@@ -1,6 +1,8 @@
{% extends 'scopes.html' %}
{% import "bootstrap/wtf.html" as wtf %}
+{% block nav_room %} active{% endblock %}
+{% block nav_room_delete %} active{% endblock %}
{% block content %}
<h1 class="m-5">{{_('Delete room form')}}</h1>