{% extends 'events/management/full_width_base.html' %} {% from 'events/registration/management/_reglist.html' import render_registration_list %} {% from 'message_box.html' import message_box %} {% block back_button_url -%} {{ url_for('.manage_regform', regform) }} {%- endblock %} {% block title %} {%- trans %}Registration{% endtrans -%} {% endblock %} {% block subtitle %} {% trans title=regform.title %}List of registrations for "{{ title }}"{% endtrans %} {% endblock %} {% block content %} {% if regform.is_purged %} {% call message_box('error', fixed_width=true, large_icon=true) %}
{% trans %}Registration is disabled due to an expired retention period{% endtrans %}
{% endcall %} {% else %} {{ render_registrations() }} {% endif %} {% endblock %} {% macro render_registrations() -%}
{% set pending_registrations = registrations | selectattr('state.name', 'equalto', 'pending') | list %} {% if (regform.moderation_enabled or pending_registrations) and not event.is_locked %} {% endif %} {% if not event.is_locked %} {% endif %} {{ template_hook('registration-status-action-button', regform=regform) }}
{{ regform.active_registration_count }} {%- if regform.registration_limit %} / {{ regform.registration_limit }} {%- endif -%}
{{ render_registration_list(regform, registrations, dynamic_columns, static_columns, total_registrations) }}
{%- endmacro %}