diff options
author | Javier Sánchez Parra <jsanchez@soleta.eu> | 2021-07-30 12:15:29 +0200 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2021-07-30 13:01:38 +0200 |
commit | 9d98cf0423e7fa0e74bc06ae8d47c9d4896564c1 (patch) | |
tree | d514d393c909e80dc2f50e9f521deff02d33c571 /ogcp/forms | |
parent | 95c113f0674bda60cce7f1cc82ec1bf2777ed170 (diff) |
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.
Diffstat (limited to 'ogcp/forms')
-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 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()]) |