{% extends 'base.html' %} {% block header %} {% block title %}

Admin Übersicht

{% endblock %} {% endblock %} {% block content %} {% for data in admin_data %} {% if data['active'] %} {% else %} {% endif %} {% for field in ['username', 'email', 'active', 'admin', 'super_admin'] %} {% endfor %} {% endfor %}
Benutzer E-Mail Aktiv Admin Super-Admin Aktionen
{{ data[field] if data[field] }} {% if not data['super_admin'] %} Toggle active Delete {% endif %} {% if data['admin'] %} {% if not data['super_admin'] %} Demote {% endif %} {% else %} Promote {% endif %}

Neuen Benutzer erstellen:

{{ form.csrf_token }}
{{ form.name.label }} {{ form.name(size=20) }}
{{ form.email.label }} {{ form.email(size=20) }}
{% endblock %}