{% import "includes/macros" as macros %} {% extends "base" %} {% block content %}

Mitgliederverwaltung

{% if allowed_to_edit %}

Neues Mitglied hinzufügen

{% endif %}
{% for user in users %}
{{ user.name }} {% if not user.last_access and "admin" in loggedin_user.roles and user.mail %}
Willkommensmail verschicken
{% endif %} {% if user.last_access %}• Zuletzt eingeloggt:  {{ user.last_access | date() }}{% endif %}
{% for role in user.roles -%} {{ macros::fancy_role_name(name=role) }} {%- if not loop.last %}, {% endif -%} {% endfor %}
{% if user.pw %} Passwort zurücksetzen {% endif %}
{% for role in roles %} {% if not role.cluster %} {{ macros::checkbox(label=role.name, name="roles[" ~ role.id ~ "]", id=loop.index , checked=role.name in user.roles, disabled=allowed_to_edit == false) }} {% endif %} {% endfor %}
{{ macros::input(label='Name', name='name', id=loop.index, type="text", value=user.name) }} {{ macros::input(label='Mail', name='mail', id=loop.index, type="text", value="Demo Version: Mails deaktiviert", readonly=true) }}
{% if allowed_to_edit %} {% endif %}
{% endfor %}
{% endblock content %}