From 7299b157d7a21f1c389daee75a78019f770d6368 Mon Sep 17 00:00:00 2001 From: Alejandro Sirgo Rica Date: Mon, 13 May 2024 10:07:52 +0200 Subject: remove Format field from partition setup form Remove the 'Format' field from the Partition and Format form as the default value will always be to format the partitions. This will lead to less portantial codepaths to maintain and support and less manual clicks in the web form. --- ogcp/forms/action_forms.py | 1 - ogcp/templates/actions/setup.html | 2 -- ogcp/views.py | 4 ++-- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/ogcp/forms/action_forms.py b/ogcp/forms/action_forms.py index f2a3602..94388c8 100644 --- a/ogcp/forms/action_forms.py +++ b/ogcp/forms/action_forms.py @@ -56,7 +56,6 @@ class PartitionForm(FlaskForm): ('FAT32', 'FAT32'), ('EMPTY', 'Empty')]) size = IntegerField(label=_l('Size (KB)')) - format_partition = BooleanField(label=_l('Format')) class SelectClientForm(FlaskForm): ips = HiddenField() diff --git a/ogcp/templates/actions/setup.html b/ogcp/templates/actions/setup.html index 014fb7a..a81d67e 100644 --- a/ogcp/templates/actions/setup.html +++ b/ogcp/templates/actions/setup.html @@ -47,7 +47,6 @@ {{ _('Type') }} {{ _('Filesystem') }} {{ _('Size') }} (MB) - {{ _('Format?') }} @@ -60,7 +59,6 @@ {{ partition.part_type(class_="form-control") }} {{ partition.fs(class_="form-control") }} {{ partition.size(class_="form-control") }} - {{ partition.format_partition(class_="form-control") }}