1
|
<!-- Titre -->
|
2
|
{% if json %}
|
3
|
<h2>{{ json.title|default:"" }} {{ json.first_name }} {{ json.last_name|upper }}</h2>
|
4
|
{% endif %}
|
5
|
<!-- Fin Titre -->
|
6
|
|
7
|
<!-- Avertissements -->
|
8
|
{% if not json and not fiche %}
|
9
|
<div class="warningnotice"><p>Ce senior n'existe pas.</p></div>
|
10
|
{% endif %}
|
11
|
|
12
|
{% if not json and fiche %}
|
13
|
<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>
|
14
|
{% endif %}
|
15
|
|
16
|
{% if fiche.fields.archive %}
|
17
|
<div class="warningnotice"><p>Le senior est archivé.</p></div>
|
18
|
{% endif %}
|
19
|
|
20
|
{% if json and json.birthdate and json.birthdate|age_in_years|decimal < 55 %}
|
21
|
<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>
|
22
|
{% endif %}
|
23
|
|
24
|
{% if fiche.fields.adresse_erreur %}
|
25
|
<div class="warningnotice"><p>L'adresse est en erreur.</p></div>
|
26
|
{% endif %}
|
27
|
<!-- Fin Avertissements -->
|
28
|
|
29
|
|
30
|
<!-- User sans fiche, à créer -->
|
31
|
{% if json and not fiche %}
|
32
|
<div class="infonotice">
|
33
|
<p>Le senior dispose d'un compte. Il est désormais nécessaire de créer sa fiche pour l'inscrire à des activités :
|
34
|
<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>
|
35
|
</div>
|
36
|
{% endif %}
|
37
|
<!-- Fin User sans fiche, à créer -->
|
38
|
|
39
|
|
40
|
<!-- Infos lieu d'inscription -->
|
41
|
{% if fiche %}
|
42
|
<div class="infonotice">
|
43
|
<table style="width:100%;">
|
44
|
<tr>
|
45
|
<!-- Colonne de gauche - Lieu d'inscription -->
|
46
|
<td style="width:50%; vertical-align: top; padding: 1em;">
|
47
|
<p><strong>Lieu d'inscription</strong></p>
|
48
|
<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>
|
49
|
</td>
|
50
|
<!-- Colonne de droite - La fiche à imprimer -->
|
51
|
<td style="width:50%; vertical-align: top; padding: 1em;">
|
52
|
<p><strong>Fiche d'inscription</strong></p>
|
53
|
<p>
|
54
|
{% 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 %}
|
55
|
{% 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 %}
|
56
|
{% 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>
|
57
|
</td>
|
58
|
</tr>
|
59
|
</table>
|
60
|
</div>
|
61
|
{% endif %}
|
62
|
<!-- Fin Infos lieu d'inscription -->
|
63
|
|
64
|
|
65
|
<!-- Gestion du profil -->
|
66
|
<table style="width:100%;">
|
67
|
<tr>
|
68
|
|
69
|
<!-- Colonne de gauche - le user -->
|
70
|
<td style="width:50%; vertical-align: top; padding: 1em;">
|
71
|
{% if json %}
|
72
|
|
73
|
<p><!-- État-civil -->
|
74
|
<table class="main">
|
75
|
<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>
|
76
|
{% if json.title %}<tr><td>Civilité</td><td><strong>{{ json.title }}</strong></td></tr>{% endif %}
|
77
|
<tr><td>Prénom</td><td><strong>{{ json.first_name }}</strong></td></tr>
|
78
|
<tr><td>Nom</td><td><strong>{{ json.last_name|upper }}</strong></td></tr>
|
79
|
{% if json.nom_de_naissance %}<tr><td>Nom de naissance</td><td><strong>{{ json.nom_de_naissance }}</strong></td></tr>{% endif %}
|
80
|
{% 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 %}
|
81
|
{% if json.lieu_de_naissance %}<tr><td>Lieu de naissance</td><td><strong>{{ json.lieu_de_naissance }}</strong></td></tr>{% endif %}
|
82
|
</table>
|
83
|
</p>
|
84
|
|
85
|
<p><!-- Adresse -->
|
86
|
<table class="main">
|
87
|
<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>
|
88
|
{% 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 %}
|
89
|
{% if json.complement_d_adresse %}<tr><td>Complément d'adresse</td><td><strong>{{ json.complement_d_adresse|upper }}</strong></td></tr>{% endif %}
|
90
|
{% if json.zipcode %}<tr><td>Code postal</td><td><strong>{{ json.zipcode }}</strong></td></tr>{% endif %}
|
91
|
{% if json.city %}<tr><td>Ville</td><td><strong>{{ json.city|upper }}</strong></td></tr>{% endif %}
|
92
|
</table>
|
93
|
</p>
|
94
|
|
95
|
<p><!-- Téléphones et courriel -->
|
96
|
<table class="main">
|
97
|
<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>
|
98
|
{% if json.phone %}<tr><td>Téléphone fixe</td><td><strong>{{ json.phone|phonenumber_fr }}</strong></td></tr>{% endif %}
|
99
|
{% if json.mobile %}<tr><td>Téléphone mobile</td><td><strong>{{ json.mobile|phonenumber_fr }}</strong></td></tr>{% endif %}
|
100
|
{% 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 %}
|
101
|
</table>
|
102
|
</p>
|
103
|
|
104
|
{% endif %}
|
105
|
</td>
|
106
|
|
107
|
<!-- Colonne de droite - la fiche -->
|
108
|
<td style="vertical-align: top; padding: 1em;">
|
109
|
{% if fiche %}
|
110
|
|
111
|
<p><!-- Conjoint -->
|
112
|
<table class="main">
|
113
|
<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>
|
114
|
{% if conjoint %}
|
115
|
<tr><td>Senior</td><td><strong><a href="{{ conjoint.workflow.fields.url_fiche }}">{{ conjoint.text }}</a></strong></td></tr>
|
116
|
{% endif %}
|
117
|
</table>
|
118
|
</p>
|
119
|
|
120
|
<p><!-- Personne à contacter -->
|
121
|
<table class="main">
|
122
|
<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>
|
123
|
{% if fiche.fields.pc_nom_prenom or fiche.fields.pc_telephone or fiche.fields.pc_lien %}
|
124
|
<tr><td>Nom et prénom</td><td><strong>{{fiche.fields.pc_nom_prenom|default:""}}</strong></td></tr>
|
125
|
<tr><td>Lien</td><td><strong>{{fiche.fields.pc_lien|default:""}}</strong></td></tr>
|
126
|
<tr><td>Téléphone</td><td><strong>{{fiche.fields.pc_telephone|phonenumber_fr|default:""}}</strong></td></tr>
|
127
|
{% endif %}
|
128
|
</table>
|
129
|
</p>
|
130
|
|
131
|
<p><!-- Documents -->
|
132
|
<table class="main">
|
133
|
<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>
|
134
|
<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>
|
135
|
<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>
|
136
|
</table>
|
137
|
</p>
|
138
|
|
139
|
<p><!-- Divers -->
|
140
|
<table class="main">
|
141
|
<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>
|
142
|
<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>
|
143
|
<tr><td>Centres d'intérêt</td><td><strong>{{fiche.fields.ci|default:"Aucun centre d'intérêt"}}</strong></td></tr>
|
144
|
<tr><td>Accepte d'être photographié pendant les activités ?</td><td><strong>{{ fiche.fields.okphoto }}</strong></td></tr>
|
145
|
<tr><td>Canaux de contact</td><td><strong>{{ fiche.fields.canaux_contact|default:"Aucun" }}</strong></td></tr>
|
146
|
{% if conjoint %}
|
147
|
<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>
|
148
|
{% endif %}
|
149
|
</table>
|
150
|
</p>
|
151
|
|
152
|
<p><!-- Mémo -->
|
153
|
<table class="main">
|
154
|
<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>
|
155
|
<tr><td>Mémo</td><td><strong>{% if fiche.fields.memo %}{{fiche.fields.memo|linebreaks}}{% else %}Pas de mémo.{% endif %}</strong></td></tr>
|
156
|
</table>
|
157
|
</p>
|
158
|
|
159
|
{% endif %}
|
160
|
</td>
|
161
|
|
162
|
</tr>
|
163
|
</table>
|
164
|
<!-- Fin Gestion du profil -->
|