Codice sorgente Wiki di Homeopaths

Version 8.14 by Jip-jan Alunkel on dicembre 08, 00:12

Show last authors
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="false" 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 L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', {
15 maxZoom: 19,
16 attribution: '&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'
17 }).addTo(map);
18 </script>
19
20 #set($form_start = {
21 "id": "homeoworld_form",
22 "product": "practice",
23 "method": "post",
24 "url": "",
25 "use_captcha": "false"
26 })
27 #createFormStart($form_start)
28 #set($practice_name = {
29 "id" : "practice_name",
30 "type" : "text",
31 "required" : "true",
32 "label" : "Name of your practice",
33 "aria-label" : "Enter the name of your practice",
34 "placeholder" : "$services.localization.render('homeopaths.wordgroup.practice_name.placeholder')",
35 "data-pattern" : "^[a-zA-ZÀ-ÖÙ-öù-ÿĀ-žḀ-ỿ]+[a-zA-ZÀ-ÖÙ-öù-ÿĀ-žḀ-ỿ0-9- ]*$",
36 "data-error-response-type" : "use_label_definite_1",
37 "data-auto-first-capital" : "true",
38 "data-query-type" : "XWQL",
39 "data-query-reference" : "assets.pagemaker.XWQL.matchTitle",
40 "data-query-scope" : "homeopaths",
41 "data-query-list-type" : "suggest-negate",
42 "data-query-list-header" : "$services.localization.render('pagemaker.line.suggest_negate_list')",
43 "data-query-list-contents" : "value",
44 "data-create-page" : "true",
45 "help-block" : 'This will be used as the title of your practice page. The first character must be a letter.'
46 })
47 #createFormElement($practice_name)
48
49 #set($country = {
50 "id" : "country",
51 "type" : "text",
52 "required" : "true",
53 "label" : "Country of practice residence",
54 "aria-label" : "Choose the country",
55 "placeholder" : "$services.localization.render('homeopaths.word.country.placeholder')",
56 "data-set-space": "true",
57 "data-parent-space": "homeopaths",
58 "data-error-response-type" : "use_label_definite_1",
59 "data-auto-first-capital" : "true",
60 "data-query-type" : "JSON",
61 "data-query-reference" : "assets.pagemaker.JSON.countries",
62 "data-query-list-type" : "suggest-select",
63 "data-query-list-header" : "$services.localization.render('pagemaker.line.suggest_select_list')",
64 "data-query-list-contents" : "key",
65 "data-query-list-editable" : "false",
66 "help-block" : 'Type and select the country where your practice resides.'
67 })
68 #createFormElement($country)
69
70 #*
71 "data-create-xobj" : "true",
72 "data-xobj-classname" : "homeopaths.Code.homeopathsClass",
73 "data-xobj-fieldname" : "country",
74 *#
75
76 #set($address = {
77 "id" : "address",
78 "type" : "address",
79 "required" : "true",
80 "label" : "Address of your practice",
81 "aria-label" : "Input and select the address of your practice",
82 "placeholder" : "$services.localization.render('homeopaths.multiword.address.placeholder')",
83 "data-error-response-type" : "use_label_definite_1",
84 "data-auto-first-capital" : "true",
85 "data-query-type" : "address",
86 "data-query-reference" : "",
87 "data-query-list-type" : "suggest-select",
88 "data-query-list-header" : "$services.localization.render('pagemaker.line.suggest_select_list')",
89 "data-query-list-contents" : "value/key",
90 "data-query-list-editable" : "false",
91 "data-create-xobj" : "true",
92 "data-xobj-classname" : "homeopaths.Code.homeopathsClass",
93 "data-xobj-fieldname" : "address",
94 "help-block" : 'Input and select the address of your practice.'
95 })
96 #createFormElement($address)
97 #set($submit = {
98 "id" : "create_practice",
99 "button-text" : "Add practice",
100 "help-block" : "Please remind yourself to always anonymize the case."
101 })
102 #createSubmit($submit)
103 #set($form_end = {
104 "use_captcha": "false"
105 })
106 #createFormEnd($form_end)