Projet

Général

Profil

Development #49120 » seniors-page-senior-contenu.html

Mikaël Ates (de retour le 29 avril), 04 décembre 2020 10:17

 
1
{% load combo %}
2

    
3
<!-- Titre -->
4
{% if json %}
5
<h2>{{ json.title|default:"" }} {{ json.first_name }} {{ json.last_name|upper }}</h2>
6
{% endif %}
7
<!-- Fin Titre -->
8

    
9
<!-- Avertissements -->
10
{% if not json and not fiche %}
11
<div class="warningnotice"><p>Ce senior n'existe pas.</p></div>
12
{% endif %}
13

    
14
{% if not json and fiche %}
15
<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>
16
{% endif %}
17

    
18
{% if fiche.fields.archive %}
19
<div class="warningnotice"><p>Le senior est archivé.</p></div>
20
{% endif %}
21

    
22
{% if json and json.birthdate and json.birthdate|age_in_years|decimal < 55 %}
23
<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>
24
{% endif %}
25

    
26
{% if fiche.fields.adresse_erreur %}
27
<div class="warningnotice"><p>L'adresse est en erreur.</p></div>
28
{% endif %}
29
<!-- Fin Avertissements -->
30

    
31

    
32
<!-- User sans fiche, à créer -->
33
{% if json and not fiche %}
34
<div class="infonotice">
35
  <p>Le senior dispose d'un compte. Il est désormais nécessaire de créer sa fiche pour l'inscrire à des activités :
36
  <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>
37
</div>
38
{% endif %}
39
<!-- Fin User sans fiche, à créer -->
40

    
41

    
42
<!-- Infos lieu d'inscription -->
43
{% if fiche %}
44
<div class="infonotice">
45
  <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>
46
  <p>
47
  {% 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 %}
48
  {% if fiche.fields.fiche_senior_signee %}- <a href="{{fiche.fields.fiche_senior_signee.url}}" target="_blank">Fiche signée</a>{% endif  %}
49
  {% 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 la fiche signée{% else %}Déposer la fiche signée{% endif %}</a>{% endif %}</p>
50
</div>
51
{% endif %}
52
<!-- Fin Infos lieu d'inscription -->
53

    
54

    
55
<!-- Gestion du profil -->
56
<table style="width:100%;">
57
  <tr>
58

    
59
    <!-- Colonne de gauche - le user -->
60
    <td style="width:50%; vertical-align: top; padding: 1em;">
61
    {% if json %}
62

    
63
    <p><!-- État-civil -->
64
    <table class="main">
65
    <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>
66
    {% if json.title %}<tr><td>Civilité</td><td><strong>{{ json.title }}</strong></td></tr>{% endif %}
67
    <tr><td>Prénom</td><td><strong>{{ json.first_name }}</strong></td></tr>
68
    <tr><td>Nom</td><td><strong>{{ json.last_name|upper }}</strong></td></tr>
69
    {% if json.nom_de_naissance %}<tr><td>Nom de naissance</td><td><strong>{{ json.nom_de_naissance }}</strong></td></tr>{% endif %}
70
    {% 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 %}
71
    {% if json.lieu_de_naissance %}<tr><td>Lieu de naissance</td><td><strong>{{ json.lieu_de_naissance }}</strong></td></tr>{% endif %}
72
    </table>
73
    </p>
74

    
75
    <p><!-- Adresse -->
76
    <table class="main">
77
    <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;<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 %}</th></tr>
78
    {% 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 %}
79
    {% if json.complement_d_adresse %}<tr><td>Complément d'adresse</td><td><strong>{{ json.complement_d_adresse|upper }}</strong></td></tr>{% endif %}
80
    {% if json.zipcode %}<tr><td>Code postal</td><td><strong>{{ json.zipcode }}</strong></td></tr>{% endif %}
81
    {% if json.city %}<tr><td>Ville</td><td><strong>{{ json.city|upper }}</strong></td></tr>{% endif %}
82
    </table>
83
    </p>
84

    
85
    <p><!-- Téléphones et courriel -->
86
    <table class="main">
87
    <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>
88
    {% if json.phone %}<tr><td>Téléphone fixe</td><td><strong>{{ json.phone|phonenumber_fr }}</strong></td></tr>{% endif %}
89
    {% if json.mobile %}<tr><td>Téléphone mobile</td><td><strong>{{ json.mobile|phonenumber_fr }}</strong></td></tr>{% endif %}
90
    {% if json.email %}<tr><td>Adresse email</td><td><strong>{{ json.email }}</strong></td></tr>{% endif %}
91
    </table>
92
    </p>
93

    
94
    {% endif %}
95
    </td>
96

    
97
    <!-- Colonne de droite - la fiche -->
98
    <td style="vertical-align: top; padding: 1em;">
99
    {% if fiche %}
100

    
101
    <p><!-- Conjoint -->
102
    <table class="main">
103
    <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>
104
    {% if conjoint %}
105
    <tr><td>Senior</td><td><strong><a href="{{ conjoint.workflow.fields.url_fiche }}">{{ conjoint.text }}</a></strong></td></tr>
106
    {% endif %}
107
    </table>
108
    </p>
109

    
110
    <p><!-- Personne à contacter -->
111
    <table class="main">
112
    <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>
113
    {% if fiche.fields.pc_nom_prenom or fiche.fields.pc_telephone or fiche.fields.pc_lien %}
114
    <tr><td>Nom et prénom</td><td><strong>{{fiche.fields.pc_nom_prenom|default:""}}</strong></td></tr>
115
    <tr><td>Lien</td><td><strong>{{fiche.fields.pc_lien|default:""}}</strong></td></tr>
116
    <tr><td>Téléphone</td><td><strong>{{fiche.fields.pc_telephone|phonenumber_fr|default:""}}</strong></td></tr>
117
    {% endif %}
118
    </table>
119
    </p>
120

    
121
    <p><!-- Documents -->
122
    <table class="main">
123
    <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>
124
    <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>
125
    <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>
126
    </table>
127
    </p>
128

    
129
    <p><!-- Divers -->
130
    <table class="main">
131
    <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>
132
    <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>
133
    <tr><td>Centres d'intérêt</td><td><strong>{{fiche.fields.ci|default:"Aucun centre d'intérêt"}}</strong></td></tr>
134
    <tr><td>Accepte d'être photographié pendant les activités ?</td><td><strong>{{ fiche.fields.okphoto }}</strong></td></tr>
135
    <tr><td>Canaux de contact</td><td><strong>{{ fiche.fields.canaux_contact|default:"Aucun" }}</strong></td></tr>
136
    <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>
137
    </table>
138
    </p>
139

    
140
    <p><!-- Mémo -->
141
    <table class="main">
142
    <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>
143
    <tr><td>Mémo</td><td><strong>{% if fiche.fields.memo  %}{{fiche.fields.memo|linebreaks}}{% else %}Pas de mémo.{% endif %}</strong></td></tr>
144
    </table>
145
    </p>
146

    
147
    {% endif %}
148
    </td>
149

    
150
  </tr>
151
</table>
152
<!-- Fin Gestion du profil -->