Wiki source code of Homeopaths

Version 8.100 by Jip-jan Alunkel on dezembro 08, 19:06

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