From 29480012e40f85e61568021776d660a9f73b7ea3 Mon Sep 17 00:00:00 2001 From: Javier Sánchez Parra Date: Tue, 11 May 2021 15:21:11 +0200 Subject: Add "Delete Room" form and view Creates "delete room" form with a select to choose a room to delete. Adds a new button inside the button group in the scopes view. Because scopes checkboxes values maps to ips the only way to specify the room to delete is in the delete room form itself, using a select input. --- ogcp/templates/actions/delete_room.html | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 ogcp/templates/actions/delete_room.html (limited to 'ogcp/templates/actions/delete_room.html') diff --git a/ogcp/templates/actions/delete_room.html b/ogcp/templates/actions/delete_room.html new file mode 100644 index 0000000..a5aa529 --- /dev/null +++ b/ogcp/templates/actions/delete_room.html @@ -0,0 +1,15 @@ +{% extends 'base.html' %} +{% import "bootstrap/wtf.html" as wtf %} + +{% block content %} + +

{{_('Delete room form')}}

+ +{{ wtf.quick_form(form, + action=url_for('action_room_delete'), + method='post', + button_map={'submit': 'primary'}, + extra_classes="mx-5") }} + +{% endblock %} + -- cgit v1.2.3-18-g5258