1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-11-08 19:26:48 +00:00
webvirtcloud/templates/common/confirm_delete.html
catborise fbe93d9aee 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>
2026-10-22 11:15:00 +03:00

29 lines
No EOL
970 B
HTML

{% extends "base.html" %}
{% load django_bootstrap5 %}
{% load bootstrap_icons %}
{% load i18n %}
{% block title %}{% trans "Delete" %} {{ object }}{% endblock %}
{% block page_heading %}{% trans "Delete" %} {{ object }}{% endblock page_heading %}
{% block content %}
<div class="row">
<div class="offset-3 col-6">
<form method="post">
{% csrf_token %}
<div class="alert alert-warning">
{% blocktrans %}Delete "{{ object }}"?{% endblocktrans %} {{ consequence }}
</div>
<div class="mb-0 float-end">
<a class="btn btn-primary" href="javascript:history.back()">
{% bs_icon 'x-circle-fill' %} {% trans "Cancel" %}
</a>
<button type="submit" class="btn btn-danger">
{% bs_icon 'trash-fill' %} {% trans "Delete" %}
</button>
</div>
</form>
</div>
</div>
{% endblock %}