From 26a10d127a86bc7fa9dc9cc3e6e206f614ed3cc7 Mon Sep 17 00:00:00 2001 From: catborise Date: Sat, 31 Oct 2026 16:08:44 +0300 Subject: [PATCH] fix(instances): the disk Edit dialog on one page, and an empty serial stays empty The disk Edit dialog showed a disk without a serial as "None" in its Serial box, so saving it untouched gave the disk the serial "None". The box and the format box are now empty for a missing value. The dialog also hid most of its nine fields behind three tabs, said nothing about a running VM, greyed the bus without a reason and its switch labels did not toggle them. Now one body shows the disk's bus, format and size under the title; a running VM's note that the changes apply at its next start; the path and the Read-only and Shareable switches in a Source card; the four performance modes in a grid; and the bus, serial and image format folded under Device, with why the bus is locked and that changing the format does not convert the image. Cancel is outlined and Save the primary action. --- .../instances/edit_instance_volume.html | 156 +++++++++--------- instances/tests/test_pending_edits.py | 10 ++ 2 files changed, 88 insertions(+), 78 deletions(-) diff --git a/instances/templates/instances/edit_instance_volume.html b/instances/templates/instances/edit_instance_volume.html index e2fd7f65..525f7e93 100644 --- a/instances/templates/instances/edit_instance_volume.html +++ b/instances/templates/instances/edit_instance_volume.html @@ -1,117 +1,117 @@ {% load i18n %} -{% load bootstrap_icons %} {% if request.user.is_superuser %} -