publik-base-theme/templates/variants/alpes-maritimes-2018/combo/json/seniors-page-senior-contenu...

165 lines
12 KiB
HTML

<!-- Titre -->
{% if json %}
<h2 class="cell--title">{{ json.title|default:"" }} {{ json.first_name }} {{ json.last_name|upper }}</h2>
{% endif %}
<!-- Fin Titre -->
<!-- Avertissements -->
{% if not json and not fiche %}
<div class="warningnotice"><p>Ce senior n'existe pas.</p></div>
{% endif %}
{% if not json and fiche %}
<div class="warningnotice"><p>Le compte en ligne de ce senior a été supprimé. Il n'est plus possible de modifier sa fiche ni de faire de nouvelle inscription.</p></div>
{% endif %}
{% if fiche.fields.archive %}
<div class="warningnotice"><p>Le senior est archivé.</p></div>
{% endif %}
{% if json and json.birthdate and json.birthdate|age_in_years|decimal < 55 %}
<div class="warningnotice"><p>Le senior a moins de 55 ans ({{ json.birthdate|date:"d/m/Y" }} soit {{ json.birthdate|age_in_years }} ans).</p></div>
{% endif %}
{% if fiche.fields.adresse_erreur %}
<div class="warningnotice"><p>L'adresse est en erreur.</p></div>
{% endif %}
<!-- Fin Avertissements -->
<!-- User sans fiche, à créer -->
{% if json and not fiche %}
<div class="infonotice">
<p>Le senior dispose d'un compte. Il est désormais nécessaire de créer sa fiche pour l'inscrire à des activités :
<a href="{{ eservices_url }}backoffice/data/senior/add/?NameID={{ json.uuid }}&ReturnURL={{ portal_agent_url }}espace-seniors/page-senior/{{ json.uuid }}/">créer la fiche du senior</a></p>
</div>
{% endif %}
<!-- Fin User sans fiche, à créer -->
<!-- Infos lieu d'inscription -->
{% if fiche %}
<div class="infonotice">
<table style="width:100%;">
<tr>
<!-- Colonne de gauche - Lieu d'inscription -->
<td style="width:50%; vertical-align: top; padding: 1em;">
<p><strong>Lieu d'inscription</strong></p>
<p>Le senior est inscrit à <strong>{{ fiche.fields.lieu_inscription }}</strong>. {% if not fiche.fields.archive %}<a href="{{ eservices_url }}backoffice/submission/seniors-mise-a-jour-du-lieu-d-inscription/?NameID={{ json.uuid }}&ReturnURL={{ portal_agent_url }}espace-seniors/page-senior/{{ json.uuid }}/">Modifier</a>{% endif %}</p>
</td>
<!-- Colonne de droite - La fiche à imprimer -->
<td style="width:50%; vertical-align: top; padding: 1em;">
<p><strong>Fiche d'inscription</strong></p>
<p>
{% if not fiche.fields.archive %}<a href="{{ eservices_url }}backoffice/submission/seniors-generer-la-fiche-a-imprimer/?NameID={{ json.uuid }}&ReturnURL={{ portal_agent_url }}espace-seniors/page-senior/{{ json.uuid }}/" target="_blank">Fiche à imprimer</a>{% endif %}
{% if fiche.fields.fiche_senior_signee %}{% if not fiche.fields.archive %}- {% endif %}<a href="{{ eservices_url }}backoffice/data/senior/{{ fiche.id }}/download?f={{ fiche.fields.fiche_senior_signee.field_id }}" target="_blank">Fiche signée</a>{% endif %}
{% if not fiche.fields.archive %}- <a href="{{ eservices_url }}backoffice/submission/seniors-mise-a-jour-de-la-fiche-a-imprimer-signee/?NameID={{ json.uuid }}&ReturnURL={{ portal_agent_url }}espace-seniors/page-senior/{{ json.uuid }}/">{% if fiche.fields.fiche_senior_signee %}Modifier{% else %}Déposer la fiche signée{% endif %}</a>{% if fiche.fields.fiche_senior_signee %} / <a href="{{ eservices_url }}backoffice/submission/seniors-suppression-de-la-fiche-a-imprimer-signee/?NameID={{ json.uuid }}&ReturnURL={{ portal_agent_url }}espace-seniors/page-senior/{{ json.uuid }}/">Supprimer<a/>{% endif %}{% endif %}</p>
</td>
</tr>
</table>
</div>
{% endif %}
<!-- Fin Infos lieu d'inscription -->
<!-- Gestion du profil -->
<table style="width:100%;">
<tr>
<!-- Colonne de gauche - le user -->
<td style="width:50%; vertical-align: top; padding: 1em;">
{% if json %}
<p><!-- État-civil -->
<table class="main">
<tr><th style="width:30%;">État-civil</th><th>{% if not fiche.fields.archive %}<a href="{{eservices_url}}backoffice/submission/seniors-mise-a-jour-de-l-etat-civil/?ReturnURL={{ portal_agent_url }}espace-seniors/page-senior/{{ json.uuid }}/&NameID={{ json.uuid }}" class="pk-button">Modifier</a>{% endif %}</th></tr>
{% if json.title %}<tr><td>Civilité</td><td><strong>{{ json.title }}</strong></td></tr>{% endif %}
<tr><td>Prénom</td><td><strong>{{ json.first_name }}</strong></td></tr>
<tr><td>Nom</td><td><strong>{{ json.last_name|upper }}</strong></td></tr>
{% if json.nom_de_naissance %}<tr><td>Nom de naissance</td><td><strong>{{ json.nom_de_naissance }}</strong></td></tr>{% endif %}
{% if json.birthdate %}<tr><td>Date de naissance</td><td><strong>{{ json.birthdate|date:"d/m/Y" }} ({{ json.birthdate|age_in_years }} ans)</strong></td></tr>{% endif %}
{% if json.lieu_de_naissance %}<tr><td>Lieu de naissance</td><td><strong>{{ json.lieu_de_naissance }}</strong></td></tr>{% endif %}
</table>
</p>
<p><!-- Adresse -->
<table class="main">
<tr><th style="width:30%;">Adresse{% if fiche.fields.adresse_erreur %} (En erreur){% endif%}</th><th>{% if not fiche.fields.archive %}<a href="{{eservices_url}}backoffice/submission/seniors-mise-a-jour-de-l-adresse/?ReturnURL={{ portal_agent_url }}espace-seniors/page-senior/{{ json.uuid }}/&NameID={{ json.uuid }}" class="pk-button">Modifier</a>&nbsp;{% if fiche %}<a href="{{ eservices_url }}backoffice/submission/seniors-mise-a-jour-de-l-adresse-en-erreur/?NameID={{ json.uuid }}&ReturnURL={{ portal_agent_url }}espace-seniors/page-senior/{{ json.uuid }}/" class="pk-button">{% if fiche.fields.adresse_erreur %}Marquer l'adresse correcte{% else %}Marquer l'adresse en erreur{% endif %}</a>{% endif %}{% endif %}</th></tr>
{% if json.address %}<tr><td>Adresse</td><td><strong>{% if json.numero_sur_la_voie %}{{ json.numero_sur_la_voie|upper }} {% endif %}{{ json.address|upper }}</strong></td></tr>{% endif %}
{% if json.complement_d_adresse %}<tr><td>Complément d'adresse</td><td><strong>{{ json.complement_d_adresse|upper }}</strong></td></tr>{% endif %}
{% if json.zipcode %}<tr><td>Code postal</td><td><strong>{{ json.zipcode }}</strong></td></tr>{% endif %}
{% if json.city %}<tr><td>Ville</td><td><strong>{{ json.city|upper }}</strong></td></tr>{% endif %}
</table>
</p>
<p><!-- Téléphones et courriel -->
<table class="main">
<tr><th style="width:30%;">Téléphones / Email</th><th>{% if not fiche.fields.archive %}<a href="{{eservices_url}}backoffice/submission/seniors-mise-a-jour-des-autres-coordonnees/?ReturnURL={{ portal_agent_url }}espace-seniors/page-senior/{{ json.uuid }}/&NameID={{ json.uuid }}" class="pk-button">Modifier</a>{% endif %}</th></tr>
{% if json.phone %}<tr><td>Téléphone fixe</td><td><strong>{{ json.phone|phonenumber_fr }}</strong></td></tr>{% endif %}
{% if json.mobile %}<tr><td>Téléphone mobile</td><td><strong>{{ json.mobile|phonenumber_fr }}</strong></td></tr>{% endif %}
{% if json.email %}<tr><td>Adresse email</td><td><strong><a href="mailto:{{ json.email }}?subject=[Seniors en action]">{{ json.email }}</a></strong></td></tr>{% endif %}
</table>
</p>
{% endif %}
</td>
<!-- Colonne de droite - la fiche -->
<td style="vertical-align: top; padding: 1em;">
{% if fiche %}
<p><!-- Conjoint -->
<table class="main">
<tr><th style="width:30%;">Conjoint</th><th>{% if json %}{% if not fiche.fields.archive %}<a href="{{ eservices_url }}backoffice/submission/seniors-mise-a-jour-du-conjoint/?NameID={{ json.uuid }}&ReturnURL={{ portal_agent_url }}espace-seniors/page-senior/{{ json.uuid }}/" class="pk-button">Modifier</a>{% endif %}{% endif %}</th></tr>
{% if conjoint %}
<tr><td>Senior</td><td><strong><a href="{{ conjoint.workflow.fields.url_fiche }}">{{ conjoint.text }}</a></strong></td></tr>
{% endif %}
</table>
</p>
<p><!-- Personne à contacter -->
<table class="main">
<tr><th style="width:30%;">Personne à contacter</th><th>{% if json %}{% if not fiche.fields.archive %}<a href="{{ eservices_url }}backoffice/submission/seniors-mise-a-jour-de-la-personne-a-contacter/?NameID={{ json.uuid }}&ReturnURL={{ portal_agent_url }}espace-seniors/page-senior/{{ json.uuid }}/" class="pk-button">Modifier</a>{% endif %}{% endif %}</th></tr>
{% if fiche.fields.pc_nom_prenom or fiche.fields.pc_telephone or fiche.fields.pc_lien %}
<tr><td>Nom et prénom</td><td><strong>{{fiche.fields.pc_nom_prenom|default:""}}</strong></td></tr>
<tr><td>Lien</td><td><strong>{{fiche.fields.pc_lien|default:""}}</strong></td></tr>
<tr><td>Téléphone</td><td><strong>{{fiche.fields.pc_telephone|phonenumber_fr|default:""}}</strong></td></tr>
{% endif %}
</table>
</p>
<p><!-- Documents -->
<table class="main">
<tr><th style="width:30%;">Documents</th><th>{% if json %}{% if not fiche.fields.archive %}<a href="{{ eservices_url }}backoffice/submission/seniors-mise-a-jour-des-documents/?NameID={{ json.uuid }}&ReturnURL={{ portal_agent_url }}espace-seniors/page-senior/{{ json.uuid }}/" class="pk-button">Modifier</a>{% endif %}{% endif %}</th></tr>
<tr><td>RIB</td><td><strong>{% if fiche.fields.rib %}<a href="{{ fiche.fields.rib.url }}" target="_blank">RIB du senior</a>{% else %}Pas de RIB{% endif %}</strong></td></tr>
<tr><td>Certificat médical</td><td><strong>{% if fiche.fields.cm %}<a href="{{ fiche.fields.cm.url }}" target="_blank">Certificat</a> - {{ fiche.fields.annee_cm }}{% else %}Pas de certificat{% endif %}</strong></td></tr>
</table>
</p>
<p><!-- Divers -->
<table class="main">
<tr><th style="width:30%;">Autres renseignements</th><th>{% if json %}{% if not fiche.fields.archive %}<a href="{{ eservices_url }}backoffice/submission/seniors-mise-a-jour-des-preferences/?NameID={{ json.uuid }}&ReturnURL={{ portal_agent_url }}espace-seniors/page-senior/{{ json.uuid }}/" class="pk-button">Modifier</a>{% endif %}{% endif %}</th></tr>
<tr><td>PMR / Personne à Mobilité Réduite</td><td><strong>{% if fiche.fields.pmr %}Oui {% if fiche.fields.accompagnant %}avec{% else %}sans{% endif %} accompagnant{% else %}Non{% endif %}</strong></td></tr>
<tr><td>Centres d'intérêt</td><td><strong>{{fiche.fields.ci|default:"Aucun centre d'intérêt"}}</strong></td></tr>
<tr><td>Accepte d'être photographié pendant les activités ?</td><td><strong>{{ fiche.fields.okphoto }}</strong></td></tr>
<tr><td>Canaux de contact</td><td><strong>{{ fiche.fields.canaux_contact|default:"Aucun" }}</strong></td></tr>
{% if conjoint %}
<tr><td>Envoyer les courriers (dont brochure) ?</td><td><strong>{% if fiche.fields.non_envoi_brochure %}Non, car envoi au conjoint.{% else %}Oui{% endif %}</strong></td></tr>
{% endif %}
</table>
</p>
<p><!-- Mémo -->
<table class="main">
<tr><th style="width:30%;">Mémo</th><th>{% if json %}{% if not fiche.fields.archive %}<a href="{{ eservices_url }}backoffice/submission/seniors-mise-a-jour-du-memo/?NameID={{ json.uuid }}&ReturnURL={{ portal_agent_url }}espace-seniors/page-senior/{{ json.uuid }}/" class="pk-button">Modifier</a>{% endif %}{% endif %}</th></tr>
<tr><td>Mémo</td><td><strong>{% if fiche.fields.memo %}{{fiche.fields.memo|linebreaks}}{% else %}Pas de mémo.{% endif %}</strong></td></tr>
</table>
</p>
{% endif %}
</td>
</tr>
</table>
<!-- Fin Gestion du profil -->