Исходный код вики Homeopaths

Версия 5.1 от Jip-jan Alunkel на ноября 28, 15:08

Последние авторы
1 {{include reference="assets.pagemaker.macros"/}}
2
3 {{velocity}}
4 #set($discard = $services.localization.use('document', 'cases.Code.translations'))
5 #set($discard = $services.localization.use('document', 'assets.pagemaker.translations'))
6 #set($discard = $xwiki.ssx.use('assets.pagemaker.WebHome', {'minify': false}))
7 #set($discard = $xwiki.jsx.use('assets.pagemaker.WebHome', {'minify': false}))
8
9 {{html wiki="true" clean="false"}}
10 #set($form_start = {
11 "id": "homeoworld_form",
12 "product": "case",
13 "method": "post",
14 "url": "",
15 "use_captcha": "false"
16 })
17 #createFormStart($form_start)
18 #set($address = {
19 "id" : "address",
20 "type" : "text",
21 "required" : "true",
22 "label" : "Address of your practice",
23 "aria-label" : "Input and select the address of your practice",
24 "placeholder" : "$services.localization.render('homeopaths.multiword.address.placeholder')",
25 "data-error-response-type" : "use_label_definite_1",
26 "data-auto-first-capital" : "true",
27 "data-query-type" : "address",
28 "data-query-reference" : "",
29 "data-query-list-type" : "suggest-select",
30 "data-query-list-header" : "$services.localization.render('pagemaker.line.suggest_select_list')",
31 "data-query-list-contents" : "value/key",
32 "data-query-list-editable" : "false",
33 "data-create-xobj" : "true",
34 "data-xobj-classname" : "homeopaths.Code.homeopathsClass",
35 "data-xobj-fieldname" : "address",
36 "help-block" : 'Input and select the address of your practice.'
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
48 #createFormElement($address)
49 #set($submit = {
50 "id" : "create_case",
51 "button-text" : "Submit",
52 "help-block" : "Please remind yourself to always anonymize the case."
53 })
54 #createSubmit($submit)
55 #set($form_end = {
56 "use_captcha": "false"
57 })
58 #createFormEnd($form_end)