From a609ede7a8ff94921f703ee395e3be3426a6da2d Mon Sep 17 00:00:00 2001 From: Javier Hernandez Date: Tue, 6 Feb 2024 12:14:14 +0100 Subject: views: Add update room Add view to modify room information such as name, gateway and netmask --- ogcp/templates/actions/room_update.html | 19 +++++++++++++++++++ ogcp/templates/scopes.html | 2 ++ 2 files changed, 21 insertions(+) create mode 100644 ogcp/templates/actions/room_update.html (limited to 'ogcp/templates') 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 %} + +

{{_('Update room')}}

+ +{{ 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 @@ -- cgit v1.2.3-18-g5258