Wiki source code of Homeopaths

Version 8.108 by Jip-jan Alunkel on December 08, 20:12

Hide last authors
Jip-jan Alunkel 2.3 1 {{include reference="assets.pagemaker.macros"/}}
2
3 {{velocity}}
Jip-jan Alunkel 8.30 4 #set($discard = $services.localization.use('document', 'homeopaths.Code.translations'))
Jip-jan Alunkel 2.3 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
Jip-jan Alunkel 8.14 9 {{html wiki="false" clean="false"}}
Jip-jan Alunkel 8.24 10 <p>
Jip-jan Alunkel 8.23 11 All about homeopaths.
Jip-jan Alunkel 8.73 12 </p>
13 <div id="homeopaths_map"></div>
Jip-jan Alunkel 8.44 14
Jip-jan Alunkel 8.108 15 #set($q = $services.query.xwql("from XWikiSpace as space where doc.space = 'homeopaths.WebHome'and doc.name = :usr"))
Jip-jan Alunkel 8.107 16 $q.bindValue('usr', $xcontext.getUserReference().getName()).execute()
17
Jip-jan Alunkel 8.25 18 <h2>Add your practice to the map</h2>
Jip-jan Alunkel 2.3 19 #set($form_start = {
20 "id": "homeoworld_form",
Jip-jan Alunkel 8.3 21 "product": "practice",
Jip-jan Alunkel 2.3 22 "method": "post",
23 "url": "",
24 "use_captcha": "false"
25 })
26 #createFormStart($form_start)
Jip-jan Alunkel 8.4 27 #set($practice_name = {
28 "id" : "practice_name",
29 "type" : "text",
30 "required" : "true",
31 "label" : "Name of your practice",
32 "aria-label" : "Enter the name of your practice",
33 "placeholder" : "$services.localization.render('homeopaths.wordgroup.practice_name.placeholder')",
34 "data-pattern" : "^[a-zA-ZÀ-ÖÙ-öù-ÿĀ-žḀ-ỿ]+[a-zA-ZÀ-ÖÙ-öù-ÿĀ-žḀ-ỿ0-9- ]*$",
35 "data-error-response-type" : "use_label_definite_1",
36 "data-auto-first-capital" : "true",
37 "data-query-type" : "XWQL",
38 "data-query-reference" : "assets.pagemaker.XWQL.matchTitle",
39 "data-query-scope" : "homeopaths",
40 "data-query-list-type" : "suggest-negate",
41 "data-query-list-header" : "$services.localization.render('pagemaker.line.suggest_negate_list')",
42 "data-query-list-contents" : "value",
43 "data-create-page" : "true",
44 "help-block" : 'This will be used as the title of your practice page. The first character must be a letter.'
45 })
46 #createFormElement($practice_name)
47
Jip-jan Alunkel 8.3 48 #set($country = {
49 "id" : "country",
50 "type" : "text",
51 "required" : "true",
52 "label" : "Country of practice residence",
53 "aria-label" : "Choose the country",
54 "placeholder" : "$services.localization.render('homeopaths.word.country.placeholder')",
55 "data-set-space": "true",
Jip-jan Alunkel 8.9 56 "data-parent-space": "homeopaths",
Jip-jan Alunkel 8.3 57 "data-error-response-type" : "use_label_definite_1",
58 "data-auto-first-capital" : "true",
59 "data-query-type" : "JSON",
60 "data-query-reference" : "assets.pagemaker.JSON.countries",
61 "data-query-list-type" : "suggest-select",
62 "data-query-list-header" : "$services.localization.render('pagemaker.line.suggest_select_list')",
Jip-jan Alunkel 8.5 63 "data-query-list-contents" : "key",
Jip-jan Alunkel 8.3 64 "data-query-list-editable" : "false",
Jip-jan Alunkel 8.98 65 "help-block" : 'Input and select the country where your practice resides.'
Jip-jan Alunkel 8.3 66 })
67 #createFormElement($country)
Jip-jan Alunkel 6.2 68
Jip-jan Alunkel 8.8 69 #*
70 "data-create-xobj" : "true",
71 "data-xobj-classname" : "homeopaths.Code.homeopathsClass",
72 "data-xobj-fieldname" : "country",
73 *#
74
Jip-jan Alunkel 2.3 75 #set($address = {
76 "id" : "address",
Jip-jan Alunkel 8.2 77 "type" : "address",
Jip-jan Alunkel 2.3 78 "required" : "true",
79 "label" : "Address of your practice",
80 "aria-label" : "Input and select the address of your practice",
81 "placeholder" : "$services.localization.render('homeopaths.multiword.address.placeholder')",
82 "data-error-response-type" : "use_label_definite_1",
83 "data-auto-first-capital" : "true",
Jip-jan Alunkel 4.2 84 "data-query-type" : "address",
85 "data-query-reference" : "",
Jip-jan Alunkel 8.104 86 "data-page-name": "$xcontext.getUserReference().getName()",
Jip-jan Alunkel 2.3 87 "data-query-list-type" : "suggest-select",
88 "data-query-list-header" : "$services.localization.render('pagemaker.line.suggest_select_list')",
89 "data-query-list-contents" : "value/key",
90 "data-query-list-editable" : "false",
91 "data-create-xobj" : "true",
92 "data-xobj-classname" : "homeopaths.Code.homeopathsClass",
93 "data-xobj-fieldname" : "address",
Jip-jan Alunkel 8.97 94 "help-block" : 'Input street and number, then select the address of your practice.'
Jip-jan Alunkel 2.3 95 })
96 #createFormElement($address)
97 #set($submit = {
Jip-jan Alunkel 8.7 98 "id" : "create_practice",
99 "button-text" : "Add practice",
Jip-jan Alunkel 2.3 100 "help-block" : "Please remind yourself to always anonymize the case."
101 })
102 #createSubmit($submit)
103 #set($form_end = {
104 "use_captcha": "false"
105 })
106 #createFormEnd($form_end)
107