From 52a06822b273d2d35d9b630c889435fed80d2b0f Mon Sep 17 00:00:00 2001 From: Javier Sánchez Parra Date: Wed, 30 Mar 2022 17:27:59 +0200 Subject: Ask for reference when partitioning several clients Allow the user to choose a computer as reference to display the partition scheme form. --- ogcp/forms/action_forms.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ogcp/forms') diff --git a/ogcp/forms/action_forms.py b/ogcp/forms/action_forms.py index a2cac37..5e8bce1 100644 --- a/ogcp/forms/action_forms.py +++ b/ogcp/forms/action_forms.py @@ -58,6 +58,12 @@ class PartitionForm(FlaskForm): size = IntegerField(label=_l('Size (KB)')) format_partition = BooleanField(label=_l('Format')) +class SelectClientForm(FlaskForm): + ips = HiddenField() + selected_client = SelectField(label=_l('Select one client as reference to ' + 'define the partition scheme')) + ok = SubmitField(label=_l('Ok')) + class SetupForm(FlaskForm): ips = HiddenField() disk = HiddenField() -- cgit v1.2.3-18-g5258