summaryrefslogtreecommitdiffstats
path: root/ogcp/forms
diff options
context:
space:
mode:
authorJavier Hernandez <jhernandez@soleta.eu>2024-02-05 10:48:12 +0100
committerOpenGnSys Support Team <soporte-og@soleta.eu>2024-02-05 11:48:35 +0100
commit6153ca426f9f880c70564ecb2d5346d64c2802eb (patch)
treeb132e076715caf0ecd46aba52672cb4e808a999c /ogcp/forms
parent6a134b63372311706f174516a45ad2af8c7ff225 (diff)
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.)
Diffstat (limited to 'ogcp/forms')
-rw-r--r--ogcp/forms/action_forms.py6
1 files changed, 2 insertions, 4 deletions
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):