Wiki source code of Homeopaths

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

Show last authors
1 {{include reference="assets.pagemaker.macros"/}}
2
3 {{velocity}}
4 #set($discard = $services.localization.use('document', 'homeopaths.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
9 {{html wiki="false" clean="false"}}
10 <p>
11 All about homeopaths.
12 </p>
13 <div id="homeopaths_map"></div>
14
15 #set($q = $services.query.xwql("from XWikiSpace as space where doc.space = 'homeopaths.WebHome'and doc.name = :usr"))
16 $q.bindValue('usr', $xcontext.getUserReference().getName()).execute()
17
18 <h2>Add your practice to the map</h2>
19 #set($form_start = {
20 "id": "homeoworld_form",
21 "product": "practice",
22 "method": "post",
23 "url": "",
24 "use_captcha": "false"
25 })
26 #createFormStart($form_start)
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
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",
56 "data-parent-space": "homeopaths",
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')",
63 "data-query-list-contents" : "key",
64 "data-query-list-editable" : "false",
65 "help-block" : 'Input and select the country where your practice resides.'
66 })
67 #createFormElement($country)
68
69 #*
70 "data-create-xobj" : "true",
71 "data-xobj-classname" : "homeopaths.Code.homeopathsClass",
72 "data-xobj-fieldname" : "country",
73 *#
74
75 #set($address = {
76 "id" : "address",
77 "type" : "address",
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",
84 "data-query-type" : "address",
85 "data-query-reference" : "",
86 "data-page-name": "$xcontext.getUserReference().getName()",
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",
94 "help-block" : 'Input street and number, then select the address of your practice.'
95 })
96 #createFormElement($address)
97 #set($submit = {
98 "id" : "create_practice",
99 "button-text" : "Add practice",
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)