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'] }}
+| Partition | +Type | +Mount Point | +Label | +Size | +{% for child in disk['children'] %} +
|---|---|---|---|---|
| {{ child['name'] }} | +{{ child['fstype'] }} | +{{ child['mountpoint'] }} | +{{ child['label'] }} | +{{ (child['size']/1024000000)|round(2) }} GiB | +
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'] }}
+ +| Partition | +Type | +Mount Point | +Label | +Size | +{% for partition in partitions['command_set'] if partition['action-type'] == 'newpart' %} +
|---|---|---|---|---|
| {{ partition['device'] }} | +{{ partition['fstype'] }} | +{{ partition['mountpoint'] }} | +{{ partition['label'] }} | +{{ partition['size'] }} | +