Modifiche per il documento Homeopaths
Ultima modifica di Jip-jan Alunkel il marzo 14, 20:13
Dalla versione 8.7
modificato da Jip-jan Alunkel
il dicembre 06, 02:18
il dicembre 06, 02:18
Cambia il commento:
Renamed from xwiki:practices.WebHome
Alla versione 8.21
modificato da Jip-jan Alunkel
il dicembre 08, 01:01
il dicembre 08, 01:01
Cambia il commento:
Renamed from xwiki:practices.WebHome
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -6,7 +6,32 @@ 6 6 #set($discard = $xwiki.ssx.use('assets.pagemaker.WebHome', {'minify': false})) 7 7 #set($discard = $xwiki.jsx.use('assets.pagemaker.WebHome', {'minify': false})) 8 8 9 -{{html wiki="true" clean="false"}} 9 +{{html wiki="false" clean="false"}} 10 +<div id="homeopaths_map"></div> 11 + 12 +<script> 13 + var map = L.map('homeopaths_map').setView([20, 0], 2); 14 + L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', { 15 + maxZoom: 19, 16 + attribution: '' 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 + } 33 +</script> 34 + 10 10 #set($form_start = { 11 11 "id": "homeoworld_form", 12 12 "product": "practice", ... ... @@ -44,6 +44,7 @@ 44 44 "aria-label" : "Choose the country", 45 45 "placeholder" : "$services.localization.render('homeopaths.word.country.placeholder')", 46 46 "data-set-space": "true", 72 + "data-parent-space": "homeopaths", 47 47 "data-error-response-type" : "use_label_definite_1", 48 48 "data-auto-first-capital" : "true", 49 49 "data-query-type" : "JSON", ... ... @@ -52,13 +52,16 @@ 52 52 "data-query-list-header" : "$services.localization.render('pagemaker.line.suggest_select_list')", 53 53 "data-query-list-contents" : "key", 54 54 "data-query-list-editable" : "false", 55 - "data-create-xobj" : "true", 56 - "data-xobj-classname" : "cases.Code.casesClass", 57 - "data-xobj-fieldname" : "country", 58 58 "help-block" : 'Type and select the country where your practice resides.' 59 59 }) 60 60 #createFormElement($country) 61 61 85 +#* 86 + "data-create-xobj" : "true", 87 + "data-xobj-classname" : "homeopaths.Code.homeopathsClass", 88 + "data-xobj-fieldname" : "country", 89 +*# 90 + 62 62 #set($address = { 63 63 "id" : "address", 64 64 "type" : "address",