{% load i18n leprikon_tags %}

{% blocktrans with reference_number=object.variable_symbol %}Reference number: {{ reference_number }}{% endblocktrans %}

{% for p in object.all_participants %} {% if p.birth_num %} {% else %} {% endif %} {% endfor %} {% if object.activity.registration_type_groups %} {% endif %}
{% trans "School year" %} {{ object.activity.school_year }}
{% blocktrans with activity_type=object.activity.activity_type.name_genitiv %}Name of {{ activity_type }}{% endblocktrans %} {{ object.activity.name }}
{% trans 'Participant' %} {{ p.full_name }}
{% trans 'Birth number' %} {{ p.birth_num }}
{% trans 'Birth date' %} {{ p.birth_date }}
{% trans 'Group name' %} {{ object.group.name }}
{% trans 'Contact person' %} {{ object.group.full_name }}

{% trans "Decision" %}

{% if object.approved %} {{ object.text_registration_approved|safe }} {% else %} {{ object.text_registration_refused|safe }} {% endif %}

{% if object.approved %} {% if object.approved_by %} {% blocktrans with user=object.approved_by.get_full_name|default:object.approved_by.username %}Decision issued by: {{ user }}{% endblocktrans %}
{% endif %} {% blocktrans with date=object.approved|date %}Date: {{ date }}{% endblocktrans %}
{% else %} {% if object.canceled_by %} {% blocktrans with user=object.canceled_by.get_full_name|default:object.canceled_by.username %}Decision issued by: {{ user }}{% endblocktrans %}
{% endif %} {% blocktrans with date=object.canceled|date %}Date: {{ date }}{% endblocktrans %}
{% endif %}

{% trans 'Received personally on' %} {% trans 'Signature' %}