devicehub-django/admin/templates/delete_user.html

47 lines
1.3 KiB
HTML
Raw Normal View History

2024-10-07 14:56:24 +00:00
{% extends "base.html" %}
{% load i18n %}
2025-02-14 21:13:49 +00:00
{% load django_bootstrap5 %}
2024-10-07 14:56:24 +00:00
{% block content %}
<div class="row">
<div class="col">
<h3>{{ subtitle }}</h3>
</div>
</div>
2025-02-14 21:13:49 +00:00
<div class="row mb-4">
<div class="col">
<div class="alert alert-warning" role="alert">
<i class="bi bi-exclamation-triangle-fill me-2"></i>
{% blocktranslate %}
Are you sure you want to remove the lot <strong>{{ object.name }}</strong> with <strong>{{ object.devices.count }}</strong> devices?
{% endblocktranslate %}
</div>
</div>
2024-10-07 14:56:24 +00:00
</div>
<form role="form" method="post">
{% csrf_token %}
{% if form.errors %}
<div class="alert alert-danger alert-icon alert-icon-border alert-dismissible" role="alert">
<div class="icon"><span class="mdi mdi-close-circle-o"></span></div>
<div class="message">
{% for field, error in form.errors.items %}
{{ error }}<br />
{% endfor %}
<button class="btn-close" type="button" data-dismiss="alert" aria-label="Close"></button>
</div>
</div>
{% endif %}
{% bootstrap_form form %}
<div class="form-actions-no-box">
<a class="btn btn-grey" href="{% url 'admin:users' %}">{% translate "Cancel" %}</a>
2025-02-14 21:13:49 +00:00
<button type="submit" class="btn btn-danger">
<i class="bi bi-trash me-1"></i>
{% translate "Delete" %}
</button>
2024-10-07 14:56:24 +00:00
</div>
</form>
{% endblock %}