PCv5/app/templates/admin/delete_account.html

31 lines
1.0 KiB
HTML
Raw Normal View History

{% extends "base/base.html" %}
2019-02-06 12:44:44 +01:00
{% block title %}
<a href="{{ url_for('adm') }}">Panneau d'administration</a> » <h1>Suppression du compte de '{{ user.name }}'</h1>
{% endblock %}
2019-02-06 12:44:44 +01:00
{% block content %}
<section class="form">
<h2>Confirmer la suppression du compte</h2>
<p>Le compte '{{ user.name }}' que vous allez supprimer est lié à :</p>
<ul>
2019-02-11 13:16:46 +01:00
<li>{{ user.groups | length }} groupe{{ user.groups|length|pluralize }}</li>
<li>{% set sp = user.special_privileges() | length %}
{{- sp }} privilège{{sp|pluralize}} spéci{{sp|pluralize("al","aux")}}</li>
</ul>
<form action="{{ url_for('adm_delete_account', user_id=user.id) }}" method=post>
2019-02-06 12:44:44 +01:00
{{ del_form.hidden_tag() }}
<div>
{{ del_form.delete.label }}
{{ del_form.delete(checked=False) }}
<div style="font-size: 80%; color: gray">{{ del_form.delete.description }}</div>
2019-02-06 12:44:44 +01:00
{% for error in del_form.delete.errors %}
<span class=msgerror>{{ error }}</span>
2019-02-06 12:44:44 +01:00
{% endfor %}
</div>
<div>{{ del_form.submit(class_="bg-red") }}</div>
</form>
</section>
{% endblock %}