canaille-globuzma/canaille/templates/modals/delete-client.html
Éloi Rivard b4908d5e57
modals are HTML pages instead of JS elements
This will help providing the very same user experience for users with
and without javascript. We will still be able to re-enable javascript
modals in the future, but this should be done from the ground up, HTML
first and javascript after.
2023-07-18 18:34:10 +02:00

26 lines
1.2 KiB
HTML

{% extends theme('base.html') %}
{% block content %}
<div class="ui warning message">
<form method="post" action="{{ request.url }}">
<input type="hidden" name="csrf_token" value="{{ request.form.get("csrf_token") }}">
<div class="ui icon header">
<i class="trash icon"></i>
{% trans %}Client deletion{% endtrans %}
</div>
<div class="content">
<p>
{% trans client_name=client.client_name %}
Are you sure you want to delete the client {{ client_name }}? This action is unrevokable and all the data about this client will be removed.
{% endtrans %}
</p>
</div>
<div class="ui center aligned container">
<div class="ui stackable buttons">
<a href="{{ request.url }}" class="ui cancel button">{% trans %}Cancel{% endtrans %}</a>
<button name="action" value="delete" class="ui red approve button">{% trans %}Delete{% endtrans %}</button>
</div>
</div>
</form>
</div>
{% endblock %}