From bcd18241c7bf0363d00b2203c294d443b22d7807 Mon Sep 17 00:00:00 2001 From: Alejandro Sirgo Rica Date: Thu, 22 Aug 2024 10:04:55 +0200 Subject: ogcp: add disk restrictions in partition and format Use common disk space across all the selected clients. Show dynamic disk partition graph in the partition view. Limit partition sizes dynamically in the form. Move js code to handle the addition and removal of partitions into the html file to debloat ogcp.js and keep the functions local to the only file they manipulate. --- ogcp/templates/actions/setup.html | 159 +++++++++++++++++++++++++++++++++++++- 1 file changed, 158 insertions(+), 1 deletion(-) (limited to 'ogcp/templates/actions/setup.html') diff --git a/ogcp/templates/actions/setup.html b/ogcp/templates/actions/setup.html index fafcb87..934d72f 100644 --- a/ogcp/templates/actions/setup.html +++ b/ogcp/templates/actions/setup.html @@ -58,7 +58,7 @@ {{ partition.partition.data }} {{ partition.part_type(class_="form-control") }} {{ partition.fs(class_="form-control") }} - {{ partition.size(class_="form-control") }} + {{ partition.size(class_="form-control", oninput="handleEdit(this)") }} +
+
+ {{ _('Partition graph') }} +
+
+ +
+
+ + + + + + + {% endblock %} -- cgit v1.2.3-18-g5258