{% if management %} {% extends 'events/registration/management/_regform_base.html' %} {% elif event.type == 'conference' %} {% extends 'events/registration/display/_event_regform_base.html' %} {% else %} {% extends 'events/registration/display/_meeting_registration_base.html' %} {% endif %} {% from 'events/registration/_template_hooks.html' import regform_attrs_template_hook %} {% from 'events/registration/display/_regform_invitation_info.html' import render_invitation_info %} {% from 'events/registration/display/_regform_info.html' import render_regform_info %} {% from 'message_box.html' import message_box %} {% set moderated = (regform.moderation_enabled and not management and (not invitation or not invitation.skip_moderation)) %} {% block subtitle %} {% if management %} {% trans title=regform.title %}Add registration to "{{ title }}"{% endtrans %} {% else %} {{ regform.title }} {% endif %} {% 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_regform() }} {% endif %} {% endblock %} {% macro render_regform() %} {% if is_restricted_access %} {% call message_box('warning') %} {% trans -%} Access to the rest of this event is restricted to registered participants. {%- endtrans %} {% endcall %} {% endif %} {{ render_regform_info(regform) }} {% if invitation %} {{ render_invitation_info(invitation) }} {% endif %} {% if registration %} {% include 'events/registration/display/registration_summary.html' %} {% elif not management and not regform.is_active and not invitation %} {% if regform.limit_reached %} {% call message_box('error', fixed_width=true, large_icon=true) %}
{% trans %}Registrations are complete{% endtrans %}
{% trans %}There are no more places available.{% endtrans %} {% endcall %} {% elif not regform.is_open %} {% if not regform.has_started %} {% call message_box('warning', fixed_width=true, large_icon=true) %}
{% trans %}Registration not open{% endtrans %}
{% trans %}The registration period has not started yet.{% endtrans %} {% endcall %} {% elif regform.has_ended %} {% call message_box('error', fixed_width=true, large_icon=true) %}
{% trans %}Registration is closed{% endtrans %}
{% trans %}The registration period has passed.{% endtrans %} {% endcall %} {% endif %} {% endif %} {% elif login_required %}
{% block login_required_warning %}
{%- if moderated %} {%- trans %}Account required to apply{% endtrans %} {%- else %} {%- trans %}Account required to register{% endtrans %} {%- endif -%}
{%- if moderated %} {%- trans %}In order to apply for this event you have to be logged in.{% endtrans %} {%- else %} {%- trans %}In order to register for this event you have to be logged in.{% endtrans %} {%- endif -%}
{% endblock %}
{% else %} {% if moderated %} {% call message_box('warning', fixed_width=true, large_icon=true) %}
{% trans %}Participation in this event is moderated{% endtrans %}
{% block moderated_warning_explanation %} {% trans -%} The organizers will have to approve your application. {%- endtrans %} {% endblock %} {% endcall %} {% endif %}
{% endif %} {% endmacro %}