Projet

Général

Profil

Development #35131

Mis à jour par Mikaël Ates il y a plus de 4 ans

Page concernée : https://departement06.test.entrouvert.org/manage/pages/85/

get_association_link_means utilisés sur la page de détail de l'association ne permet pas d'afficher le nom du contact. Il faut pour cela un nouveau WS de lecture du contact : #35129.

Lorsque celui-ci sera disponible il faudra fusionner les cellules car l'appel au WS de lecture du contact prendra en paramètre l'id du contact indiqué sur le Tiers.

On aura ainsi le settings :

<pre>
"informations-association": "association-details": {
"name": "Informations "Subventions : détails de l'association",
"url": "{{ passerelle_url }}astregs/{{slug}}/get-association-by-id?association_id={{request.GET.association_id}}&NameID={{user_nameid}}", }}astregs/test/get-association-by-id?association_id={{request.GET.association_id}}&NameID={{user_nameid}}",
... "varnames": [],
"log_errors": false,
"cache_duration": 0,
"force_async": true,
"additional-data": [
{
"key": "json_contact",
"url": "{{ passerelle_url }}astregs/{{slug}}/get-contact?contact_id={{json.data.EncodeKeyContact}}, }}get-contact-by-id?contact_id={{json.data.EncodeKeyContact}}&NameID={{user_nameid}}",
"cache_duration": 0,
"log_errors": false,
"timeout": 5

}
]
}
</pre>

Puis templates/variants/alpes-maritimes-2018/combo/json/informations-association.html (Ajouter à l'existant <h3>Moyens de contact</h3> et le contenu en dessous) une cellule contenant quelque chose comme :

<pre>
{% if json.data %}
<div class="cell textcell pink-header">
<div>


<h2>{{json.data.NomEnregistrement}}</h2>

<p>

<a class="turquoise-button" href="{{ portal_url }}associations/">Retour</a>
href="https://departement06.test.entrouvert.org/associations/">Retour</a>
&nbsp;
<a class="turquoise-button" href="{{ eservices_url }}associations/modification-des-informations-relatives-a-mon-association/?association_id={{json.data.CodeTiers}}&cancelurl={{ portal_url }}associations/">Modifier href="https://demarches-departement06.test.entrouvert.org/associations/modification-des-informations-relatives-a-mon-association/?association_id={{json.data.CodeTiers}}&cancelurl=https://departement06.test.entrouvert.org/associations/">Modifier les informations</a>

</p>
<p>SIRET

<p>&nbsp;</p>
<p>
SIRET
: <strong>{{json.data.NumeroSiret}} {{json.data.NumeroSiretFin }}</strong><br/>

{% if json.data.Sigle %}Sigle : <strong>{{json.data.Sigle}}</strong><br/>{% endif %}

{% if json.data.NumeroTelephone %}Numéro de téléphone : <strong>{{json.data.NumeroTelephone}}</strong><br/>{% endif %}

{% if json.data.SiteWeb %}Site Web : <strong>{{json.data.SiteWeb}}</strong>{% <strong>{{json.data.SiteWeb}}</strong><br/>{% endif %}
</p>
<p>Adresse

<br/>Adresse
:<br/>
<strong>{%

<strong>
{%
if json.data.AdresseLibelleRue %}{{ json.data.AdresseLibelleRue }}<br/>{% %}{{json.data.AdresseLibelleRue}}<br/>{% endif %}

{% if json.data.AdresseComplementVoie %}{{ json.data.AdresseComplementVoie }}<br/>{% %}{{json.data.AdresseComplementVoie}}<br/>{% endif %}

{% if json.data.AdresseCodePostal %}{{ json.data.AdresseCodePostal }}{% %}{{json.data.AdresseCodePostal}} {% endif %}

{% if json.data.AdresseBureauDistributeur %}{{ json.data.AdresseBureauDistributeur }}<br/>{% %}{{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><br/>
</p>
{% else %}
<p>Aucun Aucun contact n'est renseigné.</p> renseigné.
{% endif %}

</div>
</div>

{% endif %}
</pre>

Supprimer la cellule contacts-association et le template associé.

Retour