bouches-du-rhones: add rsa13 json cells (#54251)

This commit is contained in:
Benjamin Dauvergne 2021-05-20 16:59:26 +02:00
parent 2cefd445c6
commit e7da84fbd6
26 changed files with 1631 additions and 52 deletions

View File

@ -135,3 +135,21 @@ div.cell.cd13_liste_des_dossiers {
padding-top: 0;
}
}
table.beneficiaires-rsa tr {
th {
font-size: 0.9em;
}
td {
font-size: 0.8em;
}
}
span.pastille-rouge {
border-radius: 0.7em;
padding: 0.2em 0.2em;
border: 1px solid red;
background-color: #fcc;
font-family: sans-serif;
color: #800;
}

View File

@ -1,55 +1,454 @@
{
"label": "Bouches-du-Rhône",
"variables": {
"include_top_links": false,
"theme_color": "#5b7197",
"pwa_display": "standalone"
},
"settings": {
"combo": {
"JSON_CELL_TYPES.update": {
"cd13_liste_des_dossiers": {
"cache_duration": 10,
"name": "Liste des dossiers",
"url": "{{ passerelle_url }}mdph13/mdph/dossiers?NameID={{user_nameid}}&email={{user_email}}&ip={{request.META.REMOTE_ADDR|default_if_none:\"\"}}"
},
"cd13_dossier_nom": {
"cache_duration": 3600,
"name": "Dossier - nom",
"varnames": ["dossier"],
"url": "{{ passerelle_url }}mdph13/mdph/dossiers?NameID={{user_nameid}}&email={{user_email}}&link_id={{dossier}}&ip={{request.META.REMOTE_ADDR|default_if_none:\"\"}}"
},
"cd13_dossier_coordonnees": {
"cache_duration": 3600,
"name": "Dossier - coordonnées",
"varnames": ["dossier"],
"url": "{{ passerelle_url }}mdph13/mdph/dossiers?NameID={{user_nameid}}&email={{user_email}}&link_id={{dossier}}&ip={{request.META.REMOTE_ADDR|default_if_none:\"\"}}"
},
"cd13_dossier_entete": {
"cache_duration": 3600,
"name": "Dossier - entête",
"varnames": ["dossier"],
"url": "{{ passerelle_url }}mdph13/mdph/dossiers?NameID={{user_nameid}}&email={{user_email}}&link_id={{dossier}}&ip={{request.META.REMOTE_ADDR|default_if_none:\"\"}}"
},
"cd13_dossier_demandes": {
"cache_duration": 3600,
"name": "Dossier - demandes",
"varnames": ["dossier"],
"url": "{{ passerelle_url }}mdph13/mdph/dossiers?NameID={{user_nameid}}&email={{user_email}}&link_id={{dossier}}&ip={{request.META.REMOTE_ADDR|default_if_none:\"\"}}"
},
"cd13_dossier_contacts": {
"cache_duration": 3600,
"name": "Dossier - contacts",
"varnames": ["dossier"],
"url": "{{ passerelle_url }}mdph13/mdph/dossiers?NameID={{user_nameid}}&email={{user_email}}&link_id={{dossier}}&ip={{request.META.REMOTE_ADDR|default_if_none:\"\"}}"
},
"cd13_dossier_formulaires": {
"cache_duration": 3600,
"name": "Dossier - formulaires",
"varnames": ["dossier"],
"url": "{{ passerelle_url }}mdph13/mdph/dossiers?NameID={{user_nameid}}&email={{user_email}}&link_id={{dossier}}&ip={{request.META.REMOTE_ADDR|default_if_none:\"\"}}"
}
}
"label" : "Bouches-du-Rhône",
"settings" : {
"combo" : {
"JSON_CELL_TYPES.update" : {
"cd13_dossier_contacts" : {
"cache_duration" : 3600,
"name" : "Dossier - contacts",
"url" : "{{ passerelle_url }}mdph13/mdph/dossiers?NameID={{user_nameid}}&email={{user_email}}&link_id={{dossier}}&ip={{request.META.REMOTE_ADDR|default_if_none:\"\"}}",
"varnames" : [
"dossier"
]
},
"cd13_dossier_coordonnees" : {
"cache_duration" : 3600,
"name" : "Dossier - coordonnées",
"url" : "{{ passerelle_url }}mdph13/mdph/dossiers?NameID={{user_nameid}}&email={{user_email}}&link_id={{dossier}}&ip={{request.META.REMOTE_ADDR|default_if_none:\"\"}}",
"varnames" : [
"dossier"
]
},
"cd13_dossier_demandes" : {
"cache_duration" : 3600,
"name" : "Dossier - demandes",
"url" : "{{ passerelle_url }}mdph13/mdph/dossiers?NameID={{user_nameid}}&email={{user_email}}&link_id={{dossier}}&ip={{request.META.REMOTE_ADDR|default_if_none:\"\"}}",
"varnames" : [
"dossier"
]
},
"cd13_dossier_entete" : {
"cache_duration" : 3600,
"name" : "Dossier - entête",
"url" : "{{ passerelle_url }}mdph13/mdph/dossiers?NameID={{user_nameid}}&email={{user_email}}&link_id={{dossier}}&ip={{request.META.REMOTE_ADDR|default_if_none:\"\"}}",
"varnames" : [
"dossier"
]
},
"cd13_dossier_formulaires" : {
"cache_duration" : 3600,
"name" : "Dossier - formulaires",
"url" : "{{ passerelle_url }}mdph13/mdph/dossiers?NameID={{user_nameid}}&email={{user_email}}&link_id={{dossier}}&ip={{request.META.REMOTE_ADDR|default_if_none:\"\"}}",
"varnames" : [
"dossier"
]
},
"cd13_dossier_nom" : {
"cache_duration" : 3600,
"name" : "Dossier - nom",
"url" : "{{ passerelle_url }}mdph13/mdph/dossiers?NameID={{user_nameid}}&email={{user_email}}&link_id={{dossier}}&ip={{request.META.REMOTE_ADDR|default_if_none:\"\"}}",
"varnames" : [
"dossier"
]
},
"cd13_liste_des_dossiers" : {
"cache_duration" : 10,
"name" : "Liste des dossiers",
"url" : "{{ passerelle_url }}mdph13/mdph/dossiers?NameID={{user_nameid}}&email={{user_email}}&ip={{request.META.REMOTE_ADDR|default_if_none:\"\"}}"
},
"rsa13-accompagnateurs" : {
"additional-data" : [
{
"cache_duration" : 0,
"key" : "plateforme",
"log_errors" : false,
"timeout" : 30,
"url" : "{{ passerelle_url }}rsa13/{% firstof slug rsa13_slug \"rsa\" %}/platform/{{ plateforme_id }}/?email={{ user_email }}&ip={{ request.META.REMOTE_ADDR }}"
}
],
"cache_duration" : 0,
"force_async" : true,
"form" : [
{
"label" : "Identifiant du connecteur",
"required" : false,
"varname" : "slug"
}
],
"log_errors" : false,
"name" : "RSA Extranet : accompagnateurs",
"url" : "{{ passerelle_url }}rsa13/{% firstof slug rsa13_slug \"rsa\" %}/platform/{{ plateforme_id }}/referent/?email={{ user_email }}&ip={{ request.META.REMOTE_ADDR }}",
"varnames" : []
},
"rsa13-beneficiaire" : {
"cache_duration" : 0,
"force_async" : true,
"form" : [
{
"label" : "Identifiant du connecteur",
"required" : false,
"varname" : "slug"
}
],
"log_errors" : false,
"name" : "RSA Extranet : bénéficiaire",
"url" : "{{ passerelle_url }}rsa13/{% firstof slug rsa13_slug \"rsa\" %}/platform/{{ plateforme_id }}/beneficiaire/{{ brsa_id }}/?email={{ user_email }}&ip={{ request.META.REMOTE_ADDR }}",
"varnames" : []
},
"rsa13-beneficiaire-action" : {
"cache_duration" : 0,
"force_async" : true,
"form" : [
{
"label" : "Identifiant du connecteur",
"required" : false,
"varname" : "slug"
}
],
"log_errors" : false,
"name" : "RSA Extranet : bénéficiaire - action",
"url" : "{{ passerelle_url }}rsa13/{% firstof slug rsa13_slug \"rsa\" %}/platform/{{ plateforme_id }}/beneficiaire/{{ brsa_id }}/action/{{ action_id }}/?email={{ user_email }}&ip={{ request.META.REMOTE_ADDR }}",
"varnames" : []
},
"rsa13-beneficiaire-actions" : {
"cache_duration" : 0,
"force_async" : true,
"form" : [
{
"label" : "Identifiant du connecteur",
"required" : false,
"varname" : "slug"
}
],
"log_errors" : false,
"name" : "RSA Extranet : bénéficiaire - actions",
"url" : "{{ passerelle_url }}rsa13/{% firstof slug rsa13_slug \"rsa\" %}/platform/{{ plateforme_id }}/beneficiaire/{{ brsa_id }}/action/?email={{ user_email }}&ip={{ request.META.REMOTE_ADDR }}",
"varnames" : []
},
"rsa13-beneficiaire-affectation" : {
"cache_duration" : 0,
"force_async" : true,
"form" : [
{
"label" : "Identifiant du connecteur",
"required" : false,
"varname" : "slug"
}
],
"log_errors" : false,
"name" : "RSA Extranet : bénéficiaire - affectation",
"url" : "{{ passerelle_url }}rsa13/{% firstof slug rsa13_slug \"rsa\" %}/platform/{{ plateforme_id }}/beneficiaire/{{ brsa_id }}/affectation/{{ affectation_id }}/?email={{ user_email }}&ip={{ request.META.REMOTE_ADDR }}",
"varnames" : []
},
"rsa13-beneficiaire-affectations" : {
"additional-data" : [
{
"cache_duration" : 0,
"key" : "premier",
"log_errors" : false,
"timeout" : 30,
"url" : "{{ passerelle_url }}rsa13/{% firstof slug rsa13_slug \"rsa\" %}/platform/{{ plateforme_id }}/beneficiaire/{{ brsa_id }}/affectation/{{ json.data.0.id }}/?email={{ user_email }}&ip={{ request.META.REMOTE_ADDR }}"
}
],
"cache_duration" : 0,
"force_async" : true,
"form" : [
{
"label" : "Identifiant du connecteur",
"required" : false,
"varname" : "slug"
}
],
"log_errors" : false,
"name" : "RSA Extranet : bénéficiaire - affectations",
"url" : "{{ passerelle_url }}rsa13/{% firstof slug rsa13_slug \"rsa\" %}/platform/{{ plateforme_id }}/beneficiaire/{{ brsa_id }}/affectation/?email={{ user_email }}&ip={{ request.META.REMOTE_ADDR }}",
"varnames" : []
},
"rsa13-beneficiaire-contrat" : {
"cache_duration" : 0,
"force_async" : true,
"form" : [
{
"label" : "Identifiant du connecteur",
"required" : false,
"varname" : "slug"
}
],
"log_errors" : false,
"name" : "RSA Extranet : bénéficiaire - contrat",
"url" : "{{ passerelle_url }}rsa13/{% firstof slug rsa13_slug \"rsa\" %}/platform/{{ plateforme_id }}/beneficiaire/{{ brsa_id }}/contrat/{{ contrat_id }}/?email={{ user_email }}&ip={{ request.META.REMOTE_ADDR }}",
"varnames" : []
},
"rsa13-beneficiaire-contrats" : {
"cache_duration" : 0,
"force_async" : true,
"form" : [
{
"label" : "Identifiant du connecteur",
"required" : false,
"varname" : "slug"
}
],
"log_errors" : false,
"name" : "RSA Extranet : bénéficiaire - contrats",
"url" : "{{ passerelle_url }}rsa13/{% firstof slug rsa13_slug \"rsa\" %}/platform/{{ plateforme_id }}/beneficiaire/{{ brsa_id }}/contrat/?email={{ user_email }}&ip={{ request.META.REMOTE_ADDR }}",
"varnames" : []
},
"rsa13-beneficiaire-convocations" : {
"cache_duration" : 0,
"force_async" : true,
"form" : [
{
"label" : "Identifiant du connecteur",
"required" : false,
"varname" : "slug"
}
],
"log_errors" : false,
"name" : "RSA Extranet : bénéficiaire - convocations",
"url" : "{{ passerelle_url }}rsa13/{% firstof slug rsa13_slug \"rsa\" %}/platform/{{ plateforme_id }}/beneficiaire/{{ brsa_id }}/convo/?email={{ user_email }}&ip={{ request.META.REMOTE_ADDR }}",
"varnames" : []
},
"rsa13-beneficiaire-fond-aide" : {
"cache_duration" : 0,
"force_async" : true,
"form" : [
{
"label" : "Identifiant du connecteur",
"required" : false,
"varname" : "slug"
}
],
"log_errors" : false,
"name" : "RSA Extranet : bénéficiaire - fond d'aide",
"url" : "{{ passerelle_url }}rsa13/{% firstof slug rsa13_slug \"rsa\" %}/platform/{{ plateforme_id }}/beneficiaire/{{ brsa_id }}/fondsaide/{{ fondaide_id }}/?email={{ user_email }}&ip={{ request.META.REMOTE_ADDR }}",
"varnames" : []
},
"rsa13-beneficiaire-fonds-aide" : {
"cache_duration" : 0,
"force_async" : true,
"form" : [
{
"label" : "Identifiant du connecteur",
"required" : false,
"varname" : "slug"
}
],
"log_errors" : false,
"name" : "RSA Extranet : bénéficiaire - fonds d'aide",
"url" : "{{ passerelle_url }}rsa13/{% firstof slug rsa13_slug \"rsa\" %}/platform/{{ plateforme_id }}/beneficiaire/{{ brsa_id }}/fondsaide/?email={{ user_email }}&ip={{ request.META.REMOTE_ADDR }}",
"varnames" : []
},
"rsa13-beneficiaire-pole-emploi" : {
"cache_duration" : 0,
"force_async" : true,
"form" : [
{
"label" : "Identifiant du connecteur",
"required" : false,
"varname" : "slug"
}
],
"log_errors" : false,
"name" : "RSA Extranet : bénéficiaire - pôle emploi",
"url" : "{{ passerelle_url }}rsa13/{% firstof slug rsa13_slug \"rsa\" %}/platform/{{ plateforme_id }}/beneficiaire/{{ brsa_id }}/emploi/?email={{ user_email }}&ip={{ request.META.REMOTE_ADDR }}",
"varnames" : []
},
"rsa13-beneficiaire-presentation" : {
"cache_duration" : 0,
"force_async" : true,
"form" : [
{
"label" : "Identifiant du connecteur",
"required" : false,
"varname" : "slug"
}
],
"log_errors" : false,
"name" : "RSA Extranet : présentation du bénéficiaire",
"url" : "{{ passerelle_url }}rsa13/{% firstof slug rsa13_slug \"rsa\" %}/platform/{{ plateforme_id }}/beneficiaire/{{ brsa_id }}/?email={{ user_email }}&ip={{ request.META.REMOTE_ADDR }}",
"varnames" : []
},
"rsa13-beneficiaire-transport" : {
"cache_duration" : 0,
"force_async" : true,
"form" : [
{
"label" : "Identifiant du connecteur",
"required" : false,
"varname" : "slug"
}
],
"log_errors" : false,
"name" : "RSA Extranet : bénéficiaire - transport",
"url" : "{{ passerelle_url }}rsa13/{% firstof slug rsa13_slug \"rsa\" %}/platform/{{ plateforme_id }}/beneficiaire/{{ brsa_id }}/transport/?email={{ user_email }}&ip={{ request.META.REMOTE_ADDR }}",
"varnames" : []
},
"rsa13-coordinateurs" : {
"additional-data" : [
{
"cache_duration" : 0,
"key" : "plateforme",
"log_errors" : false,
"timeout" : 30,
"url" : "{{ passerelle_url }}rsa13/{% firstof slug rsa13_slug \"rsa\" %}/platform/{{ plateforme_id }}/?email={{ user_email }}&ip={{ request.META.REMOTE_ADDR }}"
}
],
"cache_duration" : 0,
"force_async" : true,
"form" : [
{
"label" : "Identifiant du connecteur",
"required" : false,
"varname" : "slug"
}
],
"log_errors" : false,
"name" : "RSA Extranet : coordinateurs",
"url" : "{{ passerelle_url }}rsa13/{% firstof slug rsa13_slug \"rsa\" %}/platform/{{ plateforme_id }}/referent/?email={{ user_email }}&ip={{ request.META.REMOTE_ADDR }}",
"varnames" : []
},
"rsa13-formulaire-de-recherche" : {
"cache_duration" : 0,
"force_async" : true,
"form" : [
{
"label" : "Identifiant du connecteur",
"required" : false,
"varname" : "slug"
}
],
"log_errors" : false,
"name" : "RSA Extranet : formulaire de recherche",
"url" : "{{ passerelle_url }}rsa13/{% firstof slug rsa13_slug \"rsa\" %}/platform/{{ plateforme_id }}/referent/?email={{ user_email }}&ip={{ request.META.REMOTE_ADDR }}",
"varnames" : []
},
"rsa13-lien-coordination" : {
"cache_duration" : 0,
"force_async" : true,
"form" : [
{
"label" : "Identifiant du connecteur",
"required" : false,
"varname" : "slug"
}
],
"log_errors" : false,
"name" : "RSA Extranet : lien coordination",
"url" : "{{ passerelle_url }}rsa13/{% firstof slug rsa13_slug \"rsa\" %}/platform?email={{ user_email }}&ip={{ request.META.REMOTE_ADDR }}",
"varnames" : []
},
"rsa13-liste-des-beneficiaires" : {
"actions" : {
"csv" : {
"method" : "GET",
"response" : "raw",
"url" : "{{ passerelle_url }}rsa13/{% firstof slug rsa13_slug \"rsa\" %}/platform/{{ plateforme_id }}/beneficiaire/csv/?email={{ user_email }}&ip={{ request.META.REMOTE_ADDR }}{% if query %}&query={{ query }}{% endif %}"
}
},
"additional-data" : [
{
"cache_duration" : 0,
"key" : "plateforme",
"log_errors" : false,
"timeout" : 30,
"url" : "{{ passerelle_url }}rsa13/{% firstof slug rsa13_slug \"rsa\" %}/platform/{{ plateforme_id }}/?email={{ user_email }}&ip={{ request.META.REMOTE_ADDR }}"
}
],
"cache_duration" : 0,
"force_async" : true,
"form" : [
{
"label" : "Identifiant du connecteur",
"required" : false,
"varname" : "slug"
}
],
"log_errors" : false,
"name" : "RSA Extranet : liste des bénéficiaires",
"url" : "{{ passerelle_url }}rsa13/{% firstof slug rsa13_slug \"rsa\" %}/platform/{{ plateforme_id }}/beneficiaire/?email={{ user_email }}&ip={{ request.META.REMOTE_ADDR }}&query={{ query_id }}&page={{ request.GET.page|default:'0' }}",
"varnames" : []
},
"rsa13-menu-beneficiaire" : {
"cache_duration" : 0,
"force_async" : true,
"form" : [
{
"label" : "Identifiant du connecteur",
"required" : false,
"varname" : "slug"
},
{
"label" : "Racine",
"required" : false,
"varname" : "from"
}
],
"log_errors" : false,
"name" : "RSA Extranet : menu bénéficiaire",
"url" : "{{ passerelle_url }}rsa13/{% firstof slug rsa13_slug \"rsa\" %}/",
"varnames" : []
},
"rsa13-plateforme" : {
"cache_duration" : 0,
"force_async" : true,
"form" : [
{
"label" : "Identifiant du connecteur",
"required" : false,
"varname" : "slug"
}
],
"log_errors" : false,
"name" : "RSA Extranet : plateforme",
"url" : "{{ passerelle_url }}rsa13/{% firstof slug rsa13_slug \"rsa\" %}/platform/{{ plateforme_id }}/?email={{ user_email }}&ip={{ request.META.REMOTE_ADDR }}",
"varnames" : []
},
"rsa13-plateformes" : {
"cache_duration" : 0,
"force_async" : true,
"form" : [
{
"label" : "Identifiant du connecteur",
"required" : false,
"varname" : "slug"
}
],
"log_errors" : false,
"name" : "RSA Extranet : plateformes",
"url" : "{{ passerelle_url }}rsa13/{% firstof slug rsa13_slug \"rsa\" %}/platform?email={{ user_email }}&ip={{ request.META.REMOTE_ADDR }}",
"varnames" : []
},
"rsa13-recherche-de-beneficiaires" : {
"additional-data" : [
{
"cache_duration" : 0,
"key" : "plateforme",
"log_errors" : false,
"timeout" : 30,
"url" : "{{ passerelle_url }}rsa13/{% firstof slug rsa13_slug \"rsa\" %}/platform/{{ plateforme_id }}/?email={{ user_email }}&ip={{ request.META.REMOTE_ADDR }}"
}
],
"cache_duration" : 0,
"force_async" : true,
"form" : [
{
"label" : "Identifiant du connecteur",
"required" : false,
"varname" : "slug"
}
],
"log_errors" : false,
"name" : "RSA Extranet : recherche de bénéficiaires",
"url" : "{{ passerelle_url }}rsa13/{% firstof slug rsa13_slug \"rsa\" %}/platform/{{ plateforme_id }}/beneficiaire/?email={{ user_email }}&ip={{ request.META.REMOTE_ADDR }}&nom={{ request.GET.nom }}&matricule={{ request.GET.numero_caf }}&referent={{ request.GET.referent }}&page={{ request.GET.page|default:'0' }}",
"varnames" : []
}
}
}
}
},
"variables" : {
"include_top_links" : false,
"pwa_display" : "standalone",
"theme_color" : "#5b7197"
}
}

View File

@ -0,0 +1,68 @@
{% load combo %}
{% if not json.err and not plateforme.err and plateforme.data %}
{% with data=json.data %}
<h2>{{ plateforme.data.name }}</h2>
<div class="cell--body">
<h3>Coordination</h3>
<p><a href="./liste-des-coordinateurs">Liste des coordonateurs</a></p>
<h4>Accompagnateurs actifs</h4>
<p><a href="{{ eservices_url }}extranet-rsa/ajouter-un-accompagnateur/?plateforme={{ plateforme_id }}&plateforme_nom={{ plateforme.data.name }}&cancelurl={{ portal_url }}portail-extranet-rsa/plateforme/{{ plateforme_id }}/coordination/"> Ajouter un accompagnateur</a></p>
<div class="pk-table-wrapper">
<table class="pk-data-table pk-table-headers pk-table-borders pk-table-zebra" style="width:100%;">
<tr>
<th>Nom</th>
<th>Prénom</th>
<th>Courriel</th>
<th>Téléphone</th>
<th>Coordination</th>
{% for acc in data %}
{% if acc.role != "Coordonnateur" and acc.statut == 'Actif' %}
</tr>
<td>{{ acc.nom|default:"" }}</td>
<td>{{ acc.prenom|default:"" }}</td>
<td>{% if acc.email %}<a href="mailto:{{ acc.email }}">{{ acc.email }}</a>{% endif %}</td>
<td>{% if acc.tel %}<a href="tel:{{ acc.tel }}">{{ acc.tel }}</a>{% endif %}</td>
<td><a href="{{ eservices_url }}extranet-rsa/editer-un-accompagnateur/?plateforme={{ plateforme_id }}&plateforme_nom={{ plateforme.data.name }}&referent={{ acc.id }}&courriel={{ acc.email|default:"" }}&nom={{ acc.nom|default:"" }}&prenom={{ acc.prenom|default:"" }}&telephone={{ acc.tel|default:"" }}&statut={% if acc.statut == 'Actif' %}A{% else %}C{% endif %}&cancelurl={{ portal_url }}portail-extranet-rsa/plateforme/{{ plateforme_id }}/coordination/">✎ Modifier</a></td>
</tr>
{% endif %}
{% endfor %}
</table>
</div>
<h4>Accompagnateurs désactivés</h4>
<div class="pk-table-wrapper">
<table class="pk-data-table pk-table-headers pk-table-borders pk-table-zebra" style="width:100%;">
<tr>
<th>Nom</th>
<th>Prénom</th>
<th>Courriel</th>
<th>Téléphone</th>
<th>Coordination</th>
{% for acc in data %}
{% if acc.role != "Coordonnateur" and acc.statut != 'Actif' %}
</tr>
<td>{{ acc.nom|default:"" }}</td>
<td>{{ acc.prenom|default:"" }}</td>
<td>{% if acc.email %}<a href="mailto:{{ acc.email }}">{{ acc.email }}</a>{% endif %}</td>
<td>{% if acc.tel %}<a href="tel:{{ acc.tel }}">{{ acc.tel }}</a>{% endif %}</td>
<td><a href="{{ eservices_url }}extranet-rsa/editer-un-accompagnateur/?plateforme={{ plateforme_id }}&plateforme_nom={{ plateforme.data.name }}&referent={{ acc.id }}&courriel={{ acc.email|default:"" }}&nom={{ acc.nom|default:"" }}&prenom={{ acc.prenom|default:"" }}&telephone={{ acc.tel|default:"" }}&statut={% if acc.statut == 'Actif' %}A{% else %}C{% endif %}&cancelurl={{ portal_url }}portail-extranet-rsa/plateforme/{{ plateforme_id }}/coordination/">✎ Modifier</a></td>
</tr>
{% endif %}
{% endfor %}
</table>
</div>
</div>
{% endwith %}
{% endif %}

View File

@ -0,0 +1,41 @@
{% load combo %}
{% if json.data and not json.err %}
{% with json.data as data %}
<h2>{{ data.sac }} - {{ data.libelle }}</h2>
<div class="cell--body">
<div class="grid-1-1">
<p><a href="{{ eservices_url }}extranet-rsa/modification-d-une-action/?plateforme={{ plateforme_id }}&brsa={{ brsa_id }}&action={{ data.id }}&cancelurl={{ portal_url }}portail-extranet-rsa/plateforme/{{ plateforme_id }}/beneficiaire-rsa/{{ brsa_id }}/actions/action/{{ data.id }}/">✎ Modifier</a></p>
</div>
<div class="grid-1-2">
<p>N° contrat : <strong>{{ data.contrat_id|default:"" }}</strong></p>
<p>Date de préconisation : <strong>{{ data.date_preconisation|date:"d/m/Y"|default:"" }}</strong></p>
<p>Date de début : <strong>{{ data.date_deb|date:"d/m/Y"|default:"" }}</strong></p>
<p>Date de Fin : <strong>{{ data.date_fin|date:"d/m/Y"|default:"" }}</strong></p>
<p>Date de clôture : <strong>{{ data.date_cloture|date:"d/m/Y"|default:"" }}</strong></p>
<p>Motif de clôture : <strong>{{ data.lib_moticlodac|default:"" }}</strong></p>
<p>Validation : <strong>{{ data.validation|default:"" }}</strong></p>
</div>
<div class="grid-1-2">
<p><strong>Financement</strong></p>
<p>Montant demandé : <strong>{% if data.financement.montant_demande %}{{ data.financement.montant_demande }} €{% endif %}</strong></p>
<p>Montant accordé : <strong>{% if data.financement.montant_accorde %}{{ data.financement.montant_accorde }} €{% endif %}</strong></p>
</div>
{% if data.commentaire_ref %}
<div class="grid-1-1">
<div class="infonotice">
<p><strong>Commentaire</strong></p>
<p>{{ data.commentaire_ref|linebreaks }}</p>
</div>
</div>
{% endif %}
</div>
{% endwith %}
{% endif %}

View File

@ -0,0 +1,72 @@
{% load combo %}
<h2>Actions</h2>
<div class="cell--body">
{% if json.data and not json.err %}
{% with json.data as data %}
<h3>En cours</h3>
<div class="pk-table-wrapper">
<table class="pk-data-table pk-table-headers pk-table-borders pk-table-zebra" style="width:100%;">
<tr>
<th>Nom</th>
<th>Code SAC</th>
<th>Date de préconisation</th>
<th>Date de début</th>
<th>Date de fin</th>
<th>Validation</th>
</tr>
{% for action in data %}
{% if action.clos == "Non" %}
<tr>
<td><a href="action/{{ action.id }}">{{ action.libelle|default:"" }}</a></td>
<td>{{ action.sac|default:"" }}</td>
<td>{{ action.date_preconisation|date:"d/m/Y"|default:"" }}</td>
<td>{{ action.date_deb|date:"d/m/Y"|default:"" }}</td>
<td>{{ action.date_fin|date:"d/m/Y"|default:"" }}</td>
<td>{{ action.validation|default:"" }}</td>
</tr>
{% endif %}
{% endfor %}
</table>
</div>
<h3>Terminées</h3>
<div class="pk-table-wrapper">
<table class="pk-data-table pk-table-headers pk-table-borders pk-table-zebra" style="width:100%;">
<tr>
<th>Nom</th>
<th>Code SAC</th>
<th>Date de préconisation</th>
<th>Date de début</th>
<th>Date de fin</th>
<th>Validation</th>
</tr>
{% for action in data %}
{% if action.clos == "Oui" %}
<tr>
<td><a href="action/{{ action.id }}">{{ action.libelle|default:"" }}</a></td>
<td>{{ action.sac|default:"" }}</td>
<td>{{ action.date_preconisation|date:"d/m/Y"|default:"" }}</td>
<td>{{ action.date_deb|date:"d/m/Y"|default:"" }}</td>
<td>{{ action.date_fin|date:"d/m/Y"|default:"" }}</td>
<td>{{ action.validation|default:"" }}</td>
</tr>
{% endif %}
{% endfor %}
</table>
</div>
{% endwith %}
{% else %}
<p>Aucune information.</p>
{% endif %}
</div>

View File

@ -0,0 +1,44 @@
{% load combo %}
{% if json.data and not json.err %}
{% with json.data as data %}
<h2>Affectation</h2>
<div class="cell--body">
<div class="grid-1-3">
<p>Dispositif : <strong>{{ data.dispositif|default:"" }}</strong></p>
<p>Plateforme : <strong>{{ data.plateforme|default:"" }}</strong></p>
<p>PI : <strong>{{ data.code_pi|default:"" }}</strong></p>
<p>Erreur : <strong>{{ data.erreur|default:"" }}</strong></p>
<p>Date de début : <strong>{{ data.date_deb|date:"d/m/Y"|default:"" }}</strong></p>
<p>Origine : <strong>{{ data.origine|default:"" }}</strong></p>
<p>Prescripteur : <strong>{{ data.prescripteur.plateforme|default:"" }}&nbsp;{{ data.prescripteur.dispositif|default:"" }}&nbsp;{{ data.prescripteur.type|default:"" }}</strong></p>
{% if data.fin.date or data.fin.lib_motif %}
<div class="infonotice">
<p><strong>Fin</strong></p>
<p>Date : <strong>{{ data.fin.date|date:"d/m/Y"|default:"" }}</strong></p>
<p>Motif : <strong>{{ data.fin.lib_motif|default:"" }}</strong></p>
</div>
{% endif %}
</div>
<div class="grid-1-3">
<h4>Premier rendez-vous</h4>
{% with data.rendezvous as rdv %}
<p>Date prise RdV : <strong>{{ rdv.date_prise|date:"d/m/Y"|default:"" }}</strong></p>
<p>Date de relance : <strong>{{ rdv.relance.date|date:"d/m/Y"|default:"" }}</strong></p>
<p>Motif de relance : <strong>{{ rdv.relance.lib_motif|default:"" }}</strong></p>
<p>Date réelle : <strong>{{ rdv.date_reelle|date:"d/m/Y"|default:"" }}</strong></p>
<p>Résultat : <strong>{{ rdv.lib_resultat|default:"" }}</strong></p>
{% endwith %}
</div>
<div class="grid-1-3">
<h4>Référent</h4>
<p>Référent : <strong>{% if data.referent.nom %}{{ data.referent.nom|upper }} {{ data.referent.prenom|default:"" }}{% else %}Non renseigné{% endif %}</strong></p>
<p>Commentaire : <strong>{{ data.commentaire_ref|default:"Aucun"|linebreaks }}</strong></p>
</div>
</div>
{% endwith %}
{% endif %}

View File

@ -0,0 +1,85 @@
{% load combo %}
<h2>Affectations</h2>
<div class="cell--body">
{% if json.data and not json.err and premier.data and not premier.err %}
{% with json.data as liste %}
{% with premier.data as prem %}
<h3> Affectation en cours</h3>
<div class="grid-1-1">
<p><a href="{{ eservices_url }}extranet-rsa/reaffectation/?plateforme={{ plateforme_id }}&brsa={{ brsa_id }}&cancelurl={{ portal_url }}portail-extranet-rsa/plateforme/{{ plateforme_id }}/beneficiaire-rsa/{{ brsa_id }}/affectations/">❌ Sortie</a></p>
</div>
<div class="grid-1-3">
<p>Dispositif : <strong>{{ prem.dispositif|default:"" }}</strong></p>
<p>Plateforme : <strong>{{ prem.plateforme|default:"" }}</strong></p>
<p>PI : <strong>{{ prem.code_pi|default:"" }}</strong></p>
<p>Date de début : <strong>{{ prem.date_deb|date:"d/m/Y"|default:"" }}</strong></p>
<p>Origine : <strong>{{ prem.origine|default:"" }}</strong></p>
<p>Prescripteur : <strong>{{ prem.prescripteur.plateforme|default:"" }}&nbsp;{{ prem.prescripteur.dispositif|default:"" }}&nbsp;{{ prem.prescripteur.type|default:"" }}</strong></p>
{% if prem.fin.date or prem.fin.lib_motif %}
<div class="infonotice">
<p><strong>Fin</strong></p>
<p>Date : <strong>{{ prem.fin.date|date:"d/m/Y"|default:"" }}</strong></p>
<p>Motif : <strong>{{ prem.fin.lib_motif|default:"" }}</strong></p>
</div>
{% endif %}
</div>
<div class="grid-1-3">
<h4>Premier rendez-vous</h4>
<p><a href="{{ eservices_url }}extranet-rsa/modification-du-premier-rendez-vous/?plateforme={{ plateforme_id }}&brsa={{ brsa_id }}&affectation={{ prem.id }}&cancelurl={{ portal_url }}portail-extranet-rsa/plateforme/{{ plateforme_id }}/beneficiaire-rsa/{{ brsa_id }}/affectations/">✎ Modifier</a></p>
{% with prem.rendezvous as rdv %}
<p>Date prise RdV : <strong>{{ rdv.date_prise|date:"d/m/Y"|default:"" }}</strong></p>
<p>Date de relance : <strong>{{ rdv.relance.date|date:"d/m/Y"|default:"" }}</strong></p>
<p>Motif de relance : <strong>{{ rdv.relance.lib_motif|default:"" }}</strong></p>
<p>Date réelle : <strong>{{ rdv.date_reelle|date:"d/m/Y"|default:"" }}</strong></p>
<p>Résultat : <strong>{{ rdv.lib_resultat|default:"" }}</strong></p>
{% endwith %}
</div>
<div class="grid-1-3">
<h4>Référent</h4>
<p><a href="{{ eservices_url }}extranet-rsa/modification-du-referent/?plateforme={{ plateforme_id }}&brsa={{ brsa_id }}&affectation={{ prem.id }}&cancelurl={{ portal_url }}portail-extranet-rsa/plateforme/{{ plateforme_id }}/beneficiaire-rsa/{{ brsa_id }}/affectations/">✎ Modifier</a></p>
<p>Référent : <strong>{% if prem.referent.nom %}{{ prem.referent.nom|upper }} {{ prem.referent.prenom|default:"" }}{% else %}Non renseigné{% endif %}</strong></p>
<p>Commentaire : <strong>{{ prem.commentaire_ref|default:"Aucun"|linebreaks }}</strong></p>
</div>
<div class="grid-1-1">
<h3>Historique des affectations</h3>
<div class="pk-table-wrapper">
<table class="pk-data-table pk-table-headers pk-table-borders pk-table-zebra" style="width:100%;">
<tr>
<th></th>
<th>Dispositif</th>
<th>Plateforme</th>
<th>Date de début</th>
<th>Référent</th>
<th>Origine</th>
<th>Prescripteur</th>
</tr>
{% for aff in liste %}
<tr>
<td><a href="affectation/{{ aff.id }}">🔎</a></td>
<td>{{ aff.dispositif|default:"" }}</td>
<td>{{ aff.plateforme|default:"" }}</td>
<td>{{ aff.date_deb|date:"d/m/Y"|default:"" }}</td>
<td>{{ aff.referent|default:"" }}</td>
<td>{{ aff.origine|default:"" }}</td>
<td>{{ aff.prescripteur.plateforme|default:"" }}&nbsp;{{ aff.prescripteur.dispositif|default:"" }}&nbsp;{{ aff.prescripteur.type|default:"" }}</td>
</tr>
<tr>
{% endfor %}
</table>
</div>
</div>
{% endwith %}
{% endwith %}
{% else %}
<p>Aucune information.</p>
{% endif %}
</div>

View File

@ -0,0 +1,46 @@
{% load combo %}
{% if json.data and not json.err %}
{% with json.data as data %}
<h2>Contrat {{ data.id }}</h2>
<div class="cell--body">
<div class="grid-1-1">
<p>Plateforme : <strong>{{ data.plateforme|default:"" }}</strong></p>
<p>Opérateur : <strong>{{ data.operateur|default:"" }}</strong></p>
<p>Référent : <strong>{% if data.referent.nom %}{{ data.referent.nom|upper }} {{ data.referent.prenom|default:"" }}{% else %}Non renseigné{% endif %}</strong></p>
<p>Date de signature : <strong>{{ data.date_sign|date:"d/m/Y"|default:"" }}</strong></p>
<p>Commentaire : <strong>{{ data.referent.commentaire_ref|default:"Aucun"|linebreaks }}</strong></p>
</div>
<div class="grid-1-2">
<p>Date de début : <strong>{{ data.date_deb|date:"d/m/Y"|default:"" }}</strong></p>
<p>Date de Fin : <strong>{{ data.date_fin|date:"d/m/Y"|default:"" }}</strong></p>
<p>Durée : <strong>{% if data.duree %}{{ data.duree }}{% endif %}</strong></p>
<p>Décision : <strong>{{ data.decision|default:"" }}</strong></p>
<p>Date de clôture : <strong>{{ data.date_clos|date:"d/m/Y"|default:"" }}</strong></p>
</div>
<div class="grid-1-2">
<p>Type de contrat : <strong>{{ data.type_contrat|default:"" }}</strong></p>
<p>Date de commission : <strong>{{ data.date_cvs|date:"d/m/Y"|default:"" }}</strong></p>
<p>Motif de commission : <strong>{{ data.motif_cvs|default:"" }}</strong></p>
<p>Rétablissement à compter du : <strong>{{ data.date_retab|date:"d/m/Y"|default:"" }}</strong></p>
</div>
{% if data.commentaire %}
<div class="grid-1-1">
<div class="infonotice">
<p><strong>Commentaire courrier</strong></p>
<p>{{ data.commentaire|linebreaks }}</p>
</div>
</div>
{% endif %}
</div>
{% endwith %}
{% endif %}

View File

@ -0,0 +1,84 @@
{% load combo %}
<h2>Contrats</h2>
<div class="cell--body">
{% if json.data and not json.err %}
{% with json.data as data %}
<h3>En cours</h3>
<div class="pk-table-wrapper">
<table class="pk-data-table pk-table-headers pk-table-borders pk-table-zebra" style="width:100%;">
<tr>
<th></th>
<th>Plateforme</th>
<th>Opérateur</th>
<th>Date de début</th>
<th>Date de fin</th>
<th>Durée</th>
<th>Référent</th>
<th>Décision</th>
<th>Rétablissement</th>
</tr>
{% for contrat in data %}
{% if contrat.clos == "Non" %}
<tr>
<td><a href="contrat/{{ contrat.id }}">{{ contrat.id }}</a></td>
<td>{{ contrat.plateforme|default:"" }}</td>
<td>{{ contrat.operateur|default:"" }}</td>
<td>{{ contrat.date_deb|date:"d/m/Y"|default:"" }}</td>
<td>{{ contrat.date_fin|date:"d/m/Y"|default:"" }}</td>
<td>{% if contrat.duree %}{{ contrat.duree }}{% endif %}</td>
<td>{{ contrat.referent|default:"" }}</td>
<td>{{ contrat.decision|default:"" }}</td>
<td>{{ contrat.retab|default:"" }}</td>
</tr>
{% endif %}
{% endfor %}
</table>
</div>
<h3>Clos</h3>
<div class="pk-table-wrapper">
<table class="pk-data-table pk-table-headers pk-table-borders pk-table-zebra" style="width:100%;">
<tr>
<th></th>
<th>Plateforme</th>
<th>Opérateur</th>
<th>Date de début</th>
<th>Date de fin</th>
<th>Durée</th>
<th>Référent</th>
<th>Décision</th>
<th>Rétablissement</th>
</tr>
{% for contrat in data %}
{% if contrat.clos == "Oui" %}
<tr>
<td><a href="contrat/{{ contrat.id }}">{{ contrat.id }}</a></td>
<td>{{ contrat.plateforme|default:"" }}</td>
<td>{{ contrat.operateur|default:"" }}</td>
<td>{{ contrat.date_deb|date:"d/m/Y"|default:"" }}</td>
<td>{{ contrat.date_fin|date:"d/m/Y"|default:"" }}</td>
<td>{% if contrat.duree %}{{ contrat.duree }}{% endif %}</td>
<td>{{ contrat.referent|default:"" }}</td>
<td>{{ contrat.decision|default:"" }}</td>
<td>{{ contrat.retab|default:"" }}</td>
</tr>
{% endif %}
{% endfor %}
</table>
</div>
{% endwith %}
{% else %}
<p>Aucune information.</p>
{% endif %}
</div>

View File

@ -0,0 +1,65 @@
{% load combo %}
<h2>Convocations</h2>
<div class="cell--body">
{% if json.data and not json.err %}
{% with json.data as data %}
<div class="pk-table-wrapper">
<table class="pk-data-table pk-table-headers pk-table-borders pk-table-zebra" style="width:100%;">
<tr>
<th style="width:50%;">Convocations par motif</th>
<th>Suspensions par conséquence</th>
</tr>
<tr>
<td style="vertical-align: top;">
{% for cpm in data.convos_par_motif %}
<p>{{ cpm.motif }} : <strong>{{ cpm.nombre }}</strong></p>
{% endfor %}
</td>
<td style="vertical-align: top;">
{% for sus in data.suspensions_par_consequence %}
<p>{{ sus.consequence }} : <strong>{{ sus.nombre }}</strong></p>
{% endfor %}
</td>
</tr>
</table>
</div>
<div class="infonotice">
<p>Dernière conséquence : <strong>{% if data.derniere_consequence.consequence %}{{ data.derniere_consequence.consequence }} - {{ data.derniere_consequence.date|date:"d/m/Y"|default:"" }}{% else %}Aucune{% endif %}</strong></p>
</div>
<h3>Procédure en cours</h3>
{% if data.procedure_en_cours %}
<p>Motif : <strong>{{ data.procedure_en_cours.lib_mcv|default:"" }}</strong></p>
<p>Date de candidature à convocation : <strong>{{ data.procedure_en_cours.dt_candid_cv|date:"d/m/Y"|default:"" }}</strong></p>
<p>Date de convocation : <strong>{{ data.procedure_en_cours.dt_cv|date:"d/m/Y"|default:"" }}</strong></p>
<p>Lieu : <strong>{{ data.procedure_en_cours.lieu|default:"" }}</strong></p>
<p>Résultat : <strong>{{ data.procedure_en_cours.lib_res|default:"" }}</strong></p>
{% if data.procedure_en_cours.lib_res == "Présent Orienté" %}<p>Délai de régularisation : <strong>{{ data.procedure_en_cours.delai_reg|default:"" }}</strong></p>{% endif %}
{% if data.procedure_en_cours.lib_res == "Présent Orienté" %}<p>Réorienté vers : <strong>{{ data.procedure_en_cours.plt_reo|default:"" }}</strong></p>{% endif %}
<p>Date de cloture : <strong>{{ data.procedure_en_cours.date_cloture|date:"d/m/Y"|default:"" }}</strong></p>
<p>Reconvocation : <strong>{{ data.procedure_en_cours.flg_reconvo|default:"" }}</strong></p>
{% if data.procedure_en_cours.ep.date_ep or data.procedure_en_cours.ep.lib_cons or data.procedure_en_cours.ep.avis %}
<div class="infonotice">
<p><strong>Équipe pluridisciplinaire</strong></p>
<p>Date : <strong>{{ data.procedure_en_cours.ep.date_ep|date:"d/m/Y"|default:"" }}</strong></p>
<p>Conséquence : <strong>{{ data.procedure_en_cours.ep.lib_cons|default:"" }}</strong></p>
<p>Avis : <strong>{{ data.procedure_en_cours.ep.avis|default:"" }}</strong></p>
</div>
{% endif %}
{% else %}
<p>Aucune.</p>
{% endif %}
{% endwith %}
{% else %}
<p>Aucune information.</p>
{% endif %}
</div>

View File

@ -0,0 +1,112 @@
{% load combo %}
{% if json.data and not json.err %}
{% with json.data as data %}
<h2>Fond d'aide {{ data.id }}</h2>
<div class="cell--body">
<div class="grid-1-2">
<p>Nom : <strong>{{ data.lib_tfi|default:"" }}</strong></p>
<p>Montant de la demande : <strong>{% if data.demande.montant %}{{ data.demande.montant }} €{% endif %}</strong></p>
<p>Date de clôture : <strong>{{ data.cloture.date_cloture|date:"d/m/Y"|default:"" }}</strong></p>
<p>Date de relance : <strong>{{ data.cloture.date_relance|date:"d/m/Y"|default:"" }}</strong></p>
</div>
<div class="grid-1-2">
<p>Code : <strong>{{ data.code_tfi|default:"" }}</strong></p>
<p>Date de la demande : <strong>{{ data.demande.date|date:"d/m/Y"|default:"" }}</strong></p>
</div>
<div class="grid-1-1">
<div class="pk-table-wrapper">
<table class="pk-data-table pk-table-headers pk-table-borders pk-table-zebra">
<tr>
<th style="width:33%;">Avis Pôle d'insertion</th>
<th style="width:33%;">Décision Service des Aides Individuelles</th>
<th>Recours</th>
</tr>
<tr>
<td>
<p>Montant : <strong>{% if data.avis_pi.montant %}{{ data.avis_pi.montant }} €{% endif %}</strong></p>
<p>Date : <strong>{{ data.avis_pi.date|date:"d/m/Y"|default:"" }}</strong></p>
<p>Avis : <strong>{{ data.avis_pi.avis|default:"" }}</strong></p>
</td>
<td>
<p>Montant : <strong>{% if data.decision_sai.montant %}{{ data.decision_sai.montant }} €{% endif %}</strong></p>
<p>Date : <strong>{{ data.decision_sai.date|date:"d/m/Y"|default:"" }}</strong></p>
<p>Avis : <strong>{{ data.decision_sai.decision|default:"" }}</strong></p>
</td>
<td>
<p>Date de la demande : <strong>{{ data.recours.date_demande|date:"d/m/Y"|default:"" }}</strong></p>
<p>Date de la décision : <strong>{{ data.recours.date_decision|date:"d/m/Y"|default:"" }}</strong></p>
<p>Décision : <strong>{{ data.recours.decision|default:"" }}</strong></p>
<p>Montant : <strong>{% if data.recours.montant %}{{ data.recours.montant }} €{% endif %}</strong></p>
</td>
</tr>
</table>
</div>
<h3>Budget</h3>
<p>Nombre de versements : <strong>{{ data.budget.nombre_versements|default:"0" }}</strong></p>
<p>Date de réception : <strong>{{ data.budget.date_reception|date:"d/m/Y"|default:"" }}</strong></p>
<h4>Justificatifs</h4>
<div class="pk-table-wrapper">
<table class="pk-data-table pk-table-headers pk-table-borders pk-table-zebra"">
<tr>
<th>Numéro du versement</th>
<th>Type</th>
<th>Reçu</th>
<th>Date de réception</th>
<th>Date de relance</th>
<th>Conforme</th>
</tr>
{% for justif in data.budget.justificatifs %}
<tr>
<td>{{ justif.num_versement|default:"" }}</td>
<td>{{ justif.type|default:"" }}</td>
<td>{{ justif.reception|default:"" }}</td>
<td>{{ justif.date_reception|date:"d/m/Y"|default:"" }}</td>
<td>{{ justif.date_relance|date:"d/m/Y"|default:"" }}</td>
<td>{{ justif.conforme|default:"" }}</td>
</tr>
{% endfor %}
</table>
</div>
<h3>Versements</h3>
<div class="pk-table-wrapper">
<table class="pk-data-table pk-table-headers pk-table-borders pk-table-zebra"">
<tr>
<th>Numéro du versement</th>
<th>Montant</th>
<th>Date de saisie</th>
<th>Date de validation</th>
<th>Date d'émission</th>
</tr>
{% for vers in data.budget.versements %}
<tr>
<td>{{ vers.num_versement|default:"" }}</td>
<td>{% if vers.montant %}{{ vers.montant }} €{% endif %}</td>
<td>{{ vers.date_saisie|date:"d/m/Y"|default:"" }}</td>
<td>{{ vers.date_validation|date:"d/m/Y"|default:"" }}</td>
<td>{{ vers.date_emission|date:"d/m/Y"|default:"" }}</td>
</tr>
{% endfor %}
</table>
</div>
<p>&nbsp;</p>
</div>
</div>
{% endwith %}
{% endif %}

View File

@ -0,0 +1,88 @@
{% load combo %}
<h2>Fonds d'aide</h2>
<div class="cell--body">
{% if json.data and not json.err %}
{% with json.data as data %}
<h3>En cours</h3>
<div class="pk-table-wrapper">
<table class="pk-data-table pk-table-headers pk-table-borders pk-table-zebra">
<tr>
<th>Nom</th>
<th>Code</th>
<th>Montant demande</th>
<th>Date demande</th>
<th>Pôle d'insertion</th>
<th>Service des Aides Individuelles</th>
</tr>
{% for fa in data %}
{% if fa.clos == "Non" %}
<tr>
<td><a href="fond-d-aide/{{ fa.id }}">{{ fa.lib_tfi|default:"" }}</a></td>
<td>{{ fa.code_tfi|default:"" }}</td>
<td>{% if fa.demande.montant %}{{ fa.demande.montant }} €{% endif %}</td>
<td>{{ fa.demande.date|date:"d/m/Y"|default:"" }}</td>
<td>
<p>Montant : <strong>{% if fa.avis_pi.montant %}{{ fa.avis_pi.montant }} €{% endif %}</strong></p>
<p>Date : <strong>{{ fa.avis_pi.date|date:"d/m/Y"|default:"" }}</strong></p>
<p>Avis : <strong>{{ fa.avis_pi.avis|default:"" }}</strong></p>
</td>
<td>
<p>Montant : <strong>{% if fa.decision_sai.montant %}{{ fa.decision_sai.montant }} €{% endif %}</strong></p>
<p>Date : <strong>{{ fa.decision_sai.date|date:"d/m/Y"|default:"" }}</strong></p>
<p>Avis : <strong>{{ fa.decision_sai.decision|default:"" }}</strong></p>
</td>
</tr>
{% endif %}
{% endfor %}
</table>
</div>
<h3>Clos</h3>
<div class="pk-table-wrapper">
<table class="pk-data-table pk-table-headers pk-table-borders pk-table-zebra">
<tr>
<th>Nom</th>
<th>Code</th>
<th>Montant demande</th>
<th>Date demande</th>
<th>Pôle d'insertion</th>
<th>Service des Aides Individuelles</th>
</tr>
{% for fa in data %}
{% if fa.clos == "Oui" %}
<tr>
<td><a href="fond-d-aide/{{ fa.id }}">{{ fa.lib_tfi|default:"" }}</a></td>
<td>{{ fa.code_tfi|default:"" }}</td>
<td>{% if fa.demande.montant %}{{ fa.demande.montant }} €{% endif %}</td>
<td>{{ fa.demande.date|date:"d/m/Y"|default:"" }}</td>
<td>
<p>Montant : <strong>{% if fa.avis_pi.montant %}{{ fa.avis_pi.montant }} €{% endif %}</strong></p>
<p>Date : <strong>{{ fa.avis_pi.date|date:"d/m/Y"|default:"" }}</strong></p>
<p>Avis : <strong>{{ fa.avis_pi.avis|default:"" }}</strong></p>
</td>
<td>
<p>Montant : <strong>{% if fa.decision_sai.montant %}{{ fa.decision_sai.montant }} €{% endif %}</strong></p>
<p>Date : <strong>{{ fa.decision_sai.date|date:"d/m/Y"|default:"" }}</strong></p>
<p>Avis : <strong>{{ fa.decision_sai.decision|default:"" }}</strong></p>
</td>
</tr>
{% endif %}
{% endfor %}
</table>
</div>
{% endwith %}
{% else %}
<p>Aucune information.</p>
{% endif %}
</div>

View File

@ -0,0 +1,33 @@
{% load combo %}
<h2>Situation Pôle Emploi</h2>
<div class="cell--body">
{% if json.data and not json.err %}
{% with json.data as data %}
<div class="grid-1-3">
<p>Identifiant Pôle Emploi : <strong>{{ data.id|default:"" }}</strong></p>
<p>Date d'inscription : <strong>{{ data.date_inscription|date:"d/m/Y"|default:"" }}</strong></p>
<p>Date du dernier entretien : <strong>{{ data.date_dernier_ent|date:"d/m/Y"|default:"" }}</strong></p>
<p>Date de sortie : <strong>{{ data.date_sortie|date:"d/m/Y"|default:"" }}</strong></p>
<p>Motif de sortie : <strong>{{ data.motif_sortie|default:"" }}</strong></p>
</div>
<div class="grid-2-3">
<p>Code ROME : <strong>{{ data.code_rome|default:"" }} - {{ data.lib_rome|default:"" }}</strong></p>
<p>Axe de retour à l'emploi : <strong>{{ data.code_axe|default:"" }} - {{ data.lib_axe|default:"" }}</strong></p>
<p>Disponibilité : <strong>{{ data.code_categorie|default:"" }} - {{ data.lib_categorie|default:"" }}</strong></p>
<p>Modalité d'accompagnement : <strong>{{ data.lib_modalite|default:"" }}</strong></p>
<p>Niveau de formation : <strong>{{ data.lib_niveau|default:"" }}</strong></p>
<p>Secteur de formation : <strong>{{ data.lib_secteur|default:"" }}</strong></p>
</div>
{% endwith %}
{% else %}
<p>Aucune information.</p>
{% endif %}
</div>

View File

@ -0,0 +1,24 @@
{% load combo %}
{% if not json.err and json.data %}
{% with json.data as data %}
<h2>{{ data.plateforme.nom }}</h2>
<div class="cell--body">
<div class="grid-1-2">
{% if data.actif == "Non" %}<p><span class="pastille-rouge">Inactif</span></p>{% endif %}
<p>Civilité : <strong>{{ data.civilite|default:"" }}</strong></p>
<p>Nom : <strong>{{ data.nom|upper|default:"Non renseigné" }}</strong></p>
<p>Nom de naissance : <strong>{{ data.nomnaiss|default:"" }}</strong></p>
<p>Prénom : <strong>{{ data.prenom|default:"Non renseigné" }}</strong></p>
</div>
<div class="grid-1-2">
<p>né(e) le : <strong>{% if data.date_naissance %}{{ data.date_naissance|date:"d/m/Y" }} ({{ data.age }}){% else %}Non renseignée{% endif %}</strong></p>
<p>Numéro CAF ou MSA : <strong>{{ data.matricule|default:"Non renseigné" }}</strong></p>
</div>
</div>
{% endwith %}
{% endif %}

View File

@ -0,0 +1,57 @@
{% load combo %}
<h2>Transport</h2>
<div class="cell--body">
{% if json.data and not json.err %}
{% with json.data as data %}
<h3>Synthèse</h3>
{% if data.cumuls %}
<ul>
{% for cumul in data.cumuls %}
<li>{{ cumul.type }} : {{ cumul.duree }}</li>
{% endfor %}
</ul>
{% endif %}
{% if data.attestations %}
<div class="pk-table-wrapper">
<table class="pk-data-table pk-table-headers pk-table-borders pk-table-zebra" style="width:100%;">
<tr>
<th>Transporteur</th>
<th>Type</th>
<th>Statut</th>
<th>Durée proposée</th>
<th>Durée validée</th>
<th>Durée réelle</th>
<th>Date de début</th>
<th>Date de fin</th>
<th>Date attestation</th>
</tr>
{% for att in data.attestations %}
<tr>
<td>{{ att.libelle }}</td>
<td>{{ att.type }}</td>
<td>{{ att.statut }}</td>
<td>{% if att.duree_prop %}{{ att.duree_prop }}{% endif %}</td>
<td>{% if att.duree_val %}{{ att.duree_val }}{% endif %}</td>
<td>{% if att.duree %}{{ att.duree }}{% endif %}</td>
<td>{{ att.date_deb_grat|date:"d/m/Y"|default:"" }}</td>
<td>{{ att.date_fin_grat|date:"d/m/Y"|default:"" }}</td>
<td>{{ att.date_edit_attest|date:"d/m/Y"|default:"" }}</td>
</tr>
{% endfor %}
</table>
</div>
{% endif %}
{% endwith %}
{% else %}
<p>Aucune information.</p>
{% endif %}
</div>

View File

@ -0,0 +1,115 @@
{% load combo %}
{% if not json.err and json.data %}
{% with json.data as data %}
<h2>{{ data.plateforme.nom }}</h2>
<div class="cell--body">
<div class="grid-1-1">
<p>Référent : <strong>{% if data.referent.nom %}{{ data.referent.nom|upper }} {{ data.referent.prenom|default:"" }}{% else %}Non renseigné{% endif %}</strong></p>
<p>Commentaire : <strong>{{ data.commentaire_ref|default:"Aucun"|linebreaks }}</strong></p>
</div>
<div class="grid-1-2">
{% if data.actif == "Non" %}<p><span class="pastille-rouge">Inactif</span></p>{% endif %}
<p>Civilité : <strong>{{ data.civilite|default:"" }}</strong></p>
<p>Nom : <strong>{{ data.nom|upper|default:"Non renseigné" }}</strong></p>
<p>Nom de naissance : <strong>{{ data.nomnaiss|default:"" }}</strong></p>
<p>Prénom : <strong>{{ data.prenom|default:"Non renseigné" }}</strong></p>
<p>né(e) le : <strong>{% if data.date_naissance %}{{ data.date_naissance|date:"d/m/Y" }} ({{ data.age }}){% else %}Non renseignée{% endif %}</strong></p>
<p>Numéro CAF ou MSA : <strong>{{ data.matricule|default:"Non renseigné" }}</strong></p>
</div>
<div class="grid-1-2">
<p>Situation familiale : <strong>{% if data.situation_familiale.libelle %}{{ data.situation_familiale.libelle }}{% if data.situation_familiale.date_debut %} depuis le {{ data.situation_familiale.date_debut|date:"d/m/Y" }}{% endif %}{% else %}Non renseignée{% endif %}</strong></p>
<p>Conjoint :&nbsp;
{% if data.actif == "Oui" %}
{% if data.conjoint.nom %}
<strong>{{ data.conjoint.nom|upper }} {{ data.conjoint.prenom|default:"(Pas de prénom renseigné)" }}{% if data.conjoint.age %} - {{ data.conjoint.age }}{% endif %}</strong>
{% else %}
<strong>Aucun</strong>
{% endif %}
{% else %}
Informations non disponibles, allocataire inactif.
{% endif %}
</p>
<p>Enfants :&nbsp;
{% if data.actif == "Oui" %}
{% if data.enfants %}<strong>{{ data.enfants|length }}</strong>
<strong>
<ul>
{% for enfant in data.enfants %}<li>{{ enfant.nom|upper|default:"Pas de nom renseigné" }} {{ enfant.prenom|default:"Pas de prénom renseigné" }}{% if enfant.age %} - {{ enfant.age }}{% endif %}</li>{% endfor %}
</ul>
</strong>
{% else %}
<strong>Aucun</strong>
{% endif %}
{% else %}
Informations non disponibles, allocataire inactif.
{% endif %}
</p>
</div>
<div class="grid-1-1">
<div class="pk-table-wrapper">
<table class="pk-data-table pk-table-headers pk-table-borders pk-table-zebra">
<tr>
<th style="width:50%;">Coordonnées</th>
<th>Adresse</th>
</tr>
<tr>
<td>
{% if not data.telephone %}<p>Aucun téléphone renseigné.&nbsp;&nbsp;<a href="{{ eservices_url }}extranet-rsa/mettre-a-jour-les-telephones-du-beneficiaire/?plateforme={{ plateforme_id }}&brsa={{ brsa_id }}&cancelurl={{ portal_url }}portail-extranet-rsa/plateforme/{{ plateforme_id }}/beneficiaire-rsa/{{ brsa_id }}/">✎ Modifier</a></p>
{% else %}<p>Téléphones&nbsp;&nbsp;<a href="{{ eservices_url }}extranet-rsa/mettre-a-jour-les-telephones-du-beneficiaire/?plateforme={{ plateforme_id }}&brsa={{ brsa_id }}&cancelurl={{ portal_url }}portail-extranet-rsa/plateforme/{{ plateforme_id }}/beneficiaire-rsa/{{ brsa_id }}/">✎ Modifier</a></p>
<ul>
{% for telephone in data.telephone %}
<li><strong><a href="tel:{{ telephone.numero }}">{{ telephone.numero }}</a>{% if telephone.commentaire %} - {{ telephone.commentaire }}{% endif %}</strong></li>
{% endfor %}
</ul>
{% endif %}
{% if not data.email %}<p>Aucun courriel renseigné.&nbsp;&nbsp;<a href="{{ eservices_url }}extranet-rsa/mettre-a-jour-les-courriels-du-beneficiaire/?plateforme={{ plateforme_id }}&brsa={{ brsa_id }}&cancelurl={{ portal_url }}portail-extranet-rsa/plateforme/{{ plateforme_id }}/beneficiaire-rsa/{{ brsa_id }}/">✎ Modifier</a></p>
{% else %}<p>Courriels&nbsp;&nbsp;<a href="{{ eservices_url }}extranet-rsa/mettre-a-jour-les-courriels-du-beneficiaire/?plateforme={{ plateforme_id }}&brsa={{ brsa_id }}&cancelurl={{ portal_url }}portail-extranet-rsa/plateforme/{{ plateforme_id }}/beneficiaire-rsa/{{ brsa_id }}/">✎ Modifier</a></p>
<ul>
{% for email in data.email %}
<li><strong><a href="mailto:{{ email.email }}">{{ email.email }}</a>{% if email.commentaire %} - {{ email.commentaire }}{% endif %}</strong></li>
{% endfor %}
</ul>
{% endif %}
</td>
<td>
<strong><p>
{% if data.adresse.adr2 %}{{ data.adresse.adr2 }}<br/>{% endif %}
{% if data.adresse.adr3 %}{{ data.adresse.adr3 }}<br/>{% endif %}
{% if data.adresse.adr4 %}{{ data.adresse.adr4 }}<br/>{% endif %}
{% if data.adresse.adr5 %}{{ data.adresse.adr5 }}<br/>{% endif %}
{% if data.adresse.adr6 %}{{ data.adresse.adr6 }}{% endif %}
</p></strong>
</td>
</tr>
</table>
</div>
</div>
<div class="grid-1-1">
<div class="infonotice">
<p><strong>Situation</strong></p>
<p>PI : <strong>{{ data.lib_code_pi|default:"Non renseigné" }} ({{ data.code_pi|default:"Non renseigné" }})</strong></p>
<p>N° demande RSA : <strong>{{ data.numdemrsa|default:"Non renseigné" }}</strong></p>
<p>Date de la demande : <strong>{{ data.droit.date_demande|date:"d/m/Y"|default:"Non renseignée" }}</strong></p>
<p>Soumis à droits et devoirs : <strong>{{ data.droit.toppersdrodevorsa|default:"Non renseigné" }}</strong></p>
<p>État des droits : <strong>{{ data.droit.etat|default:"Non renseigné" }}</strong></p>
<p>Motif : <strong>{{ data.droit.motif|default:"Non renseigné" }}</strong></p>
</div>
</div>
</div>
{% endwith %}
{% endif %}

View File

@ -0,0 +1,36 @@
{% load combo %}
{% if not json.err and not plateforme.err and plateforme.data %}
{% with data=json.data %}
<h2>{{ plateforme.data.name }}</h2>
<div class="cell--body">
<h3>Coordonateurs</h3>
<div class="pk-table-wrapper">
<table class="pk-data-table pk-table-headers pk-table-borders pk-table-zebra" style="width:100%;">
<tr>
<th>Nom</th>
<th>Prénom</th>
<th>Courriel</th>
<th>Téléphone</th>
{% for acc in data %}
{% if acc.role == "Coordonnateur" %}
</tr>
<td>{{ acc.nom|default:"" }}</td>
<td>{{ acc.prenom|default:"" }}</td>
<td>{% if acc.email %}<a href="mailto:{{ acc.email }}">{{ acc.email }}</a>{% endif %}</td>
<td>{% if acc.tel %}<a href="tel:{{ acc.tel }}">{{ acc.tel }}</a>{% endif %}</td>
</tr>
{% endif %}
{% endfor %}
</table>
</div>
</div>
{% endwith %}
{% endif %}

View File

@ -0,0 +1,38 @@
{% load combo %}
{% if json.data and not json.err %}
<h2>Rechercher un bénéficiaire</h2>
<div class="cell--body">
<form method="get" action="/portail-extranet-rsa/plateforme/{{ plateforme_id }}/recherche-de-beneficiaires/0/">
<div class="grid-1-1">
<div class="title"><label>Numéro CAF ou MSA :</label></div>
<div class="content"><input name="numero_caf" type="text" value="{{ request.GET.numero_caf|default:'' }}" /></div>
</div>
<div class="grid-1-1">
<div class="title"><label>Nom :</label></div>
<div class="content"><input name="nom" type="text" value="{{ request.GET.nom|default:'' }}" /></div>
</div>
<div class="grid-1-1">
<div class="title"><label>Référent :</label></div>
<div class="content">
<select name="referent">
<option value="" data-hint=""></option>
{% for r in json.data %}
<option value="{{ r.id }}" {% if request.GET.referent|decimal == r.id %}selected="selected"{% endif %}>{{ r.nom }} {{ r.prenom }}</option>
{% endfor %}
</select>
</div>
</div>
<div class="grid-1-1">
<div class="buttons submit"><div class="SubmitWidget widget submit-button ">
<div class="content"><button name="submit" value="Rechercher">Rechercher</button></div>
</div>
</div>
</form>
</div>
{% endif %}

View File

@ -0,0 +1,32 @@
{% include "./rsa13-pagination.html" %}
<div class="pk-table-wrapper">
<table class="pk-data-table pk-table-headers pk-table-borders pk-table-zebra beneficiaires-rsa" style="width:100%;">
<tr>
<th>N° CAF ou MSA</th>
<th>Nom</th>
<th>Prénom</th>
<th>Date de naissance</th>
<th>Référent</th>
<th>Date de début</th>
<th>Droits Devoirs</th>
<th>Consulté</th>
<th>Sortie</th>
</tr>
{% for beneficiaire in json.data %}
<tr>
<td><a href="../../beneficiaire-rsa/{{ beneficiaire.id }}/">{{ beneficiaire.matricule }}{% if beneficiaire.actif == "Non" %}&nbsp;&nbsp;<span class="pastille-rouge">Inactif</span>{% endif %}</a></td>
<td><a href="../../beneficiaire-rsa/{{ beneficiaire.id }}/">{{ beneficiaire.nom|upper }}</a></td>
<td><a href="../../beneficiaire-rsa/{{ beneficiaire.id }}/">{{ beneficiaire.prenom }}</a></td>
<td>{{ beneficiaire.date_naissance|date:"d/m/Y" }}</td>
<td>{{ beneficiaire.referent|default:"" }} <a href="{{ eservices_url }}extranet-rsa/modification-du-referent/?plateforme={{ plateforme_id }}&brsa={{ beneficiaire.id }}&affectation={{ beneficiaire.affectation }}&cancelurl={{ portal_url }}portail-extranet-rsa/plateforme/{{ plateforme_id }}/beneficiaire-rsa/{{ beneficiaire.id }}/affectations/"></a></td>
<td>{{ beneficiaire.date_deb_affectation|date:"d/m/Y" }}</td>
<td>{{ beneficiaire.toppersdrodevorsa }}</td>
<td>{{ beneficiaire.consulte }}</td>
<td><a href="{{ eservices_url }}extranet-rsa/reaffectation/?plateforme={{ plateforme_id }}&brsa={{ beneficiaire.id }}&cancelurl={{ portal_url }}portail-extranet-rsa/plateforme/{{ plateforme_id }}/beneficiaire-rsa/{{ beneficiaire.id }}/affectations/"></a></td>
</tr>
{% endfor %}
</table>
</div>
{% include "./rsa13-pagination.html" %}

View File

@ -0,0 +1,11 @@
{% load combo %}
{% if json.data %}
{% for p in json.data %}
{% if p.id|decimal == plateforme_id|decimal and p.role == "Coordonnateur" %}
<div class="links-list">
<ul><li><a href="coordination">Coordination</a></li></ul>
</div>
{% endif %}
{% endfor %}
{% endif %}

View File

@ -0,0 +1,24 @@
{% load combo %}
{% if not json.err and not plateforme.err and plateforme.data %}
<h2>{{ plateforme.data.name }}</h2>
<div class="cell--body">
<h3>{{ json.query }} ({{ json.count }})</h3>
{% if json.data %}
<form method="post" action="{% url 'combo-public-ajax-page-cell' page_pk=cell.page.id cell_reference=cell.get_reference %}{% if request.GET.ctx %}?ctx={{ request.GET.ctx|urlencode }}{% endif %}">
<input type="hidden" name="action" value="csv"/>
<input type="hidden" name="plateforme_id" value="{{ plateforme_id }}"/>
<input type="hidden" name="query" value="{{ query_id }}"/>
<button>Exporter</button>
</form>
{% include "./rsa13-fragment-liste-beneficiaires.html" %}
{% endif %}
</div>
{% endif %}

View File

@ -0,0 +1,12 @@
<h2><a href="{{ from }}">Fiche du bénéficiaire</a></h2>
<div class="links-list">
<ul>
<li><a href="{{ from }}affectations/">Affectations</a></li>
<li><a href="{{ from }}contrats/">Contrats</a></li>
<li><a href="{{ from }}actions/">Actions</a></li>
<li><a href="{{ from }}transport/">Transport</a></li>
<li><a href="{{ from }}fonds-d-aide/">Fonds d'aide</a></li>
<li><a href="{{ from }}convocations/">Convocations</a></li>
<li><a href="{{ from }}pole-emploi/">Pôle Emploi</a></li>
</ul>
</div>

View File

@ -0,0 +1,17 @@
{% if json.pages|decimal > 1 %}
<p style="text-align: center;">
{% if json.page %}
<a href=".?nom={{ request.GET.nom }}&numero_caf={{ request.GET.numero_caf }}&referent={{ request.GET.referent }}"><<</a>
&nbsp;&nbsp;
<a href=".?page={{ json.page|subtract:"1" }}&nom={{ request.GET.nom }}&numero_caf={{ request.GET.numero_caf }}&referent={{ request.GET.referent }}"><</a>
&nbsp;&nbsp;&nbsp;
{% endif %}
Page {{ json.page|add:"1" }} / {{ json.pages }} de {{ json.data|first|get:"nom"|upper }} à {{ json.data|last|get:"nom"|upper }} ({{ json.data|length }})
{% if json.page|add:"1" != json.pages|decimal %}
&nbsp;&nbsp;&nbsp;
<a href=".?page={{ json.page|add:"1" }}&nom={{ request.GET.nom }}&numero_caf={{ request.GET.numero_caf }}&referent={{ request.GET.referent }}">></a>
&nbsp;&nbsp;
<a href=".?page={{ json.pages|subtract:"1" }}&nom={{ request.GET.nom }}&numero_caf={{ request.GET.numero_caf }}&referent={{ request.GET.referent }}">>></a>
{% endif %}
</p>
{% endif %}

View File

@ -0,0 +1,29 @@
{% load combo %}
{% if json.data and not json.err %}
{% with json.data as plateforme %}
<h2>{{ plateforme.name }}</h2>
<div class="cell--body">
<p>☎ {{ plateforme.tel|default:"Pas de numéro de téléphone renseigné." }}</p>
<h3>Adresse</h3>
<p>
{% if plateforme.adr1 %}{{ plateforme.adr1 }}<br/>{% endif %}
{% if plateforme.adr2 %}{{ plateforme.adr2 }}<br/>{% endif %}
{% if plateforme.adr3 %}{{ plateforme.adr3 }}<br/>{% endif %}
{% if plateforme.adr4 %}{{ plateforme.adr4 }}<br/>{% endif %}
{% if plateforme.adr5 %}{{ plateforme.adr5 }}<br/>{% endif %}
{% if plateforme.adr6 %}{{ plateforme.adr6 }}{% endif %}
</p>
</div>
<div class="links-list">
<ul>
{% for q in plateforme.queries %}
<li><a href="./liste-des-beneficiaires/{{ q.id }}/">{{ q.name }} ({{ q.count }})</a></li>
{% endfor %}
</ul>
</div>
{% endwith %}
{% endif %}

View File

@ -0,0 +1,14 @@
{% load combo %}
<h2>Vos plateformes</h2>
<div class="links-list">
{% if json.err or not json.data %}
<p>Vous n'avez accès à aucune plateforme.</p>
{% else %}
<ul>
{% for plateforme in json.data %}
<li><a href="plateforme/{{ plateforme.id }}">{{ plateforme.name }} ({{ plateforme.role }})</a></li>
{% endfor %}
</ul>
{% endif %}
</div>

View File

@ -0,0 +1,15 @@
{% load combo %}
{% if not plateforme.err and plateforme.data %}
<h2>{{ plateforme.data.name }}</h2>
<div class="cell--body">
<h3>Recherche</h3>
{% if not json.err %}
{% include "./rsa13-fragment-liste-beneficiaires.html" %}
{% else %}
<p>Aucun bénéficiaire trouvé.</p>
{% endif %}
</div>
{% endif %}