Wiki source code of Homeopaths

Version 8.59 by Jip-jan Alunkel on December 08, 16:04

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