diff --git a/src/yasi_applets/disks/__pycache__/routes.cpython-313.pyc b/src/yasi_applets/disks/__pycache__/routes.cpython-313.pyc deleted file mode 100644 index f3625ee..0000000 Binary files a/src/yasi_applets/disks/__pycache__/routes.cpython-313.pyc and /dev/null differ diff --git a/src/yasi_applets/disks/disks_erase_confirmed.html b/src/yasi_applets/disks/disks_erase_confirmed.html new file mode 100644 index 0000000..9ec4835 --- /dev/null +++ b/src/yasi_applets/disks/disks_erase_confirmed.html @@ -0,0 +1,105 @@ +{% extends "layout.html" %} +{% block body %} + +

The following disk will be erased:

+ +{% for disk in blockdevs["blockdevices"] if disk["name"] == diskname %} +{% set disk_size = disk['size'] %} + +
+
+

+ {{ disk['name'] }}:   {{ disk['model'] }} - {{ disk['tran'] }} disk ({{(disk['size']/1024000000)|round(0)|int }} GB) - Serial: {{ disk['serial'] }}

+
+
+ + {% if disk['maj:min'] == "252:0" %} +
+
+ swap +

+
+
+ {% endif %} + +{% set colors = ['teal', '#E69F00', '#56B4E9', '#009E73', '#0072B2', '#D55E00', '#CC79A7'] %} + +
+ {% for child in disk['children'] %} + +
+   {{ child['name'] }} +
+ {% endfor %} +
+ + + + + + + +{% for child in disk['children'] %} + + + + + + + +{% endfor %} +
PartitionTypeMount PointLabelSize
{{ child['name'] }}{{ child['fstype'] }}{{ child['mountpoint'] }}{{ child['label'] }} {{ (child['size']/1024000000)|round(2) }} GiB
+
+
+{% endfor %} + +
+ +

This layout will be created:

+ +{% for disk in blockdevs["blockdevices"] if disk["name"] == diskname %} +{% set disk_size = disk['size'] %} +
+
+

+ New GPT Partition Table on {{ disk['name'] }}

+ +
+
+ +{% set colors = ['teal', '#E69F00', '#56B4E9', '#009E73', '#0072B2', '#D55E00', '#CC79A7'] %} + +
+ {% for partition in partitions['command_set'] if partition['action-type'] == 'newpart' %} + +
+ +   {{ partition['device'] }} +
+ {% endfor %} +
+ + + + + + + +{% for partition in partitions['command_set'] if partition['action-type'] == 'newpart' %} + + + + + + + +{% endfor %} +
PartitionTypeMount PointLabelSize
{{ partition['device'] }}{{ partition['fstype'] }}{{ partition['mountpoint'] }}{{ partition['label'] }} {{ partition['size'] }}
+
+
+{% endfor %} + + +
+ +{% endblock %}