Changes for page Homeopaths

Last modified by Jip-jan Alunkel on May 06, 23:58

From version 8.23
edited by Jip-jan Alunkel
on December 08, 01:49
Change comment: Renamed from xwiki:practices.WebHome
To version 8.2
edited by Jip-jan Alunkel
on December 03, 13:04
Change comment: Renamed from xwiki:practices.WebHome

Summary

Details

Page properties
Content
... ... @@ -6,89 +6,16 @@
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="false" clean="false"}}
10 -All about homeopaths.
11 -<div id="homeopaths_map"></div>
12 -
13 -<script>
14 - var map = L.map('homeopaths_map').setView([18, 10], 2);
15 - L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', {
16 - maxZoom: 19,
17 - attribution: ''
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++) {
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);
31 - map.addLayer(marker);
32 - marker.bindPopup(popupText);
33 - }
34 -</script>
35 -
9 +{{html wiki="true" clean="false"}}
36 36  #set($form_start = {
37 37   "id": "homeoworld_form",
38 - "product": "practice",
12 + "product": "case",
39 39   "method": "post",
40 40   "url": "",
41 41   "use_captcha": "false"
42 42  })
43 43  #createFormStart($form_start)
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 64  
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",
73 - "data-parent-space": "homeopaths",
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')",
80 - "data-query-list-contents" : "key",
81 - "data-query-list-editable" : "false",
82 - "help-block" : 'Type and select the country where your practice resides.'
83 -})
84 -#createFormElement($country)
85 -
86 -#*
87 - "data-create-xobj" : "true",
88 - "data-xobj-classname" : "homeopaths.Code.homeopathsClass",
89 - "data-xobj-fieldname" : "country",
90 -*#
91 -
92 92  #set($address = {
93 93   "id" : "address",
94 94   "type" : "address",
... ... @@ -111,8 +111,8 @@
111 111  })
112 112  #createFormElement($address)
113 113  #set($submit = {
114 - "id" : "create_practice",
115 - "button-text" : "Add practice",
41 + "id" : "create_case",
42 + "button-text" : "Submit",
116 116   "help-block" : "Please remind yourself to always anonymize the case."
117 117  })
118 118  #createSubmit($submit)