{% extends '_nav.html' %} {% block content %}
{% include '_nav_top.html' %} {% if Family['divorced'] %}

Ouders zijn gescheiden

{% endif %}

{{ Family['parent1']['firstname'] }}
{{ Family['parent1']['lastname'] }}

{{ Family['parent1']['address']}}
{{ Family['parent1']['postal'] }} {{ Family['parent1']['city'] }}

{{ Family['parent1']['phone'] }}
{{ Family['parent1']['email'] }}

{% if Family['parent2'] %}
{{ Family['parent2']['firstname'] }}
{{ Family['parent2']['lastname'] }}

{{ Family['parent2']['address']}}
{{ Family['parent2']['postal'] }} {{ Family['parent2']['city'] }}

{{ Family['parent2']['phone'] }}
{{ Family['parent2']['email'] }}

{% endif %}
    {% if Children %}

    Kinderen

    {% for c in Children %} {% if c.classroom1.active is true %} {% elif c.classroom2.active is true %} {% elif c.classroom3.active is true %} {% else %} {% endif %} {% endfor %}
    Voornaam Leeftijd Klas
    {{ c.firstname }} {{ c.age }}{{ c.classroom1.name }} {{ c.classroom1.start_date[0:4] }} - {{ c.classroom1.teacher_firstname }} {{ c.classroom2.name }} {{ c.classroom2.start_date[0:4] }} - {{ c.classroom2.teacher_firstname }} {{ c.classroom3.name }} {{ c.classroom3.start_date[0:4] }} - {{ c.classroom3.teacher_firstname }}
    {% else %}

    Geen kinderen gekoppeld aan dit gezin.

    Voeg nu het eerste kind toe {% endif %}
    {% endblock %}