From 229ad311bee9fea54f7fdad4d5b3a74ea173f004 Mon Sep 17 00:00:00 2001 From: Javier Sánchez Parra Date: Tue, 9 Aug 2022 19:11:00 +0200 Subject: Add current ogServer to scopesForm With this commit when users select a scope, the ogServer to which it belongs is also sent. Then when processing the form we obtain this ogServer and we can send it the pertinent requests. This commit also makes action "Add client" to use the ogServer sent in the form. --- ogcp/forms/action_forms.py | 1 + 1 file changed, 1 insertion(+) (limited to 'ogcp/forms') diff --git a/ogcp/forms/action_forms.py b/ogcp/forms/action_forms.py index 951ea06..c81b326 100644 --- a/ogcp/forms/action_forms.py +++ b/ogcp/forms/action_forms.py @@ -98,6 +98,7 @@ class ImageRestoreForm(FlaskForm): restore = SubmitField(label=_l('Restore')) class ClientDetailsForm(FlaskForm): + server = HiddenField() name = StringField(label=_l('Name')) ip = StringField(label=_l('IP')) mac = StringField(label=_l('MAC')) -- cgit v1.2.3-18-g5258