alpes-maritimes-2018: add seniors cells (#49120)
This commit is contained in:
parent
84ea41dcc0
commit
0d0ad6c916
|
@ -219,6 +219,85 @@
|
|||
}
|
||||
],
|
||||
"url": "{{ passerelle_url }}astregs/{{ slug }}/links?NameID={{ user_nameid }}"
|
||||
},
|
||||
"seniors-page-senior-contenu": {
|
||||
"name": "Seniors - Page du senior - Contenu",
|
||||
"url": "{{ idp_url }}api/users/{{ name_id }}",
|
||||
"varnames": [],
|
||||
"log_errors": false,
|
||||
"cache_duration": 0,
|
||||
"force_async": true,
|
||||
"additional-data": [
|
||||
{
|
||||
"key": "liste_fiches",
|
||||
"url": "{{ eservices_url }}api/cards/senior/list?NameID={{ user_nameid }}&filter-user-uuid={{ name_id }}",
|
||||
"cache_duration": 0,
|
||||
"log_errors": false,
|
||||
"timeout": 5
|
||||
},
|
||||
{
|
||||
"key": "fiche",
|
||||
"url": "{{ eservices_url }}api/cards/senior/{{ liste_fiches.data.0.id }}/?NameID={{ user_nameid }}",
|
||||
"cache_duration": 0,
|
||||
"log_errors": false,
|
||||
"timeout": 5
|
||||
},
|
||||
{
|
||||
"key": "conjoint",
|
||||
"url": "{{ eservices_url }}api/cards/senior/{{ fiche.fields.conjoint_senior_raw }}/?NameID={{ user_nameid }}",
|
||||
"cache_duration": 0,
|
||||
"log_errors": false,
|
||||
"timeout": 5
|
||||
}
|
||||
]
|
||||
},
|
||||
"seniors-page-senior-sidebar": {
|
||||
"name": "Seniors - Page du senior - Barre latérale",
|
||||
"url": "{{ idp_url }}api/users/{{ name_id }}",
|
||||
"varnames": [],
|
||||
"log_errors": false,
|
||||
"cache_duration": 0,
|
||||
"force_async": true,
|
||||
"additional-data": [
|
||||
{
|
||||
"key": "liste_fiches",
|
||||
"url": "{{ eservices_url }}api/cards/senior/list?NameID={{ user_nameid }}&filter-user-uuid={{ name_id }}",
|
||||
"cache_duration": 0,
|
||||
"log_errors": false,
|
||||
"timeout": 5
|
||||
},
|
||||
{
|
||||
"key": "fiche",
|
||||
"url": "{{ eservices_url }}api/cards/senior/{{ liste_fiches.data.0.id }}/?NameID={{ user_nameid }}",
|
||||
"cache_duration": 0,
|
||||
"log_errors": false,
|
||||
"timeout": 5
|
||||
}
|
||||
]
|
||||
},
|
||||
"seniors-affectation-agent": {
|
||||
"name": "Seniors - Affectation de l'agent",
|
||||
"url": "{{ idp_url }}api/users/{{ user_nameid }}",
|
||||
"varnames": [],
|
||||
"log_errors": false,
|
||||
"cache_duration": 0,
|
||||
"force_async": true,
|
||||
"additional-data": [
|
||||
{
|
||||
"key": "liste_fiches",
|
||||
"url": "{{ eservices_url }}api/cards/seniors-fiche-agent/list?NameID={{ user_nameid }}&filter-user-uuid={{ user_nameid }}",
|
||||
"cache_duration": 0,
|
||||
"log_errors": false,
|
||||
"timeout": 5
|
||||
},
|
||||
{
|
||||
"key": "fiche",
|
||||
"url": "{{ eservices_url }}api/cards/seniors-fiche-agent/{{ liste_fiches.data.0.id }}/?NameID={{ user_nameid }}",
|
||||
"cache_duration": 0,
|
||||
"log_errors": false,
|
||||
"timeout": 5
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
{% if not json %}
|
||||
<div class="errornotice"><p>Erreur de configuration du portail. Cette page ne devrait pas être visible par un utilisateur non connecté.</p></div>
|
||||
{% elif not user|has_role:"Gestionnaire des seniors" %}
|
||||
<div class="errornotice"><p>Erreur de configuration du portail. Cette page ne devrait pas être visible par un agent qui n'est pas gestionnaire des seniors.</p></div>
|
||||
{% else %}
|
||||
<p>Bonjour {{ json.first_name }}.</p>
|
||||
{% if not fiche %}
|
||||
<div class="warningnotice">
|
||||
<p>Votre affectation n'est pas encore définie. Il vous faut la définir : <strong><a href="{{ eservices_url }}backoffice/data/seniors-fiche-agent/add/?NameID={{ json.uuid }}&ReturnURL={{ portal_agent_url }}espace-seniors/">définir votre affectation</a></strong>.</p>
|
||||
</div>
|
||||
{% else %}
|
||||
<p>Votre affectation est <strong>{{ fiche.fields.lieu_inscription }}</strong> (<a href="{{ eservices_url }}backoffice/submission/seniors-mise-a-jour-du-lieu-d-affectation/?ReturnURL={{ portal_agent_url }}espace-seniors/">Modifier</a>).</p>
|
||||
{% endif %}
|
||||
{% endif %}
|
|
@ -0,0 +1,150 @@
|
|||
<!-- Titre -->
|
||||
{% if json %}
|
||||
<h2>{{ 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">
|
||||
<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>
|
||||
<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 %}- <a href="{{fiche.fields.fiche_senior_signee.url}}" 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 la fiche signée{% else %}Déposer la fiche signée{% endif %}</a>{% endif %}</p>
|
||||
</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> <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>
|
||||
{% 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>{{ json.email }}</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>
|
||||
<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>
|
||||
</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 -->
|
|
@ -0,0 +1,42 @@
|
|||
{% if json and fiche %}
|
||||
|
||||
<div>
|
||||
<!-- Infos sur la création -->
|
||||
<h3>Informations générales</h3>
|
||||
<p>Date de création : <strong>{{ fiche.receipt_time|date }}</strong><br/>
|
||||
Par : <strong>{{ fiche.evolution.0.who.name }}</strong></p>
|
||||
{% if fiche.fields.url_historique %}
|
||||
<p><a href="{{ fiche.fields.url_historique }}" target="_blank">Historique EUDONET</a></p>
|
||||
{% endif %}
|
||||
<!-- Fin Infos sur la création -->
|
||||
|
||||
<!-- Gestion de l'archivage et de la suppression -->
|
||||
<p>{% if not fiche.fields.archive %}<a href="{{ eservices_url }}backoffice/submission/seniors-mise-a-jour-de-l-archivage/?NameID={{ json.uuid }}&ReturnURL={{ portal_agent_url }}espace-seniors/page-senior/{{ json.uuid }}/">Archiver le senior</a>{% else %}<strong>Senior archivé</strong> (<a href="{{ eservices_url }}backoffice/submission/seniors-mise-a-jour-de-l-archivage/?NameID={{ json.uuid }}&ReturnURL={{ portal_agent_url }}espace-seniors/page-senior/{{ json.uuid }}/">Réactiver le senior</a>){% endif %}</p>
|
||||
{% if fiche.fields.archive and user|has_role:"Administrateur des seniors" %}
|
||||
<p><strong>Suppression :</strong>
|
||||
<ul>
|
||||
<li>1 - <a href="{{ eservices_url }}backoffice/management/inscription-aux-activites/toutes/?filter-user-uuid={{ name_id }}&keep-view-filters=on" target="_blank">Anonymiser les inscriptions</a></li>
|
||||
<li>2 - <a href="{{ eservices_url }}backoffice/submission/seniors-supprimer-un-senior/?NameID={{ json.uuid }}&ReturnURL={{ portal_agent_url }}espace-seniors/page-senior/{{ json.uuid }}/">Supprimer le senior</a></li>
|
||||
</ul>
|
||||
</p>
|
||||
{% endif %}
|
||||
<p> </p>
|
||||
<!-- Fin Gestion de l'archivage et de la suppression -->
|
||||
</div>
|
||||
|
||||
<!-- Gestion des inscriptions -->
|
||||
<div class="links-list">
|
||||
<h3>Inscriptions</h3>
|
||||
<p>
|
||||
<ul>
|
||||
{% if not fiche.fields.archive %}
|
||||
<li style="text-align: center;"><a href="{{ eservices_url }}backoffice/submission/inscription-aux-activites/?NameID={{ json.uuid }}&ReturnURL={{ portal_agent_url }}espace-seniors/page-senior/{{ json.uuid }}/"><strong>> Nouvelle inscription <</strong></a></li>
|
||||
{% endif %}
|
||||
<li style="text-align: center;"><a href="{{ eservices_url }}backoffice/management/inscription-aux-activites/?filter-user-uuid={{ name_id }}&keep-view-filters=on" target="_blank">Les inscriptions du senior</a></li>
|
||||
<li style="text-align: center;"><a href="{{ eservices_url }}backoffice/data/senior/{{ fiche.id }}/">Quotas</a></li>
|
||||
</ul>
|
||||
</p>
|
||||
</div>
|
||||
<!-- Fin Gestion des inscriptions -->
|
||||
|
||||
{% endif %}
|
Loading…
Reference in New Issue