diff options
author | Javier Sánchez Parra <jsanchez@soleta.eu> | 2021-05-11 15:21:11 +0200 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2021-05-20 18:45:34 +0200 |
commit | 29480012e40f85e61568021776d660a9f73b7ea3 (patch) | |
tree | c9e1a2d5bbf4b6ddbf7a1ccc63cec6e8d7f3eda8 /ogcp/forms/action_forms.py | |
parent | f303240c554fde68ded5aff4a13f96d07508eb7d (diff) |
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.
Diffstat (limited to 'ogcp/forms/action_forms.py')
-rw-r--r-- | ogcp/forms/action_forms.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ogcp/forms/action_forms.py b/ogcp/forms/action_forms.py index 3bd3ef5..54b2c32 100644 --- a/ogcp/forms/action_forms.py +++ b/ogcp/forms/action_forms.py @@ -98,3 +98,8 @@ class RoomForm(FlaskForm): netmask = StringField(label=_('Netmask'), validators=[InputRequired()]) submit = SubmitField(label=_('Submit')) + +class DeleteRoomForm(FlaskForm): + room = SelectField(label=_('Room'), + validators=[InputRequired()]) + submit = SubmitField(label=_('Submit')) |