Wiki broncode van Homeopaths
Version 8.26 by Jip-jan Alunkel on december 08, 13:34
Show last authors
author | version | line-number | content |
---|---|---|---|
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 | <p> | ||
11 | All about homeopaths. | ||
12 | </p> | ||
13 | <div id="homeopaths_map"></div> | ||
14 | |||
15 | <script> | ||
16 | var map = L.map('homeopaths_map').setView([18, 10], 2); | ||
17 | L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', { | ||
18 | maxZoom: 19, | ||
19 | attribution: '' | ||
20 | }).addTo(map); | ||
21 | map.attributionControl.setPrefix(''); | ||
22 | var markers = [ | ||
23 | [ -0.1244324, 51.5006728, "Big Ben" ], | ||
24 | [ -0.119623, 51.503308, "London Eye" ], | ||
25 | [ -0.1279688, 51.5077286, "Nelson's Column<br><a href=\"https://en.wikipedia.org/wiki/Nelson's_Column\">wp</a>" ] | ||
26 | ]; | ||
27 | for (var i=0; i<markers.length; i++) { | ||
28 | let lon = markers[i][0], | ||
29 | lat = markers[i][1], | ||
30 | popupText = markers[i][2], | ||
31 | markerLocation = new L.LatLng(lat, lon), | ||
32 | marker = new L.Marker(markerLocation); | ||
33 | map.addLayer(marker); | ||
34 | marker.bindPopup(popupText); | ||
35 | } | ||
36 | </script> | ||
37 | <h2>Add your practice to the map</h2> | ||
38 | #set($form_start = { | ||
39 | "id": "homeoworld_form", | ||
40 | "product": "practice", | ||
41 | "method": "post", | ||
42 | "url": "", | ||
43 | "use_captcha": "false" | ||
44 | }) | ||
45 | #createFormStart($form_start) | ||
46 | #set($practice_name = { | ||
47 | "id" : "practice_name", | ||
48 | "type" : "text", | ||
49 | "required" : "true", | ||
50 | "label" : "Name of your practice", | ||
51 | "aria-label" : "Enter the name of your practice", | ||
52 | "placeholder" : "$services.localization.render('homeopaths.wordgroup.practice_name.placeholder')", | ||
53 | "data-pattern" : "^[a-zA-ZÀ-ÖÙ-öù-ÿĀ-žḀ-ỿ]+[a-zA-ZÀ-ÖÙ-öù-ÿĀ-žḀ-ỿ0-9- ]*$", | ||
54 | "data-error-response-type" : "use_label_definite_1", | ||
55 | "data-auto-first-capital" : "true", | ||
56 | "data-query-type" : "XWQL", | ||
57 | "data-query-reference" : "assets.pagemaker.XWQL.matchTitle", | ||
58 | "data-query-scope" : "homeopaths", | ||
59 | "data-query-list-type" : "suggest-negate", | ||
60 | "data-query-list-header" : "$services.localization.render('pagemaker.line.suggest_negate_list')", | ||
61 | "data-query-list-contents" : "value", | ||
62 | "data-create-page" : "true", | ||
63 | "help-block" : 'This will be used as the title of your practice page. The first character must be a letter.' | ||
64 | }) | ||
65 | #createFormElement($practice_name) | ||
66 | |||
67 | #set($country = { | ||
68 | "id" : "country", | ||
69 | "type" : "text", | ||
70 | "required" : "true", | ||
71 | "label" : "Country of practice residence", | ||
72 | "aria-label" : "Choose the country", | ||
73 | "placeholder" : "$services.localization.render('homeopaths.word.country.placeholder')", | ||
74 | "data-set-space": "true", | ||
75 | "data-parent-space": "homeopaths", | ||
76 | "data-error-response-type" : "use_label_definite_1", | ||
77 | "data-auto-first-capital" : "true", | ||
78 | "data-query-type" : "JSON", | ||
79 | "data-query-reference" : "assets.pagemaker.JSON.countries", | ||
80 | "data-query-list-type" : "suggest-select", | ||
81 | "data-query-list-header" : "$services.localization.render('pagemaker.line.suggest_select_list')", | ||
82 | "data-query-list-contents" : "key", | ||
83 | "data-query-list-editable" : "false", | ||
84 | "help-block" : 'Type and select the country where your practice resides.' | ||
85 | }) | ||
86 | #createFormElement($country) | ||
87 | |||
88 | #* | ||
89 | "data-create-xobj" : "true", | ||
90 | "data-xobj-classname" : "homeopaths.Code.homeopathsClass", | ||
91 | "data-xobj-fieldname" : "country", | ||
92 | *# | ||
93 | |||
94 | #set($address = { | ||
95 | "id" : "address", | ||
96 | "type" : "address", | ||
97 | "required" : "true", | ||
98 | "label" : "Address of your practice", | ||
99 | "aria-label" : "Input and select the address of your practice", | ||
100 | "placeholder" : "$services.localization.render('homeopaths.multiword.address.placeholder')", | ||
101 | "data-error-response-type" : "use_label_definite_1", | ||
102 | "data-auto-first-capital" : "true", | ||
103 | "data-query-type" : "address", | ||
104 | "data-query-reference" : "", | ||
105 | "data-query-list-type" : "suggest-select", | ||
106 | "data-query-list-header" : "$services.localization.render('pagemaker.line.suggest_select_list')", | ||
107 | "data-query-list-contents" : "value/key", | ||
108 | "data-query-list-editable" : "false", | ||
109 | "data-create-xobj" : "true", | ||
110 | "data-xobj-classname" : "homeopaths.Code.homeopathsClass", | ||
111 | "data-xobj-fieldname" : "address", | ||
112 | "help-block" : 'Input and select the address of your practice.' | ||
113 | }) | ||
114 | #createFormElement($address) | ||
115 | #set($submit = { | ||
116 | "id" : "create_practice", | ||
117 | "button-text" : "Add practice", | ||
118 | "help-block" : "Please remind yourself to always anonymize the case." | ||
119 | }) | ||
120 | #createSubmit($submit) | ||
121 | #set($form_end = { | ||
122 | "use_captcha": "false" | ||
123 | }) | ||
124 | #createFormEnd($form_end) |