Wiki source code of Homeopaths

Version 8.147 by Jip-jan Alunkel on December 24, 13:44

Hide last authors
Jip-jan Alunkel 8.138 1 {{include reference="assets.pagemaker.macros"/}}
Jip-jan Alunkel 8.137 2
3 {{velocity}}
Jip-jan Alunkel 8.30 4 #set($discard = $services.localization.use('document', 'homeopaths.Code.translations'))
Jip-jan Alunkel 8.134 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}))
Jip-jan Alunkel 8.14 8 {{html wiki="false" clean="false"}}
Jip-jan Alunkel 8.24 9 <p>
Jip-jan Alunkel 8.23 10 All about homeopaths.
Jip-jan Alunkel 8.132 11 </p>
12 <div id="homeopaths_map"></div>
Jip-jan Alunkel 8.143 13 #if(!$isGuest)
Jip-jan Alunkel 8.146 14 geen gast
15 #set($hasPractice = $xwiki.getDocument($xcontext.getUserReference()).getObject('XWiki.XWikiUsers').getProperty('practice').value)
16 #if($hasPractice)
17 heeft praktijk
18 #set($q = $services.query.xwql("where doc.space like 'homeopaths.%' and doc.name like :usr"))
19 #set($r = $q.bindValue('usr', $xcontext.getUserReference().getName()).execute())
20 #set($practiceExists = $r.size() > 0)
21 #if(!$practiceExists)
22 praktijk pagina op homeoworld.org bestaat nog niet
Jip-jan Alunkel 8.25 23 <h2>Add your practice to the map</h2>
Jip-jan Alunkel 2.3 24 #set($form_start = {
25 "id": "homeoworld_form",
Jip-jan Alunkel 8.3 26 "product": "practice",
Jip-jan Alunkel 2.3 27 "method": "post",
28 "url": "",
29 "use_captcha": "false"
30 })
31 #createFormStart($form_start)
Jip-jan Alunkel 8.4 32 #set($practice_name = {
33 "id" : "practice_name",
34 "type" : "text",
35 "required" : "true",
36 "label" : "Name of your practice",
37 "aria-label" : "Enter the name of your practice",
38 "placeholder" : "$services.localization.render('homeopaths.wordgroup.practice_name.placeholder')",
39 "data-pattern" : "^[a-zA-ZÀ-ÖÙ-öù-ÿĀ-žḀ-ỿ]+[a-zA-ZÀ-ÖÙ-öù-ÿĀ-žḀ-ỿ0-9- ]*$",
40 "data-error-response-type" : "use_label_definite_1",
41 "data-auto-first-capital" : "true",
42 "data-query-type" : "XWQL",
Jip-jan Alunkel 8.123 43 "data-page-name": "$xcontext.getUserReference().getName()",
Jip-jan Alunkel 8.4 44 "data-query-reference" : "assets.pagemaker.XWQL.matchTitle",
45 "data-query-scope" : "homeopaths",
46 "data-query-list-type" : "suggest-negate",
47 "data-query-list-header" : "$services.localization.render('pagemaker.line.suggest_negate_list')",
48 "data-query-list-contents" : "value",
49 "data-create-page" : "true",
50 "help-block" : 'This will be used as the title of your practice page. The first character must be a letter.'
51 })
52 #createFormElement($practice_name)
Jip-jan Alunkel 8.3 53 #set($country = {
54 "id" : "country",
55 "type" : "text",
56 "required" : "true",
57 "label" : "Country of practice residence",
58 "aria-label" : "Choose the country",
59 "placeholder" : "$services.localization.render('homeopaths.word.country.placeholder')",
60 "data-set-space": "true",
Jip-jan Alunkel 8.9 61 "data-parent-space": "homeopaths",
Jip-jan Alunkel 8.3 62 "data-error-response-type" : "use_label_definite_1",
63 "data-auto-first-capital" : "true",
64 "data-query-type" : "JSON",
65 "data-query-reference" : "assets.pagemaker.JSON.countries",
66 "data-query-list-type" : "suggest-select",
67 "data-query-list-header" : "$services.localization.render('pagemaker.line.suggest_select_list')",
Jip-jan Alunkel 8.5 68 "data-query-list-contents" : "key",
Jip-jan Alunkel 8.3 69 "data-query-list-editable" : "false",
Jip-jan Alunkel 8.98 70 "help-block" : 'Input and select the country where your practice resides.'
Jip-jan Alunkel 8.3 71 })
72 #createFormElement($country)
Jip-jan Alunkel 2.3 73 #set($address = {
74 "id" : "address",
Jip-jan Alunkel 8.2 75 "type" : "address",
Jip-jan Alunkel 2.3 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",
Jip-jan Alunkel 4.2 82 "data-query-type" : "address",
83 "data-query-reference" : "",
Jip-jan Alunkel 2.3 84 "data-query-list-type" : "suggest-select",
85 "data-query-list-header" : "$services.localization.render('pagemaker.line.suggest_select_list')",
86 "data-query-list-contents" : "value/key",
87 "data-query-list-editable" : "false",
88 "data-create-xobj" : "true",
89 "data-xobj-classname" : "homeopaths.Code.homeopathsClass",
90 "data-xobj-fieldname" : "address",
Jip-jan Alunkel 8.97 91 "help-block" : 'Input street and number, then select the address of your practice.'
Jip-jan Alunkel 2.3 92 })
93 #createFormElement($address)
94 #set($submit = {
Jip-jan Alunkel 8.7 95 "id" : "create_practice",
96 "button-text" : "Add practice",
Jip-jan Alunkel 2.3 97 "help-block" : "Please remind yourself to always anonymize the case."
98 })
99 #createSubmit($submit)
100 #set($form_end = {
101 "use_captcha": "false"
102 })
103 #createFormEnd($form_end)
Jip-jan Alunkel 8.147 104 #end
Jip-jan Alunkel 8.143 105 #end
Jip-jan Alunkel 8.132 106 #end
Jip-jan Alunkel 8.136 107 {{/html}}
108 {{/velocity}}