diff options
author | Javier Sánchez Parra <jsanchez@soleta.eu> | 2022-03-30 17:27:59 +0200 |
---|---|---|
committer | Javier Sánchez Parra <jsanchez@soleta.eu> | 2022-04-01 15:07:05 +0200 |
commit | 52a06822b273d2d35d9b630c889435fed80d2b0f (patch) | |
tree | ec1df84be2713b684cff1b838b97313684329349 /ogcp/forms/action_forms.py | |
parent | bb39f67a46fc4f39fc78e6191d0600d854d7075f (diff) |
Ask for reference when partitioning several clients
Allow the user to choose a computer as reference to display the
partition scheme form.
Diffstat (limited to 'ogcp/forms/action_forms.py')
-rw-r--r-- | ogcp/forms/action_forms.py | 6 |
1 files changed, 6 insertions, 0 deletions
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() |