From 9d98cf0423e7fa0e74bc06ae8d47c9d4896564c1 Mon Sep 17 00:00:00 2001 From: Javier Sánchez Parra Date: Fri, 30 Jul 2021 12:15:29 +0200 Subject: Add "Delete center" action Creates "delete center" form with a select to choose a center to delete. Adds a new button in the scopes view. Because scopes checkboxes values maps to ips the only way to specify the center to delete is in the delete center form itself, using a select input. --- ogcp/forms/action_forms.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ogcp/forms') diff --git a/ogcp/forms/action_forms.py b/ogcp/forms/action_forms.py index c5b4909..1be2120 100644 --- a/ogcp/forms/action_forms.py +++ b/ogcp/forms/action_forms.py @@ -109,6 +109,11 @@ class CenterForm(FlaskForm): comment = StringField(label=_('Comment')) submit = SubmitField(label=_('Submit')) +class DeleteCenterForm(FlaskForm): + center = SelectField(label=_('Center'), + validators=[InputRequired()]) + submit = SubmitField(label=_('Submit')) + class RoomForm(FlaskForm): center = SelectField(label=_('Center'), validators=[InputRequired()]) -- cgit v1.2.3-18-g5258