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