mirror of
https://github.com/retspen/webvirtcloud
synced 2026-12-02 08:56:07 +00:00
fix(templates): each delete page says what deleting its object does
The shared delete page asked only whether to delete the object. Each view now gives its consequence: a deleted compute's VMs keep running but the panel forgets them and their owners, a deleted user's VMs stay, a group's members keep their accounts, a VM's owner loses only the access, a removed VM's record no longer brings its owners back, an SSH key stays on the VMs that have it, a flavor only goes as a size template. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
f9c8c36a6b
commit
fbe93d9aee
6 changed files with 54 additions and 7 deletions
|
|
@ -93,6 +93,7 @@ def ssh_key_delete(request, pk):
|
|||
{
|
||||
"object": ssh_key,
|
||||
"title": _("Delete SSH key"),
|
||||
"consequence": _("VMs that already have it keep it; VMs created from now on do not get it."),
|
||||
},
|
||||
)
|
||||
|
||||
|
|
@ -200,7 +201,8 @@ def user_instance_delete(request, pk):
|
|||
return render(
|
||||
request,
|
||||
"common/confirm_delete.html",
|
||||
{"object": user_instance},
|
||||
{"object": user_instance,
|
||||
"consequence": _("The user loses access to this VM; the VM itself is not changed.")},
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue