publik-base-theme/templates/variants/toodego/combo/json/caluire-enfant.html

33 lines
1.3 KiB
HTML

{% with child=json %}
<h2>{{ child.data.text }}</h2>
<div>
<div class="grid-1-2">
<p><b>Informations sur votre enfant</b></p>
Date de naissance : {{ child.data.NAISSANCE|date }}<br/>
Genre : {% if child.data.SEXE == 'F' %}Féminin{% else %}Masculin{% endif %}<br/>
{% if schooling.data.SCOLAIRE %}
Ecole : {{ schooling.data.SCOLAIRE.LIBELLEECOLE }} <br/>
Classe : {{ schooling.data.SCOLAIRE.IDENTNIVEAU }}<br/>
<p><a href="{{ eservices_url }}famille/modifier-mon-dossier-unique-sante-de-mon-enfant/">Modifier une donnée de santé</a></p>
{% endif %}
</div><div class="grid-1-2">
<p><b> Les inscriptions en cours</b></p>
{% for activity in activities.data.ACTIVITE %}
<p>
{{ activity.LIBELLEACTIVITE }}<br />
{% if activity.ENTREE and activity.SORTIE%}
Du {{ activity.ENTREE|date:"d/m/Y" }} au {{ activity.SORTIE|date:"d/m/Y" }}
{% elif activity.ENTREE %}
A partir du {{ activity.ENTREE|date:"d/m/Y" }}
{% elif activity.SORTIE %}
Jusqu'au {{ activity.SORTIE|date:"d/m/Y" }}
{% endif %}
</p>
{% endfor %}
<p>
{% now "n" as current_month %}
{% if current_month in "678" %}<a class="pk-button" href="/espace-famille/child/{{ child.data.id }}">Inscriptions de l'an prochain</a>{% endif %}
<a class="pk-button" href="/espace-famille/child/{{ child.data.id }}">Voir l'agenda</a></p>
</div>
{% endwith %}