{% extends 'events/registration/emails/base_registration_details.html' %} {% block subject_name %}{% endblock %} {% block subject_message -%} {% trans title=event.title %}Registration for {{ title }}{% endtrans %} {%- endblock %} {% block registration_header -%} {% set event = registration.registration_form.event %}

{% trans name=registration.full_name %}Dear {{ name }},{% endtrans %}

{% block registration_header_text %} {% trans title=event.title, strong=''|safe, endstrong=''|safe, at_time=render_registration_info() -%} Thank you! Your registration for the event {{ strong }}{{ title }}{{ endstrong }} {{ at_time }} has been received. {%- endtrans %} {{ render_text_pending() }} {{ render_text_unpaid() }} {% endblock %}

{% if registration.state.name == 'pending' %} {{ registration.registration_form.message_pending | markdown }} {% elif registration.state.name == 'unpaid' %} {{ registration.registration_form.message_unpaid | markdown }} {% elif registration.state.name == 'complete' %} {{ registration.registration_form.message_complete | markdown }} {% endif %} {%- endblock %} {% block registration_footer %}

{% trans %}To manage your registration follow this link:{% endtrans %} {% trans %}Manage my registration{% endtrans %}

{% endblock %} {% macro render_registration_info() %} {% if event.start_dt_local.date() == event.end_dt_local.date() %} ({{ event.start_dt|format_datetime(timezone=event.tzinfo, locale='en_GB') }} - {{ event.end_dt|format_time(timezone=event.tzinfo, locale='en_GB') }}) {% else %} ({{ event.start_dt|format_datetime(timezone=event.tzinfo, locale='en_GB') }} - {{ event.end_dt|format_datetime(timezone=event.tzinfo, locale='en_GB') }}) {% endif %} {% endmacro %} {% macro render_rejection_reason() %} {% if registration.state.name == 'rejected' and registration.rejection_reason %}
{% trans %}Rejection reason:{% endtrans %} {{ registration.rejection_reason }}
{% endif %} {% endmacro %} {% macro render_text_pending() %} {% if registration.state.name == 'pending' %} {% trans -%}Please note that this event requires manual approval.{%- endtrans %} {% trans -%}You will be notified when the registration process is complete.{%- endtrans %} {% endif %} {% endmacro %} {% macro render_text_unpaid() %} {% if registration.state.name == 'unpaid' %} {% trans link=''|format(registration.display_regform_url)|safe, endlink=''|safe -%} Please proceed to the checkout {{ link }}here{{ endlink }} in order to complete it. {%- endtrans %} {% endif %} {% endmacro %}