{% extends "eventum_admin.html" %} {% import "eventum_macros.html" as macros %} {% block js %} {{ super() }} {% endblock %} {% block title %}Manage your Whitelist{% endblock %} {% block pagetitle %}Users{% endblock %} {% set active_page='Users' %} {% block barright %} {% if current_user.can('admin') %} {% endif %} {% endblock %} {% block main %} {% call macros.modal(modal="new-user") %}

Choose Your User Type:

{{ whitelist_form.csrf_token }}
{% for subfield in whitelist_form.user_type %} {% endfor %} {% set features = [ ('Author blog posts', [True, True, True, True]), ('Create and edit blog posts', [False, True, True, True]), ('Create and edit events', [False, True, True, True]), ('Publish blog posts and events', [False, False, True, True]), ('View and manage users', [False, False, False, True]), ('Add users to the whitelist', [False, False, False, True]), ] %} {% for description, bools in features %} {% for bool in bools %} {% endfor %} {% endfor %}
 {{subfield.label}} {{ subfield }}
{{description}} {% if bool %} {% else %} {% endif %}
{% endcall %} {% call macros.modal(modal="image") %}

Add an Image

{{ macros.upload_form(upload_form, uploaded_from=url_for('posts.new')) }} {% endcall %} {{ super() }} {% endblock %} {% block content %} {% if current_user.can("admin") %}

Whitelist

Only emails on this whitelist can be used to make an account. {% if whitelist %} {% for user in whitelist %} {% if not user.redeemed %} {% endif %} {% endfor%}
User Type

{{ user.user_type }}

{{ macros.confirm("Revoke", url_for('whitelist.delete', email=user.email)) }}
{% else %}

Click the plus button to add a user to the whitelist!

{% endif %}

Users

Currently registered users {% endif %} {% for user in users %} {% endfor %}
Name Email User Type

{{user.name}}

{{user.user_type}}
{% endblock %}