From fcbaf7d66d5e344b12b57d8d8c4c182c7497e764 Mon Sep 17 00:00:00 2001 From: Javier Sánchez Parra Date: Wed, 6 Apr 2022 17:29:44 +0200 Subject: Add Update image to commands Allows updating the image file for an existing image. This action is related to /image/create in ogServer API. If ogServer receives an POST /image/create without the parameter "description", it does not create a new image and only updates. --- ogcp/forms/action_forms.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'ogcp/forms') diff --git a/ogcp/forms/action_forms.py b/ogcp/forms/action_forms.py index 5e8bce1..5cabd54 100644 --- a/ogcp/forms/action_forms.py +++ b/ogcp/forms/action_forms.py @@ -137,6 +137,14 @@ class ImageCreateForm(FlaskForm): description = StringField(label=_l('Description')) create = SubmitField(label=_l('Create')) + +class ImageUpdateForm(FlaskForm): + ip = HiddenField() + os = SelectField(label=_l('Partition'), choices=[]) + image = SelectField(label=_l('Image'), choices=[]) + update = SubmitField(label=_l('Update')) + + class CenterForm(FlaskForm): name = StringField(label=_l('Center name'), validators=[InputRequired()]) -- cgit v1.2.3-18-g5258