summaryrefslogtreecommitdiffstats
path: root/ogcp/forms
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2022-08-23 17:41:27 +0200
committerJavier Sánchez Parra <jsanchez@soleta.eu>2022-08-31 15:57:52 +0200
commit025d78c643d9f2998f9c68796215bfc3f727573f (patch)
tree43ea49a5310006621fcc58931a5fd455b97c0496 /ogcp/forms
parent60b773607b4a4f9d9ab4dd8c59aaf8934a9c1071 (diff)
Adapt Add center to work with several ogServers
This commit adds a new select input with all available ogServers to "Add center" view. The ogCP creates the center in the ogServer selected by the user.
Diffstat (limited to 'ogcp/forms')
-rw-r--r--ogcp/forms/action_forms.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ogcp/forms/action_forms.py b/ogcp/forms/action_forms.py
index 93c8075..bf5c5f3 100644
--- a/ogcp/forms/action_forms.py
+++ b/ogcp/forms/action_forms.py
@@ -155,6 +155,8 @@ class ImageUpdateForm(FlaskForm):
class CenterForm(FlaskForm):
+ server = SelectField(label=_l('Server'),
+ validators=[InputRequired()])
name = StringField(label=_l('Center name'),
validators=[InputRequired()])
comment = StringField(label=_l('Comment'))