From 5dd2b5c6dcd51438f71da05af399999ba512e0ca Mon Sep 17 00:00:00 2001 From: Javier Sánchez Parra Date: Wed, 28 Jul 2021 17:14:51 +0200 Subject: Add full scheme partitioning support The initial "Partition & Format" (aka setup) form only allows to modify one partition at a time. This commit updates it to allow to modify the whole disk partition schema in one go, without pop-ups and transitions. This is a remake of the previous form using FieldList de WTForms and javascript to duplicate / remove FieldList adapted to the attributes available in WTForms. --- ogcp/templates/actions/setup.html | 122 ++++++++++++++++---------------------- 1 file changed, 52 insertions(+), 70 deletions(-) (limited to 'ogcp/templates') diff --git a/ogcp/templates/actions/setup.html b/ogcp/templates/actions/setup.html index 6856ed1..c1633c6 100644 --- a/ogcp/templates/actions/setup.html +++ b/ogcp/templates/actions/setup.html @@ -4,79 +4,61 @@

{{_('Partition and Format')}}

- - - - - - - - - - + +
TypeFilesytemSize (KB)Format?
+ + + + + + - - {% for form in forms %} - - - {{ form.hidden_tag() }} - - - - - - - - - {% endfor %} - -
Partition TableTotal Disk Size (KB)
{{ form.part_type(class_="form-control") }}{{ form.fs(class_="form-control") }}{{ form.size(class_="form-control") }}{{ form.format_partition(class_="form-control") }}{{ form.modify(class_="form-control btn-primary") }}{{ form.delete(class_="form-control btn-danger") }}
+ + + {{ form.hidden_tag() }} + {{ form.disk_type(class_="form-control") }} + {{ disk_size }} + + + + + + + + + + + + + + - + + {% for partition in form.partitions %} + + {{ partition.hidden_tag() }} + + + + + + + + {% endfor %} + +
PartitionTypeFilesytemSize (KB)Format?
{{ partition.partition(class_="form-control") }}{{ partition.part_type(class_="form-control") }}{{ partition.fs(class_="form-control") }}{{ partition.size(class_="form-control") }}{{ partition.format_partition(class_="form-control") }} + +
+ - - + {% endblock %} -- cgit v1.2.3-18-g5258