You've already forked snikket-web-portal
This allows us to have two levels of emphasis for the actual form buttons and is also in line with the global "Log out" navigational button.
24 lines
1.1 KiB
HTML
24 lines
1.1 KiB
HTML
{% extends "admin_app.html" %}
|
|
{% from "library.j2" import box, form_button, standard_button %}
|
|
{% block content %}
|
|
<h1>{% trans user_name=target_user.localpart %}Delete user {{ user_name }}{% endtrans %}</h1>
|
|
<div class="form layout-expanded"><form method="POST">
|
|
<h2 class="form-title">{% trans %}Delete user{% endtrans %}</h2>
|
|
{{ form.csrf_token }}
|
|
<p class="form-descr">{% trans %}Are you sure you want to delete the following user?{% endtrans %}</p>
|
|
<dl>
|
|
<dt>{% trans %}Login name{% endtrans %}</dt>
|
|
<dd>{{ target_user.localpart }}</dd>
|
|
<dt>{% trans %}Display name{% endtrans %}</dt>
|
|
<dd>{{ target_user.display_name }}</dd>
|
|
</dl>
|
|
{% call box("alert", _("Danger")) %}
|
|
<p>{% trans %}The user and their data will be deleted irrevocably, permanently and immediately upon pushing the below button. <strong>There is no way back!</strong>{% endtrans %}</p>
|
|
{% endcall %}
|
|
<div class="f-bbox">
|
|
{%- call standard_button("back", url_for(".index"), class="tertiary") %}{% trans %}Back{% endtrans %}{% endcall -%}
|
|
{%- call form_button("delete", form.action_delete, class="primary danger") %}{% endcall -%}
|
|
</div>
|
|
</form></div>
|
|
{% endblock %}
|