summaryrefslogtreecommitdiffstats
path: root/ogcp/templates/scopes.html
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/scopes.html
parent2afbb1e2082c176cf54c7660097a2e1e7e4674f7 (diff)
Set scopes nav buttons as active
When loading any scopes view, its nav button becomes active.
Diffstat (limited to 'ogcp/templates/scopes.html')
-rw-r--r--ogcp/templates/scopes.html18
1 files changed, 9 insertions, 9 deletions
diff --git a/ogcp/templates/scopes.html b/ogcp/templates/scopes.html
index c4d4740..d565c96 100644
--- a/ogcp/templates/scopes.html
+++ b/ogcp/templates/scopes.html
@@ -17,35 +17,35 @@
{% block commands %}
<div class="dropdown btn">
- <button class="btn btn-secondary btn-light dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-expanded="false">
+ <button class="btn btn-secondary btn-light dropdown-toggle {% block nav_client %}{% endblock %}" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-expanded="false">
{{ _('Client') }}
</button>
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
- <input class="btn btn-light dropdown-item" type="submit" value="{{ _('Add client') }}"
+ <input class="btn btn-light dropdown-item {% block nav_client_add %}{% endblock %}" type="submit" value="{{ _('Add client') }}"
form="scopesForm" formaction="{{ url_for('action_client_add') }}" formmethod="get">
- <input class="btn btn-light dropdown-item" type="submit" value="{{ _('Delete client') }}"
+ <input class="btn btn-light dropdown-item {% block nav_client_delete %}{% endblock %}" type="submit" value="{{ _('Delete client') }}"
form="scopesForm" formaction="{{ url_for('action_client_delete') }}" formmethod="get">
</div>
</div>
<div class="dropdown btn">
- <button class="btn btn-secondary btn-light dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-expanded="false">
+ <button class="btn btn-secondary btn-light dropdown-toggle {% block nav_room %}{% endblock %}" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-expanded="false">
{{ _('Room') }}
</button>
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
- <input class="btn btn-light dropdown-item" type="submit" value="{{ _('Add room') }}"
+ <input class="btn btn-light dropdown-item {% block nav_room_add %}{% endblock %}" type="submit" value="{{ _('Add room') }}"
form="scopesForm" formaction="{{ url_for('action_room_add') }}" formmethod="get">
- <input class="btn btn-light dropdown-item" type="submit" value="{{ _('Delete room') }}"
+ <input class="btn btn-light dropdown-item {% block nav_room_delete %}{% endblock %}" type="submit" value="{{ _('Delete room') }}"
form="scopesForm" formaction="{{ url_for('action_room_delete') }}" formmethod="get">
</div>
</div>
<div class="dropdown btn">
- <button class="btn btn-secondary btn-light dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-expanded="false">
+ <button class="btn btn-secondary btn-light dropdown-toggle {% block nav_center %}{% endblock %}" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-expanded="false">
{{ _('Center') }}
</button>
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
- <input class="btn btn-light dropdown-item" type="submit" value="{{ _('Add center') }}"
+ <input class="btn btn-light dropdown-item {% block nav_center_add %}{% endblock %}" type="submit" value="{{ _('Add center') }}"
form="scopesForm" formaction="{{ url_for('action_center_add') }}" formmethod="get">
- <input class="btn btn-light dropdown-item" type="submit" value="{{ _('Delete center') }}"
+ <input class="btn btn-light dropdown-item {% block nav_center_delete %}{% endblock %}" type="submit" value="{{ _('Delete center') }}"
form="scopesForm" formaction="{{ url_for('action_center_delete') }}" formmethod="get">
</div>
</div>