From f303240c554fde68ded5aff4a13f96d07508eb7d Mon Sep 17 00:00:00 2001 From: "Jose M. Guisado" Date: Tue, 20 Apr 2021 10:56:25 +0000 Subject: Create "Add Room" form and view Creates "add room" form with required inputs only: center, name and netmask. 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 center in which to add the room is in the add room form itself, using a select input. In the future, the RoomForm can be used to display room information once such functionality lands in the ogserver. --- ogcp/templates/actions/add_room.html | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 ogcp/templates/actions/add_room.html (limited to 'ogcp/templates/actions') diff --git a/ogcp/templates/actions/add_room.html b/ogcp/templates/actions/add_room.html new file mode 100644 index 0000000..dffdc87 --- /dev/null +++ b/ogcp/templates/actions/add_room.html @@ -0,0 +1,15 @@ +{% extends 'base.html' %} +{% import "bootstrap/wtf.html" as wtf %} + +{% block content %} + +

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

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