summaryrefslogtreecommitdiffstats
path: root/ogcp/templates
diff options
context:
space:
mode:
authorAlejandro Sirgo Rica <asirgo@soleta.eu>2024-05-10 17:03:11 +0200
committerAlejandro Sirgo Rica <asirgo@soleta.eu>2024-05-12 14:59:53 +0200
commit6034ba2537368f7da0569e7614bd2c7f110457b1 (patch)
tree6c9f353596a6c78adcc0f37d897c3011f950841b /ogcp/templates
parenta04ef4e421ec29a3fb2f8181b5c7af381767001c (diff)
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.
Diffstat (limited to 'ogcp/templates')
-rw-r--r--ogcp/templates/actions/setup.html2
-rw-r--r--ogcp/templates/base.html2
2 files changed, 2 insertions, 2 deletions
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 %}
<tr data-toggle="fieldset-entry">
{{ partition.hidden_tag() }}
- <td>{{ partition.partition(class_="form-control") }}</td>
+ <td>{{ partition.partition.data }}</td>
<td>{{ partition.part_type(class_="form-control") }}</td>
<td>{{ partition.fs(class_="form-control") }}</td>
<td>{{ partition.size(class_="form-control") }}</td>
diff --git a/ogcp/templates/base.html b/ogcp/templates/base.html
index 9ade1d2..49f9804 100644
--- a/ogcp/templates/base.html
+++ b/ogcp/templates/base.html
@@ -111,7 +111,7 @@
<!-- ChartJS -->
<script src="{{ url_for('static', filename='AdminLTE/plugins/chart.js/Chart.min.js') }}"></script>
- <script src="{{ url_for('static', filename='js/ogcp.js') }}?v=2"></script>
+ <script src="{{ url_for('static', filename='js/ogcp.js') }}?v=3"></script>
<script>
// error messages