{% load static %}
Studienkontakt:
{% for contact_person in project.contactperson_set.all %}
{{ contact_person.user.get_full_name }}
{% if contact_person.email %}E-Mail: {{ contact_person.email }}
{% endif %}
{% if contact_person.phone %}Phone: {{ contact_person.phone }}
{% endif %}
{% endfor %}
{% if subject.contact.gender == 0 %} Sehr geehrte {{ subject.contact.display_name }}, {% elif subject.contact.gender == 1 %} Sehr geehrter {{ subject.contact.display_name }}, {% else %} Hallo {{ subject.contact.display_name }}, {% endif %}
{% for text_fragment in consent.text_fragments %} {% with template_name="consents/text_fragments/"|add:text_fragment.type|add:".html" %} {% include template_name with index=forloop.counter0 %} {% endwith %} {% endfor %}