summaryrefslogtreecommitdiffstats
path: root/ogcp/forms/action_forms.py
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2022-03-30 17:27:59 +0200
committerJavier Sánchez Parra <jsanchez@soleta.eu>2022-04-01 15:07:05 +0200
commit52a06822b273d2d35d9b630c889435fed80d2b0f (patch)
treeec1df84be2713b684cff1b838b97313684329349 /ogcp/forms/action_forms.py
parentbb39f67a46fc4f39fc78e6191d0600d854d7075f (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.py6
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()