Modifiche per il documento Homeopaths

Ultima modifica di Jip-jan Alunkel il marzo 14, 20:13

Dalla versione 6.1
modificato da Jip-jan Alunkel
il novembre 28, 15:10
Cambia il commento: Renamed from xwiki:practices.WebHome
Alla versione 8.12
modificato da Jip-jan Alunkel
il dicembre 08, 00:08
Cambia il commento: Renamed from xwiki:practices.WebHome

Summary

Details

Page properties
Content
... ... @@ -7,17 +7,71 @@
7 7  #set($discard = $xwiki.jsx.use('assets.pagemaker.WebHome', {'minify': false}))
8 8  
9 9  {{html wiki="true" clean="false"}}
10 +<div id="homeopaths_map"></div>
11 +
12 +<script>
13 +var map = L.map('homeopaths_map').setView([51.505, -0.09], 13);
14 +</script>
15 +
10 10  #set($form_start = {
11 11   "id": "homeoworld_form",
12 - "product": "case",
18 + "product": "practice",
13 13   "method": "post",
14 14   "url": "",
15 15   "use_captcha": "false"
16 16  })
17 17  #createFormStart($form_start)
24 +#set($practice_name = {
25 + "id" : "practice_name",
26 + "type" : "text",
27 + "required" : "true",
28 + "label" : "Name of your practice",
29 + "aria-label" : "Enter the name of your practice",
30 + "placeholder" : "$services.localization.render('homeopaths.wordgroup.practice_name.placeholder')",
31 + "data-pattern" : "^[a-zA-ZÀ-ÖÙ-öù-ÿĀ-žḀ-ỿ]+[a-zA-ZÀ-ÖÙ-öù-ÿĀ-žḀ-ỿ0-9- ]*$",
32 + "data-error-response-type" : "use_label_definite_1",
33 + "data-auto-first-capital" : "true",
34 + "data-query-type" : "XWQL",
35 + "data-query-reference" : "assets.pagemaker.XWQL.matchTitle",
36 + "data-query-scope" : "homeopaths",
37 + "data-query-list-type" : "suggest-negate",
38 + "data-query-list-header" : "$services.localization.render('pagemaker.line.suggest_negate_list')",
39 + "data-query-list-contents" : "value",
40 + "data-create-page" : "true",
41 + "help-block" : 'This will be used as the title of your practice page. The first character must be a letter.'
42 +})
43 +#createFormElement($practice_name)
44 +
45 +#set($country = {
46 + "id" : "country",
47 + "type" : "text",
48 + "required" : "true",
49 + "label" : "Country of practice residence",
50 + "aria-label" : "Choose the country",
51 + "placeholder" : "$services.localization.render('homeopaths.word.country.placeholder')",
52 + "data-set-space": "true",
53 + "data-parent-space": "homeopaths",
54 + "data-error-response-type" : "use_label_definite_1",
55 + "data-auto-first-capital" : "true",
56 + "data-query-type" : "JSON",
57 + "data-query-reference" : "assets.pagemaker.JSON.countries",
58 + "data-query-list-type" : "suggest-select",
59 + "data-query-list-header" : "$services.localization.render('pagemaker.line.suggest_select_list')",
60 + "data-query-list-contents" : "key",
61 + "data-query-list-editable" : "false",
62 + "help-block" : 'Type and select the country where your practice resides.'
63 +})
64 +#createFormElement($country)
65 +
66 +#*
67 + "data-create-xobj" : "true",
68 + "data-xobj-classname" : "homeopaths.Code.homeopathsClass",
69 + "data-xobj-fieldname" : "country",
70 +*#
71 +
18 18  #set($address = {
19 19   "id" : "address",
20 - "type" : "text",
74 + "type" : "address",
21 21   "required" : "true",
22 22   "label" : "Address of your practice",
23 23   "aria-label" : "Input and select the address of your practice",
... ... @@ -37,8 +37,8 @@
37 37  })
38 38  #createFormElement($address)
39 39  #set($submit = {
40 - "id" : "create_case",
41 - "button-text" : "Submit",
94 + "id" : "create_practice",
95 + "button-text" : "Add practice",
42 42   "help-block" : "Please remind yourself to always anonymize the case."
43 43  })
44 44  #createSubmit($submit)