Wiki source code of Homeopaths

Version 8.112 by Jip-jan Alunkel on December 08, 20:26

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