From 86619521379c4364ebd02fd6c18ad747b397b100 Mon Sep 17 00:00:00 2001 From: Jonathan Carter Date: Mon, 9 Sep 2024 20:42:20 +0200 Subject: [PATCH] Work on initial partition edit UI --- src/applets/webui/routes.py | 8 +++ src/static/htmx.min.js | 1 + src/static/htmx.min.js.gz | 1 - src/templates/disks.html | 100 ++++++++++++++++++++++++++--- src/templates/disks_partition.html | 83 ++++++++++++++++++++++++ 5 files changed, 182 insertions(+), 11 deletions(-) create mode 120000 src/static/htmx.min.js delete mode 120000 src/static/htmx.min.js.gz create mode 100644 src/templates/disks_partition.html diff --git a/src/applets/webui/routes.py b/src/applets/webui/routes.py index 7bdd0b7..6526907 100644 --- a/src/applets/webui/routes.py +++ b/src/applets/webui/routes.py @@ -70,6 +70,14 @@ def webui_disks(): return render_template('disks.html') +@bp.route('/webui/disks/partition/') +def webui_disks_partition(part): + """ + Partition modal for the webui partition screen. + """ + return render_template('disks_partition.html') + + @bp.route('/webui/software') def webui_software(): """ diff --git a/src/static/htmx.min.js b/src/static/htmx.min.js new file mode 120000 index 0000000..5d13217 --- /dev/null +++ b/src/static/htmx.min.js @@ -0,0 +1 @@ +/usr/share/javascript/htmx/htmx.min.js \ No newline at end of file diff --git a/src/static/htmx.min.js.gz b/src/static/htmx.min.js.gz deleted file mode 120000 index 6d2a285..0000000 --- a/src/static/htmx.min.js.gz +++ /dev/null @@ -1 +0,0 @@ -/usr/share/javascript/htmx/htmx.min.js.gz \ No newline at end of file diff --git a/src/templates/disks.html b/src/templates/disks.html index eb90715..92c5c53 100644 --- a/src/templates/disks.html +++ b/src/templates/disks.html @@ -5,6 +5,7 @@ + @@ -57,36 +58,115 @@
-

Physical disk: TOSHIBA HDWD120 (20 GB)

+

Physical disk: TOSHIBA HDWD120 (20 GB) + Healthy +

+
-

/dev/sda1

-

/boot/efi 200 MB vfat

+

/dev/sda1

+

/boot/efi + 200 MB + vfat +

+ +
-