From 025d78c643d9f2998f9c68796215bfc3f727573f Mon Sep 17 00:00:00 2001 From: Javier Sánchez Parra Date: Tue, 23 Aug 2022 17:41:27 +0200 Subject: 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. --- ogcp/forms/action_forms.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ogcp/forms') 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')) -- cgit v1.2.3-18-g5258