From 6034ba2537368f7da0569e7614bd2c7f110457b1 Mon Sep 17 00:00:00 2001 From: Alejandro Sirgo Rica Date: Fri, 10 May 2024 17:03:11 +0200 Subject: Make partition id non editable in partition form Show the partition id as a non editable label in each partition of the Partition and Format form. Assign sequential partition id from top to down and recalculate every partition id when a partition is removed. --- ogcp/templates/actions/setup.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ogcp/templates/actions') diff --git a/ogcp/templates/actions/setup.html b/ogcp/templates/actions/setup.html index 68aefe9..014fb7a 100644 --- a/ogcp/templates/actions/setup.html +++ b/ogcp/templates/actions/setup.html @@ -56,7 +56,7 @@ {% for partition in form.partitions %} {{ partition.hidden_tag() }} - {{ partition.partition(class_="form-control") }} + {{ partition.partition.data }} {{ partition.part_type(class_="form-control") }} {{ partition.fs(class_="form-control") }} {{ partition.size(class_="form-control") }} -- cgit v1.2.3-18-g5258