Wiki broncode van Homeopaths

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

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.58 12 $doc.parent.getName()
Jip-jan Alunkel 8.59 13 $doc.documentReference.parent.getName()
Jip-jan Alunkel 8.24 14 </p>
Jip-jan Alunkel 8.11 15 <div id="homeopaths_map"></div>
Jip-jan Alunkel 8.44 16
Jip-jan Alunkel 8.25 17 <h2>Add your practice to the map</h2>
Jip-jan Alunkel 2.3 18 #set($form_start = {
19 "id": "homeoworld_form",
Jip-jan Alunkel 8.3 20 "product": "practice",
Jip-jan Alunkel 2.3 21 "method": "post",
22 "url": "",
23 "use_captcha": "false"
24 })
25 #createFormStart($form_start)
Jip-jan Alunkel 8.4 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
Jip-jan Alunkel 8.3 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",
Jip-jan Alunkel 8.9 55 "data-parent-space": "homeopaths",
Jip-jan Alunkel 8.3 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')",
Jip-jan Alunkel 8.5 62 "data-query-list-contents" : "key",
Jip-jan Alunkel 8.3 63 "data-query-list-editable" : "false",
64 "help-block" : 'Type and select the country where your practice resides.'
65 })
66 #createFormElement($country)
Jip-jan Alunkel 6.2 67
Jip-jan Alunkel 8.8 68 #*
69 "data-create-xobj" : "true",
70 "data-xobj-classname" : "homeopaths.Code.homeopathsClass",
71 "data-xobj-fieldname" : "country",
72 *#
73
Jip-jan Alunkel 2.3 74 #set($address = {
75 "id" : "address",
Jip-jan Alunkel 8.2 76 "type" : "address",
Jip-jan Alunkel 2.3 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",
Jip-jan Alunkel 4.2 83 "data-query-type" : "address",
84 "data-query-reference" : "",
Jip-jan Alunkel 2.3 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 = {
Jip-jan Alunkel 8.7 96 "id" : "create_practice",
97 "button-text" : "Add practice",
Jip-jan Alunkel 2.3 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)
105