Code source de Planète Casio https://planet-casio.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

delete_account.html 1.0KB

123456789101112131415161718192021222324252627282930
  1. {% extends "base/base.html" %}
  2. {% block title %}
  3. <a href="{{ url_for('adm') }}">Panneau d'administration</a> » <h1>Suppression du compte de '{{ user.name }}'</h1>
  4. {% endblock %}
  5. {% block content %}
  6. <section class="form">
  7. <h2>Confirmer la suppression du compte</h2>
  8. <p>Le compte '{{ user.name }}' que vous allez supprimer est lié à :</p>
  9. <ul>
  10. <li>{{ user.groups | length }} groupe{{ user.groups|length|pluralize }}</li>
  11. <li>{% set sp = user.special_privileges() | length %}
  12. {{- sp }} privilège{{sp|pluralize}} spéci{{sp|pluralize("al","aux")}}</li>
  13. </ul>
  14. <form action="{{ url_for('adm_delete_account', user_id=user.id) }}" method=post>
  15. {{ del_form.hidden_tag() }}
  16. <div>
  17. {{ del_form.delete.label }}
  18. {{ del_form.delete(checked=False) }}
  19. <div style="font-size: 80%; color: gray">{{ del_form.delete.description }}</div>
  20. {% for error in del_form.delete.errors %}
  21. <span class=msgerror>{{ error }}</span>
  22. {% endfor %}
  23. </div>
  24. <div>{{ del_form.submit(class_="bg-red") }}</div>
  25. </form>
  26. </section>
  27. {% endblock %}