summaryrefslogtreecommitdiffstats
path: root/ogcp/forms
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2022-01-14 15:04:58 +0100
committerJavier Sánchez Parra <jsanchez@soleta.eu>2022-01-19 15:36:58 +0100
commit73963a0273b64cb3fb8dedcd0886dcfaf92dfc20 (patch)
treeccc4bae8de4b4bf433ca8def7c1070eb6e4cf35c /ogcp/forms
parent96d2797ec3dd4e37b668c58c43dce26ce24968d6 (diff)
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.
Diffstat (limited to 'ogcp/forms')
-rw-r--r--ogcp/forms/action_forms.py6
1 files changed, 6 insertions, 0 deletions
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'),