2020-12-04 12:28:24 +01:00
<!-- Titre -->
{% if json %}
2023-02-01 11:30:28 +01:00
< h2 class = "cell--title" > {{ json.title|default:"" }} {{ json.first_name }} {{ json.last_name|upper }}< / h2 >
2020-12-04 12:28:24 +01:00
{% 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" >
2022-01-21 08:52:06 +01:00
< 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 >
2020-12-04 12:28:24 +01:00
{% 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 %}
2022-01-21 08:52:06 +01:00
{% 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 >
2020-12-04 12:28:24 +01:00
< / 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 %}
2022-09-29 12:12:11 +02:00
2020-12-04 12:28:24 +01:00
< 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 >
2022-09-29 12:12:11 +02:00
2020-12-04 12:28:24 +01:00
< p > <!-- Adresse -->
< table class = "main" >
2021-10-21 11:00:52 +02:00
< 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 > {% 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 >
2020-12-04 12:28:24 +01:00
{% 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 >
2022-09-29 12:12:11 +02:00
2020-12-04 12:28:24 +01:00
< 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 %}
2021-10-21 10:58:24 +02:00
{% 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 %}
2020-12-04 12:28:24 +01:00
< / table >
< / p >
2022-09-29 12:12:11 +02:00
2020-12-04 12:28:24 +01:00
{% endif %}
< / td >
<!-- Colonne de droite - la fiche -->
< td style = "vertical-align: top; padding: 1em;" >
{% if fiche %}
2022-09-29 12:12:11 +02:00
2020-12-04 12:28:24 +01:00
< 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 >
2022-09-29 12:12:11 +02:00
2020-12-04 12:28:24 +01:00
< 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 >
2022-09-29 12:12:11 +02:00
2020-12-04 12:28:24 +01:00
< 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 >
2022-09-29 12:12:11 +02:00
2020-12-04 12:28:24 +01:00
< 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 >
2022-01-21 08:52:06 +01:00
{% if conjoint %}
2020-12-04 12:28:24 +01:00
< 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 >
2022-01-21 08:52:06 +01:00
{% endif %}
2020-12-04 12:28:24 +01:00
< / table >
< / p >
2022-09-29 12:12:11 +02:00
2020-12-04 12:28:24 +01:00
< 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 >
2022-09-29 12:12:11 +02:00
2020-12-04 12:28:24 +01:00
{% endif %}
< / td >
< / tr >
< / table >
<!-- Fin Gestion du profil -->