{% from 'events/registration/display/_registration_summary_blocks.html' import render_registration_summary, render_invoice %} {% macro render_registration_details(registration, payment_enabled) %}
{% if registration.state.name == 'pending' %} {{ _render_pending_actions(registration) }} {% elif registration.state.name == 'unpaid' %} {{ _render_unpaid_actions(registration) }} {% elif registration.state.name == 'complete' %} {{ _render_complete_actions(registration) }} {% elif registration.state.name in ('rejected', 'withdrawn') %} {{ _render_cancalled_actions(registration) }} {% endif %}
{% if registration.state.name in ('unpaid', 'complete') %} {{ _render_check_in(registration) }} {% endif %}
{{ render_registration_summary(registration, from_management=True) }} {% call render_invoice(registration, payment_enabled) %} {% endcall %} {% if registration.transaction %}
{% trans %}Payment transaction{% endtrans %}
{{ registration.transaction.render_details()|safe }}
{% endif %}
{% endmacro %} {% macro _render_pending_actions(registration) %}
{% trans %}Registration awaiting manager approval{% endtrans %}
{% trans -%} You can validate or reject this registration and the user will receive a notification. {%- endtrans %}
{%- trans %}Approve{% endtrans -%}
{%- trans %}Reject{% endtrans -%}
{% endmacro %} {% macro _render_unpaid_actions(registration) %}
{% trans %}Registration not paid yet{% endtrans %}
{% trans -%} You can mark the registration as paid manually. {%- endtrans %}
{{ registration.render_price() }}
{% trans %}Mark as paid{% endtrans %}
{% endmacro %} {% macro _render_complete_actions(registration) %}
{% trans %}This registration is complete{% endtrans %}
{% trans submitted=registration.submitted_dt|format_date(timezone=registration.event_new.tzinfo) -%} Submitted: {{ submitted }} {%- endtrans %}
{% if registration.registration_form.tickets_enabled %}
{% trans %}Get ticket{% endtrans %}
{% endif %} {% endmacro %} {% macro _render_cancalled_actions(registration) %}
{% trans state=registration.state.title|lower -%} This registration is {{ state }} {%- endtrans %}
{% endmacro %} {% macro _render_check_in(registration) %}
{% if registration.checked_in %}
{% trans %}Checked in{% endtrans %}
{% trans checked_in_dt=registration.checked_in_dt|format_date(timezone=registration.event_new.tzinfo) -%} Checked in: {{ checked_in_dt }} {%- endtrans %} ( {%- trans %}reset{% endtrans -%} )
{% else %}
{% trans %}Not checked in{% endtrans %}
{% if registration.registration_form.tickets_enabled %} {% trans -%} You can mark the registration as checked in manually here or with the Indico Check in app. {%- endtrans %} {% else %} {% trans -%} You can mark the registration as checked in manually. {%- endtrans %} {% endif %}
{% trans %}Check-in{% endtrans %}
{% endif %}
{% endmacro %}