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

{% block title %}Admin{% endblock %}

{% endblock %} {% block content %}
{% for registration_code in registration_codes %} {% endfor %}
Registration Code Creation Time Expiration Time Usages Max Usages Expire
{{ registration_code.code|tojson|safe }} {{ registration_code.creation_time|tojson|safe }} {{ registration_code.expiration_time|tojson|safe }} {{ registration_code.usages|tojson|safe }} {{ registration_code.max_usages|tojson|safe }}
{% if not registration_code.is_expired() %} {% else %} {% endif %}

{{ add_registration_code_form.csrf_token }} {{ add_registration_code_form.expiration_time.label }} {{ add_registration_code_form.expiration_time() }} {{ add_registration_code_form.max_usages.label }} {{ add_registration_code_form.max_usages(default="1", value="1") }}
{% endblock %}