{% extends "controlpanel/base.html" %} {% load lucide ui %} {% block panel_title %}Admins{% endblock panel_title %} {% block breadcrumb %} admins | {{ admins|length }} platform admin{{ admins|length|pluralize }} {% endblock breadcrumb %} {% block actions %} {% endblock actions %} {% block panel %} {% url 'controlpanel:admin_add' as admin_add_url %} {% include "controlpanel/_modal_form.html" with modal_id="admin_add_modal" title="Grant platform access" form=admin_form action_url=admin_add_url submit_label="Grant access" submit_icon="user-plus" blurb="Platform admins can manage every club. They must set up two-factor authentication before they can sign in." %}
Platform admins
{% for admin in admins %} {% empty %} {% endfor %}
User Staff Superuser Last login
{{ admin.email }}
{% if admin.pk == user.pk %} {% lucide "badge-check" size=10 %} That's you {% endif %}
{% csrf_token %}
{% csrf_token %}
{{ admin.last_login|date:"j M Y"|default:"Never" }}
No platform admins.
{% comment %} Dialogs live outside the table: may only contain elements. {% endcomment %} {% for admin in admins %} {% url 'controlpanel:admin_revoke' admin.pk as admin_revoke_url %} {% include "controlpanel/_confirm_modal.html" with modal_id=admin.pk|dom_id:"admin_revoke_modal" title="Revoke platform access" body="Revoke platform access for "|add:admin.email|add:"? They will no longer be able to reach the control panel." action_url=admin_revoke_url submit_label="Revoke" submit_icon="user-minus" %} {% endfor %}
{% endblock panel %}