diff options
author | Javier Sánchez Parra <jsanchez@soleta.eu> | 2022-08-23 17:41:27 +0200 |
---|---|---|
committer | Javier Sánchez Parra <jsanchez@soleta.eu> | 2022-09-27 09:48:35 +0200 |
commit | 9ca010a981bb7c0a4dcc91fb0bcfdf0eb086fdb4 (patch) | |
tree | 3c794eb60c0ab0ce363b35ae4f6fdc5e58a3f02b /ogcp/forms | |
parent | 3d42c2c66c5fe4cfb3fcab6847234b6e27ad4eb1 (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.py | 2 |
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')) |