{% load i18n leprikon_tags %}

{% blocktrans with activity_type=object.activity.activity_type.name_akuzativ %}Registration for {{ activity_type }}{% endblocktrans %}

{% blocktrans with school_year=object.activity.school_year %}in school year {{ school_year }}{% endblocktrans %}

{% if object.activity_variant.name and object.activity_variant.name != object.activity.name %} {% endif %} {% if object.activity.event.start_date %} {% elif object.orderableregistration %} {% else %} {% if object.activity.course.all_times %} {% endif %} {% endif %}
{% blocktrans with activity_type=object.activity.activity_type.name_genitiv %}Name of {{ activity_type }}{% endblocktrans %} {{ object.activity.name }}
{% trans 'Variant' %} {{ object.activity_variant.name }}
{% trans 'Price' %} {{ object.price_text }}
{% trans 'Event date' %} {{ object.activity.event.event_date }}
{% trans 'Event date' %} {{ object.orderableregistration.calendar_event }}
{% trans 'Periods' %} {% for registration_period in object.courseregistration.all_registration_periods %}{{ registration_period }}{% if not forloop.last %}
{% endif %}{% endfor %}
{% trans 'Times' %} {{ object.activity.course.get_times_list }}
{% trans 'Registration number (variable symbol)' %} {{ object.variable_symbol }}
{% for p in object.all_participants %}

{% trans 'Participant' %}

{% if p.birth_num %} {% else %} {% endif %} {% if p.phone %} {% endif %} {% if p.email %} {% endif %} {% if p.age_group.require_school %} {% endif %} {% for qa in p.get_questions_and_answers %} {% endfor %}
{% trans 'Full name' %} {{ p.full_name }}
{% trans 'Age group' %} {{ p.age_group }}
{% trans 'Birth number' %} {{ p.birth_num }}
{% trans 'Birth date' %} {{ p.birth_date }}
{% trans 'Address' %} {{ p.address }}
{% trans 'Citizenship' %} {{ p.citizenship }}
{% trans 'Phone' %} {{ p.phone }}
{% trans 'E-mail' %} {{ p.email }}
{% trans 'School' %} {{ p.school_name }}
{% trans 'Class' %} {{ p.school_class }}
{{ qa.question }} {{ qa.answer }}
{% trans 'Health' %}
{% for line in p.health|lines %}

{{ line }}

{% empty %}

{% endfor %}
{% if p.parents %}

{% trans 'Parents' %}

{% endif %} {% for parent in p.parents %}
{% trans 'Full name' %} {{ parent.full_name }}
{% trans 'Address' %} {{ parent.address }}
{% trans 'Contact' %} {{ parent.contact }}
{% endfor %}
{% endfor %} {% if object.activity.registration_type_groups %}

{% trans 'Group' %}

{% if object.group.target_group.require_school %} {% endif %} {% if object.group.phone %} {% endif %} {% if object.group.email %} {% endif %} {% for qa in object.group.get_questions_and_answers %} {% endfor %}
{% trans 'Target group' %} {{ object.group.target_group }}
{% trans 'School' %} {{ object.group.school_name }}
{% trans 'Class' %} {{ object.group.school_class }}
{% trans 'Group name' %} {{ object.group.name }}
{% trans 'Contact person' %} {{ object.group.full_name }}
{% trans 'Address' %} {{ object.group.address }}
{% trans 'Phone' %} {{ object.group.phone }}
{% trans 'E-mail' %} {{ object.group.email }}
{{ qa.question }} {{ qa.answer }}

{% trans 'Group members' %}

{% if object.activity_variant.require_group_members_list %} {% for gm in object.all_group_members %} {% endfor %}
{% trans 'First name' %} {% trans 'Last name' %} {% trans 'Note' %}
{{ gm.first_name }} {{ gm.last_name }} {{ gm.note }}
{% else %}
{% trans 'Participants count' %} {{ object.participants_count }}
{% endif %}
{% endif %} {% for agreement in object.all_agreements %} {% if agreement.heading %}

{{ agreement.heading }}

{% endif %} {{ agreement.agreement|safe }} {% for option in agreement.all_options %} {% endfor %}
{% if option.required or option in object.all_agreement_options %}☑{% else %}☐{% endif %} {{ option.option|safe }}
{% endfor %}
{% trans 'In' %} {% trans 'date' %} {% if object.parents %}{% trans "Parent's signature" %}{% else %}{% trans 'Signature' %}{% endif %}