Wiki-Quellcode von Homeopaths

Version 8.140 von Jip-jan Alunkel am Dezember 22, 14:55

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