{# vim: set et ts=8 sts=2 sw=2 ai: #} {% extends "admin.html" %} {% block content %}

{% if user.id %} Edit User {% else %} Add User {% endif %}

Flags and Permissions

{% for label, name, value, note, new_row in [ ( "eMail confirmed","email_confirmed", user.email_confirmed, "If not set, users have to confirm their email address to login." if config.EMAIL_NEEDS_CONFIRMATION else "User don't need to confirm their eMail address.", False ), ( "Approved","is_approved",user.is_approved, "Auto approval is enabled." if config.AUTO_APPROVAL else "This flag has to be set by an admin.", True ), ("Read","allow_read",user.allow_read,"", False), ("Write","allow_write",user.allow_write,"", False), ("Upload","allow_upload",user.allow_upload,"", True), ("Admin","is_admin",user.is_admin,"Users flagged as admins always have all the permissions.", False), ] %}
{% if note %}
{{ note|safe }}
{% endif %}
{%if new_row %}
{% endif %} {% endfor %}
{# row #}
{# container-fluid #} {# #} Cancel
{# card #}
{# w-600 container #} {% if user.id %}

Delete User

{# class="w-400 mw-full" #}
{# card #}
{# w-600 container #} {% endif %} {% endblock %}