Changes for page Homeopaths

Last modified by Jip-jan Alunkel on March 14, 20:13

From version 8.3
edited by Jip-jan Alunkel
on December 06, 00:29
Change comment: Renamed from xwiki:practices.WebHome
To version 4.2
edited by Jip-jan Alunkel
on November 28, 15:08
Change comment: Renamed from xwiki:practices.WebHome

Summary

Details

Page properties
Content
... ... @@ -9,38 +9,15 @@
9 9  {{html wiki="true" clean="false"}}
10 10  #set($form_start = {
11 11   "id": "homeoworld_form",
12 - "product": "practice",
12 + "product": "case",
13 13   "method": "post",
14 14   "url": "",
15 15   "use_captcha": "false"
16 16  })
17 17  #createFormStart($form_start)
18 -#set($country = {
19 - "id" : "country",
20 - "type" : "text",
21 - "required" : "true",
22 - "label" : "Country of practice residence",
23 - "aria-label" : "Choose the country",
24 - "placeholder" : "$services.localization.render('homeopaths.word.country.placeholder')",
25 - "data-set-space": "true",
26 - "data-error-response-type" : "use_label_definite_1",
27 - "data-auto-first-capital" : "true",
28 - "data-query-type" : "JSON",
29 - "data-query-reference" : "assets.pagemaker.JSON.countries",
30 - "data-query-list-type" : "suggest-select",
31 - "data-query-list-header" : "$services.localization.render('pagemaker.line.suggest_select_list')",
32 - "data-query-list-contents" : "value",
33 - "data-query-list-editable" : "false",
34 - "data-create-xobj" : "true",
35 - "data-xobj-classname" : "cases.Code.casesClass",
36 - "data-xobj-fieldname" : "country",
37 - "help-block" : 'Type and select the country where your practice resides.'
38 -})
39 -#createFormElement($country)
40 -
41 41  #set($address = {
42 42   "id" : "address",
43 - "type" : "address",
20 + "type" : "text",
44 44   "required" : "true",
45 45   "label" : "Address of your practice",
46 46   "aria-label" : "Input and select the address of your practice",
... ... @@ -58,6 +58,16 @@
58 58   "data-xobj-fieldname" : "address",
59 59   "help-block" : 'Input and select the address of your practice.'
60 60  })
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 +
61 61  #createFormElement($address)
62 62  #set($submit = {
63 63   "id" : "create_case",