{# -*- engine:django -*- #} {% extends "core/base.html" %} {% load i18n static rules material_form %} {% load render_table from django_tables2 %} {% block browser_title %}Event registration {{ registration }}{% endblock %} {% block content %}

{{ registration }}

{% has_perm 'paweljong.manage_registration' user registration as can_manage_registration %} {% has_perm 'paweljong.delete_registration' user registration as can_delete_registration %} {% has_perm 'paweljong.send_notification_mail' user registration as can_send_notification %} {% has_perm 'paweljong.can_retract_registration_rule' user registration as can_retract_registration %} {% has_perm 'tezor.view_invoice_rule' user registration as can_view_invoice %} {% has_perm 'core.edit_person_rule' user person as can_change_person %} {% if can_manage_registration or can_manage_registration_preferences or can_delete_registration or can_send_notification or can_retract_registration %}

{% if can_manage_registration %} {% trans "Edit" %} {% trans "Check in" %} {% endif %} {% if can_retract_registration %} {% trans "Retract" %} {% endif %} {% if can_delete_registration %} {% trans "Delete" %} {% endif %} {% if can_send_notification %} {% trans "Notification" %} {% endif %} {% if can_view_invoice %} {% trans "Invoice" %} {% endif %} {% if can_change_person %} {% trans "Edit person" %} {% endif %}

{% endif %}
{% blocktrans %}Contact details{% endblocktrans %}
{% if registration.person.photo %} {{ registration.person.first_name }} {{ registration.person.last_name }} {% else %} {{ registration.person.first_name }} {{ registration.person.last_name }} {% endif %}
{% has_perm 'core.view_address' user registration.person as can_view_address %} {% if can_view_address %} {% endif %}
person {{ registration.person.first_name }} {{ registration.person.additional_name }} {{ registration.person.last_name }}
face {{ registration.person.get_sex_display }}
home {{ registration.person.street }} {{ registration.person.housenumber }} {{ registration.person.postal_code }} {{ registration.person.place }}
phone {{ registration.person.phone_number }} {{ registration.person.mobile_number }}
email {{ registration.person.email }}
cake {{ registration.person.date_of_birth|date }}
school {{ registration.school_class }} {{ registration.school }} {{ registration.school_place }}
{% if registration.retracted %}
{% trans "Retraction information" %}
{% trans "True" %}
{{ registration.retracted_date }}
{% endif %}
{% trans "Registration information" %}
{% if registration.extended_data %} {% for field, value in registration.extended_data.items %} {% endfor %} {% endif %} {% if registration.accepted_terms %} {% for term in registration.accepted_terms.all %} {% endfor %} {% endif %}
local_activity {{ registration.event }}
redeem {{ registration.donation }}€
{{ field }} {{ value }}
{{ term }} {% trans "Accepted" %}
medical_services {{ registration.medical_information }}
question_answer {{ registration.comment }}
{% if registration.checked_in %} {{ registration.checked_in_date }} {% else %} {% trans "No checked in yet." %} {% endif %}
{% trans "Invoice details" %}
{% trans "Billing information" %}
{{ invoice.billing_first_name }} {{invoice.billing_last_name }}
{{ invoice.billing_address_1 }} {{ invoice.billing_address_2 }}
{{ invoice.billing_postcode }} {{ invoice.billing_city}}
{{ invoice.billing_email }}
{% trans "Payment" %}
{{ invoice.get_status_display }}
{{ invoice.due_date }}
{% if registration.person.guardians.all %}
{% trans "Guardians / Parents "%}
{% for person in registration.person.guardians.all %}
{% has_perm 'core.view_address' user person as can_view_address %} {% if can_view_address %} {% endif %} {% has_perm 'core.view_personal_details' user person as can_view_personal_details %} {% if can_view_personal_details %} {% endif %}
person {{ person.first_name }} {{ person.additional_name }} {{ person.last_name }}
face {{ person.get_sex_display }}
home {{ person.street }} {{ person.housenumber }} {{ person.postal_code }} {{ person.place }}
phone {{ person.phone_number }} {{ person.mobile_number }}
email {{ person.email }}
cake {{ person.date_of_birth|date }}
{% endfor %} {% endif %} {% endblock %}