From 73963a0273b64cb3fb8dedcd0886dcfaf92dfc20 Mon Sep 17 00:00:00 2001 From: Javier Sánchez Parra Date: Fri, 14 Jan 2022 15:04:58 +0100 Subject: Ask twice to delete clients This commit adds an extra view to ensure users do not clients accidentally. It also includes Spanish translation of the new strings. --- ogcp/forms/action_forms.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ogcp/forms') diff --git a/ogcp/forms/action_forms.py b/ogcp/forms/action_forms.py index 52fd00d..44a898f 100644 --- a/ogcp/forms/action_forms.py +++ b/ogcp/forms/action_forms.py @@ -14,6 +14,12 @@ from flask_wtf import FlaskForm from flask_babel import lazy_gettext as _l from flask_babel import _ + +class GenericForm(FlaskForm): + ips = HiddenField() + submit = SubmitField(label=_l('Submit')) + + class WOLForm(FlaskForm): ips = HiddenField() wol_type = SelectField(label=_l('Type'), -- cgit v1.2.3-18-g5258