Projet

Général

Profil

0002-alpes-maritimes-2018-add-search-services-49120.patch

Benjamin Dauvergne, 04 décembre 2020 12:28

Télécharger (1,92 ko)

Voir les différences:

Subject: [PATCH 2/2] alpes-maritimes-2018: add search services (#49120)

 static/alpes-maritimes-2018/config.json | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
static/alpes-maritimes-2018/config.json
10 10
                  "label": "Pictogramme dossier handicap"
11 11
              }
12 12
          },
13
          "COMBO_SEARCH_SERVICES": {
14
            "users": {
15
              "url": "{{eservices_url}}api/users/?q=%(q)s{% if user_nameid %}&NameID={{ user_nameid }}{% endif %}",
16
              "label": "Usagers",
17
              "signature": true,
18
              "hit_url_template": "fiche-usager/{{user_name_identifier_0}}/",
19
              "hit_label_template": "{{text}}",
20
              "hit_description_template": "{% if user_var_city %}{{ user_var_address|default:'' }} {{ user_var_city }}{% endif %}"
21
            },
22
            "users-senior-a2": {
23
              "url": "{{ idp_url }}api/users/?ou__slug=senior&q=%(q)s",
24
              "label": "Seniors",
25
              "signature": true,
26
              "data_key": "results",
27
              "hit_url_template": "page-senior/{{ uuid }}/",
28
              "hit_label_template": "{{ last_name|upper }} {{ first_name }} {% if birthdate %} - {{ birthdate|date:'d/m/Y' }}{% endif %}",
29
              "hit_description_template": "{% if address or zipcode or city %}📨 {% endif %}{% if address %}{{ address }} {% endif %}{% if zipcode %}{{ zipcode }} {% endif %}{% if city %}{{ city }}{% endif %}"
30
            }
31
          },
13 32
          "JSON_CELL_TYPES.update": {
14 33
              "desappairage": {
15 34
                  "form": [
16
-