Projet

Général

Profil

0001-alpes-maritimes-2018-display-association-d-tails-and.patch

Serghei Mihai, 28 août 2019 15:49

Télécharger (4,55 ko)

Voir les différences:

Subject: [PATCH] =?UTF-8?q?alpes-maritimes-2018:=20display=20association?=
 =?UTF-8?q?=20d=C3=A9tails=20and=20contacts=20on=20the=20same=20page=20(#3?=
 =?UTF-8?q?5131)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

 static/alpes-maritimes-2018/config.json        | 18 +++++-------------
 .../combo/json/contacts-association.html       | 17 -----------------
 .../combo/json/informations-association.html   | 12 ++++++++++++
 3 files changed, 17 insertions(+), 30 deletions(-)
 delete mode 100644 templates/variants/alpes-maritimes-2018/combo/json/contacts-association.html
static/alpes-maritimes-2018/config.json
92 92
                  "varnames": ["dossier"],
93 93
                  "url": "{{ passerelle_url }}atos-genesys/genesys-prod/dossiers?NameID={{user_nameid}}&link_id={{ dossier }}"
94 94
              },
95
              "contacts-association": {
96
                  "cache_duration": 1,
97
                  "name": "Contacts association",
98
                  "form": [
99
                    {
100
                      "label": "Identifiant du connecteur",
101
                      "varname": "slug",
102
                      "required": true
103
                    }
104
                  ],
105
                  "varnames": ["association_id"],
106
                  "url": "{{ passerelle_url }}astregs/{{ slug }}/get-association-link-means?association_id={{ association_id }}&NameID={{ user_nameid }}"
107
              },
108 95
              "informations-association": {
109 96
                  "cache_duration": 1,
110 97
                  "name": "Informations de l'association",
......
115 102
                      "required": true
116 103
                    }
117 104
                  ],
105
                  "additional-data": [
106
                    {"key": "json_contact",
107
                     "url": "{{ passerelle_url }}astregs/{{ slug }}/get-contact?contact_id={{ json.data.EncodeKeyContact }}"
108
                    }
109
                  ],
118 110
                  "varnames": ["association_id"],
119 111
                  "url": "{{ passerelle_url }}astregs/{{ slug }}/get-association-by-id?association_id={{ association_id }}&NameID={{ user_nameid }}"
120 112
              },
templates/variants/alpes-maritimes-2018/combo/json/contacts-association.html
1
<div class="cell textcell pink-header">
2
  <div>
3
    <h3>Moyens de contact</h3>
4
    <p>
5
      {% if json.data %}
6
      {% for canal in json.data %}
7
      {% if canal.type == "email" %}
8
      Courriel : <strong>{{canal.value}}</strong><br/>{% endif%}
9
      {% if canal.type == "mobile" %}Téléphone : <strong>{{canal.value}}</strong><br/>{% endif%}
10
      {% if canal.type == "mail" %}Adresse : <strong>{{canal.value}}</strong><br/>{% endif%}
11
      {% endfor %}
12
      {% else %}
13
      Aucun moyen de contact.
14
      {% endif %}
15
    </p>
16
  </div>
17
</div>
templates/variants/alpes-maritimes-2018/combo/json/informations-association.html
18 18
        {% if json.data.AdresseBureauDistributeur %}{{ json.data.AdresseBureauDistributeur }}<br/>{% endif %}
19 19
      </strong>
20 20
    </p>
21
    <h3>Moyens de contact</h3>
22
      {% if json_contact.data %}
23
        <p>
24
          <strong>{{json_contact.data.Prenom}} {{json_contact.data.Nom}}</strong><br/>
25
          Courriel : <strong>{{json_contact.data.AdresseMail|default:"Non renseigné"}}</strong><br/>
26
          Téléphone : <strong>{{json_contact.data.TelephoneMobile|default:"Non renseigné"}}</strong><br/>
27
          Adresse : <strong>{{json_contact.data.RueVoie|default:""}} {{json_contact.data.CodePostal|default:""}} {{json_contact.data.Ville|default:""}}</strong>
28
        </p>
29
        {% else %}
30
          <p>Aucun contact n'est renseigné.</p>
31
        {% endif %}
21 32
  </div>
22 33
</div>
34

  
23 35
{% endif %}
24
-