diff options
author | Alejandro Sirgo Rica <asirgo@soleta.eu> | 2024-06-17 17:03:30 +0200 |
---|---|---|
committer | Alejandro Sirgo Rica <asirgo@soleta.eu> | 2024-06-17 17:10:05 +0200 |
commit | a7423d29436f20b440f81f7bf3c18d80cf1e6114 (patch) | |
tree | a58225c0a787e33dcfa5434158294c7561729d53 /ogcp/templates | |
parent | d135a4806dc12d24240fd50fcbcb5ab6f5c89db1 (diff) |
ogcp: add room details view to scopes management
Add a readonly view for the room data.
Mark all the form fields as readonly and set the hidden attribute
to the submit field.
Diffstat (limited to 'ogcp/templates')
-rw-r--r-- | ogcp/templates/actions/room_details.html | 18 | ||||
-rw-r--r-- | ogcp/templates/scopes.html | 2 |
2 files changed, 20 insertions, 0 deletions
diff --git a/ogcp/templates/actions/room_details.html b/ogcp/templates/actions/room_details.html new file mode 100644 index 0000000..0c9d59f --- /dev/null +++ b/ogcp/templates/actions/room_details.html @@ -0,0 +1,18 @@ +{% 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_details %} active {% endblock %} +{% block content %} + +<h1 class="m-5">{{_('Room details')}}</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 04285be..725454b 100644 --- a/ogcp/templates/scopes.html +++ b/ogcp/templates/scopes.html @@ -47,6 +47,8 @@ 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"> + <input class="btn btn-light dropdown-item {% block nav_room_info %}{% endblock %}" type="submit" value="{{ _('Room details') }}" + form="scopesForm" formaction="{{ url_for('action_room_info') }}" formmethod="get"> </div> </div> <div class="dropdown btn"> |