From 6153ca426f9f880c70564ecb2d5346d64c2802eb Mon Sep 17 00:00:00 2001 From: Javier Hernandez Date: Mon, 5 Feb 2024 10:48:12 +0100 Subject: improve delete confirmation Make delete confirmations show information in a manner that is easier to read. This includes delete confirmations for centers, room and folder. Messages are now more clear. Also, content table shows the type of the items (folder, room, etc.) --- ogcp/forms/action_forms.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'ogcp/forms') diff --git a/ogcp/forms/action_forms.py b/ogcp/forms/action_forms.py index 3c53d0c..8586665 100644 --- a/ogcp/forms/action_forms.py +++ b/ogcp/forms/action_forms.py @@ -175,8 +175,7 @@ class CenterForm(FlaskForm): class DeleteCenterForm(FlaskForm): server = HiddenField() - center = SelectField(label=_l('Center'), - validators=[InputRequired()]) + center = HiddenField() submit = SubmitField(label=_l('Submit')) class RoomForm(FlaskForm): @@ -194,8 +193,7 @@ class RoomForm(FlaskForm): class DeleteRoomForm(FlaskForm): server = HiddenField() - room = SelectField(label=_l('Room'), - validators=[InputRequired()]) + room = HiddenField() submit = SubmitField(label=_l('Submit')) class ImageDetailsForm(FlaskForm): -- cgit v1.2.3-18-g5258