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 64057f8d05 fix(templates): icon-only buttons, selects and delete pages have accessible names
An accessibility scan (axe-core, WCAG 2 A/AA) of every page found 87
elements without a name. Icon-only buttons and links (the navbar's
administration menu on every page, the add/create buttons, the flavor
delete and back buttons) get a title, which is also their tooltip; the
labels of the language, architecture, chipset and filter selects point
at them; the memory bar is named. The shared delete confirmation page
had an empty <title> and heading, as no view passes "title": it says
"Delete <object>". The power-off form's aria-label was misspelled.
2026-10-19 16:15:06 +03:00

29 lines
No EOL
955 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">
{%trans "Are you sure you want to delete" %} "{{ object }}"?
</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 %}