mirror of
https://github.com/retspen/webvirtcloud
synced 2026-11-08 19:26:48 +00:00
A step towards a Content-Security-Policy without inline scripts. The scripts every page or many pages share now load from static files: the error focus of base.html, the please-wait dialog, the sign-in forms' password toggle and busy button, the jobs pages' reload while a job runs, and the start of the job panel and of the VM list's state poll, whose values come as json_script data. Cancel links go back through a data-history-back attribute instead of a javascript: URL. The IE8 html5shiv/respond.js block, X-UA-Compatible and shrink-to-fit are gone: no supported browser reads them.
31 lines
1.2 KiB
HTML
31 lines
1.2 KiB
HTML
{% extends "base.html" %}
|
|
{% load bootstrap_icons %}
|
|
{% load i18n %}
|
|
|
|
{% block title %}{% trans "Delete" %} {{ object }}{% endblock %}
|
|
|
|
{% block page_header %}
|
|
<div class="row justify-content-center">
|
|
<div class="col-lg-8"><h3 class="mb-3 text-break">{% trans "Delete" %} {{ object }}</h3></div>
|
|
</div>
|
|
{% endblock page_header %}
|
|
|
|
{% block content %}
|
|
<div class="row justify-content-center">
|
|
<div class="col-lg-8">
|
|
<form method="post">
|
|
{% csrf_token %}
|
|
<div class="card mb-3">
|
|
<div class="card-body border-start border-danger border-4 rounded-start">
|
|
<h4 class="h5 text-break">{% bs_icon 'trash' %} {% blocktrans %}Delete <strong>{{ object }}</strong>?{% endblocktrans %}</h4>
|
|
{% if consequence %}<p class="mb-0">{{ consequence }}</p>{% endif %}
|
|
</div>
|
|
</div>
|
|
<div class="d-flex flex-wrap justify-content-end gap-2">
|
|
<a class="btn btn-outline-secondary" href="#" data-history-back>{% trans "Cancel" %}</a>
|
|
<button type="submit" class="btn btn-danger">{% trans "Delete" %}</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|