{% extends 'events/registration/emails/base_registration_details.html' %} {% block subject_message -%} New {%- if registration.state.name == 'pending' %} pending{% endif %} registration {%- endblock %} {% block registration_header -%}

Dear organizer,

{% block registration_header_text %} There is a new registration {{ render_registration_info() }}. {{ render_text_pending() }} {{ render_text_manage() }} {% endblock %}

{%- endblock %} {% block registration_footer %}

To manage this registration form follow this link: Manage registration form

{% endblock %} {% macro render_registration_info() -%} for the event {{ event.title }} under {{ registration.full_name }} {%- endmacro %} {% macro render_text_pending() %} {% if registration.state.name == 'pending' %} Please note that it's waiting for manual approval by a manager. {% endif %} {% endmacro %} {% macro render_text_manage() %} You can manage this registration here. {% endmacro %}