publik-base-theme/templates/combo/json/apa-user-info.html

65 lines
2.5 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{% load combo %}
<h2>Le bénéficiaire</h2>
<div class="apa-user-info">
{% with individu=json.data.individu %}
<p class="date-situation"><em>Situation à la date du {% now "j F Y" %}</em></p>
<div class="individu">
<h3>{% include "combo/json/apa-user-label.html" with individu=individu %}</h3>
<p class="birthdate">
<span class="label">Date de naissance :</span> {{ individu.dateNaissance|parse_date|date:"j F Y" }}
</p>
<p class="address">
<span class="label">Adresse :</span>
{% with adresse=individu.adresse %}
{{ adresse.numeroLieu }} {{ adresse.natureLieu|default:"" }}
{{ adresse.nomLieu }} {{ adresse.finLieu|default:"" }}<br />
{% if adresse.complementLieu %}{{ adresse.complementLieu }}<br />{% endif %}
{% if adresse.cedex %}Cedex {{ adresse.cedex }}<br />{% endif %}
{{ adresse.codePostal }} {{ adresse.commune }}
{% endwith %}
</p>
<p class="contact-info">
<span class="label email">Adresse électronique :</span> {{ individu.contact.mail|default:"non renseignée" }}<br />
<span class="label phone">Téléphone :</span> {{ individu.contact.telephone|default:"non renseigné" }}
</p>
</div>
{% if individu.tutelles.tutelle %}
<div class="tutelles">
<h3>Tutelles</h3>
{% for tutelle in individu.tutelles.tutelle %}
<p>
{% if tutelle.mesure %}<em>{{ tutelle.mesure }}</em><br />{% endif %}
{{ tutelle.type }} : {{ tutelle.identite }}
{% if tutelle.natureAccord %}({{ tutelle.natureAccord }}){% endif %}
<br />
{% with adresse=tutelle.adresse %}
{{ adresse.numeroLieu }} {{ adresse.natureLieu|default:"" }}
{{ adresse.nomLieu }} {{ adresse.finLieu|default:"" }}<br />
{% if adresse.complementLieu %}{{ adresse.complementLieu }}<br />{% endif %}
{% if adresse.cedex %}Cedex {{ adresse.cedex }}<br />{% endif %}
{{ adresse.codePostal }} {{ adresse.commune }}
{% endwith %}
<br />
{% if tutelle.dateEffet %}
<strong>Date deffet</strong> :
{{ tutelle.dateEffet|parse_date|date:"j F Y" }}<br />
{% endif %}
{% if tutelle.dateFin %}
<strong>Date de fin</strong> :
{{ tutelle.dateFin|parse_date|date:"j F Y" }}<br />
{% endif %}
{% endfor %}
</div>
{% endif %}
{% endwith %}
</div>