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