alpes-maritimes-2018: display association details and contacts on the same page (#35131)

This commit is contained in:
Serghei Mihai 2019-08-28 15:47:10 +02:00
parent 5c68a5120d
commit b68be714ef
3 changed files with 17 additions and 30 deletions

View File

@ -92,19 +92,6 @@
"varnames": ["dossier"],
"url": "{{ passerelle_url }}atos-genesys/genesys-prod/dossiers?NameID={{user_nameid}}&link_id={{ dossier }}"
},
"contacts-association": {
"cache_duration": 1,
"name": "Contacts association",
"form": [
{
"label": "Identifiant du connecteur",
"varname": "slug",
"required": true
}
],
"varnames": ["association_id"],
"url": "{{ passerelle_url }}astregs/{{ slug }}/get-association-link-means?association_id={{ association_id }}&NameID={{ user_nameid }}"
},
"informations-association": {
"cache_duration": 1,
"name": "Informations de l'association",
@ -115,6 +102,11 @@
"required": true
}
],
"additional-data": [
{"key": "json_contact",
"url": "{{ passerelle_url }}astregs/{{ slug }}/get-contact?contact_id={{ json.data.EncodeKeyContact }}"
}
],
"varnames": ["association_id"],
"url": "{{ passerelle_url }}astregs/{{ slug }}/get-association-by-id?association_id={{ association_id }}&NameID={{ user_nameid }}"
},

View File

@ -1,17 +0,0 @@
<div class="cell textcell pink-header">
<div>
<h3>Moyens de contact</h3>
<p>
{% if json.data %}
{% for canal in json.data %}
{% if canal.type == "email" %}
Courriel : <strong>{{canal.value}}</strong><br/>{% endif%}
{% if canal.type == "mobile" %}Téléphone : <strong>{{canal.value}}</strong><br/>{% endif%}
{% if canal.type == "mail" %}Adresse : <strong>{{canal.value}}</strong><br/>{% endif%}
{% endfor %}
{% else %}
Aucun moyen de contact.
{% endif %}
</p>
</div>
</div>

View File

@ -18,6 +18,18 @@
{% if json.data.AdresseBureauDistributeur %}{{ json.data.AdresseBureauDistributeur }}<br/>{% endif %}
</strong>
</p>
<h3>Moyens de contact</h3>
{% if json_contact.data %}
<p>
<strong>{{json_contact.data.Prenom}} {{json_contact.data.Nom}}</strong><br/>
Courriel : <strong>{{json_contact.data.AdresseMail|default:"Non renseigné"}}</strong><br/>
Téléphone : <strong>{{json_contact.data.TelephoneMobile|default:"Non renseigné"}}</strong><br/>
Adresse : <strong>{{json_contact.data.RueVoie|default:""}} {{json_contact.data.CodePostal|default:""}} {{json_contact.data.Ville|default:""}}</strong>
</p>
{% else %}
<p>Aucun contact n'est renseigné.</p>
{% endif %}
</div>
</div>
{% endif %}