Modifications pour le document Homeopaths

Modifié par Jip-jan Alunkel le mars 14, 20:13

Depuis la version 4.1
modifié par Jip-jan Alunkel
sur novembre 28, 14:47
Commentaire de modification : Renamed from xwiki:practices.WebHome
À la version 4.2
modifié par Jip-jan Alunkel
sur novembre 28, 15:08
Commentaire de modification : Renamed from xwiki:practices.WebHome

Résumé

Détails

Propriétés de la Page
Contenu
... ... @@ -24,8 +24,8 @@
24 24   "placeholder" : "$services.localization.render('homeopaths.multiword.address.placeholder')",
25 25   "data-error-response-type" : "use_label_definite_1",
26 26   "data-auto-first-capital" : "true",
27 - "data-query-type" : "JSON",
28 - "data-query-reference" : "assets.pagemaker.JSON.remedies",
27 + "data-query-type" : "address",
28 + "data-query-reference" : "",
29 29   "data-query-list-type" : "suggest-select",
30 30   "data-query-list-header" : "$services.localization.render('pagemaker.line.suggest_select_list')",
31 31   "data-query-list-contents" : "value/key",
... ... @@ -35,6 +35,16 @@
35 35   "data-xobj-fieldname" : "address",
36 36   "help-block" : 'Input and select the address of your practice.'
37 37  })
38 +
39 +var requestOptions = {
40 + method: 'GET',
41 +};
42 +
43 +fetch("https://api.geoapify.com/v1/geocode/autocomplete?text=Mosco&apiKey=6b74bd47f4204990b23386d8e8a0952b", requestOptions)
44 + .then(response => response.json())
45 + .then(result => console.log(result))
46 + .catch(error => console.log('error', error));
47 +
38 38  #createFormElement($address)
39 39  #set($submit = {
40 40   "id" : "create_case",