1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-12-03 01:16:10 +00:00
webvirtcloud/vmbackups/templates/vmbackups/restore.html
catborise 2c8493ba8c fix: a test alert button; damage shown and warned of on restore
Audit of the alerts and backup verification: an operator could learn
that the alert mail or webhook works only from a real failure. Settings
> Alerts gets "Send a test alert", sent at once to the channels saved,
each channel's result shown. A damaged backup's reasons were only in a
tooltip, so not on a touch screen: they show under the badge. A restore
of a backup that a verification found damaged, or of an incremental on
a damaged base (shown as Ready), said nothing: the restore pages warn.
2026-11-19 17:24:18 +03:00

24 lines
1.3 KiB
HTML

{% extends "base.html" %}
{% load i18n %}
{% load bootstrap_icons %}
{% load django_bootstrap5 %}
{% load operations %}
{% block title %}{% trans "Restore backup" %}{% endblock %}
{% block page_heading %}<a href="{% if user.is_superuser %}{% url 'vmbackups:index' %}{% else %}{% url 'instances:instance' backup.instance_id %}#backups{% endif %}">{% trans "Backups" %}</a> / {% trans "Restore" %}{% endblock page_heading %}
{% block content %}
<p>{% blocktrans with vm=backup.vm_name time=backup.created_at|date:"Y-m-d H:i" target=backup.target.name %}The backup of {{ vm }} taken {{ time }}, in {{ target }}, is restored as a new VM with its own UUID and MAC addresses.{% endblocktrans %}</p>
{% include "vmbackups/damage_warning.html" %}
<div class="card" style="max-width: 40rem;">
<div class="card-body">
<form method="post">
{% csrf_token %}{% submission_key %}
{% if place %}<p>{% blocktrans with compute=place.compute.name pool=place.pool %}On {{ compute }}, in storage pool {{ pool }}: the VM's host and the pool of its first disk.{% endblocktrans %}</p>{% endif %}
{% bootstrap_form form %}
<button type="submit" class="btn btn-primary">{% bs_icon 'arrow-clockwise' %} {% trans "Restore" %}</button>
</form>
</div>
</div>
{% endblock %}