summaryrefslogtreecommitdiffstats
path: root/ogcp/templates
diff options
context:
space:
mode:
authorJavier Hernandez <jhernandez@soleta.eu>2024-02-06 12:14:14 +0100
committerOpenGnSys Support Team <soporte-og@soleta.eu>2024-02-09 13:17:29 +0100
commita609ede7a8ff94921f703ee395e3be3426a6da2d (patch)
tree155adfce2ab6892d4a5c56497dfaddc3859d100d /ogcp/templates
parentd9537005768d6bad3b6ccdc07678217d3be9b9c3 (diff)
views: Add update room
Add view to modify room information such as name, gateway and netmask
Diffstat (limited to 'ogcp/templates')
-rw-r--r--ogcp/templates/actions/room_update.html19
-rw-r--r--ogcp/templates/scopes.html2
2 files changed, 21 insertions, 0 deletions
diff --git a/ogcp/templates/actions/room_update.html b/ogcp/templates/actions/room_update.html
new file mode 100644
index 0000000..608b904
--- /dev/null
+++ b/ogcp/templates/actions/room_update.html
@@ -0,0 +1,19 @@
+{% extends 'scopes.html' %}
+{% import "bootstrap/wtf.html" as wtf %}
+
+{% set sidebar_state = 'disabled' %}
+{% set btn_back = true %}
+
+{% block nav_room %} active{% endblock %}
+{% block nav_room_add %} active{% endblock %}
+{% block content %}
+
+<h1 class="m-5">{{_('Update room')}}</h1>
+
+{{ wtf.quick_form(form,
+ method='post',
+ button_map={'submit': 'primary'},
+ extra_classes="mx-5") }}
+
+{% endblock %}
+
diff --git a/ogcp/templates/scopes.html b/ogcp/templates/scopes.html
index 6d3ab4b..40d6f75 100644
--- a/ogcp/templates/scopes.html
+++ b/ogcp/templates/scopes.html
@@ -41,6 +41,8 @@
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
<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 {% block nav_room_update %}{% endblock %}" type="submit" value="{{ _('Update room') }}"
+ form="scopesForm" formaction="{{ url_for('action_room_update') }}" formmethod="get">
<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>