Wiki source code of Homeopaths
Version 8.126 by Jip-jan Alunkel on December 08, 21:00
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
2.3 | 1 | {{include reference="assets.pagemaker.macros"/}} |
2 | |||
3 | {{velocity}} | ||
![]() |
8.30 | 4 | #set($discard = $services.localization.use('document', 'homeopaths.Code.translations')) |
![]() |
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 | |||
![]() |
8.14 | 9 | {{html wiki="false" clean="false"}} |
![]() |
8.24 | 10 | <p> |
![]() |
8.23 | 11 | All about homeopaths. |
![]() |
8.109 | 12 | ##from XWikiSpace as space where doc.space = space.reference and ((doc.name <> 'WebHome' and lower(doc.name) like '%wiki%') or (doc.name = 'WebHome' and lower(space.name) like '%wiki%')) |
![]() |
8.113 | 13 | |
![]() |
8.126 | 14 | #set($q = $services.query.xwql("where doc.space like 'homeopaths.%' and doc.name like :usr")) |
![]() |
8.125 | 15 | $q.bindValue('usr', $xcontext.getUserReference().getName()).execute() |
16 | ###set($q = $services.query.xwql("where doc.space like 'homeopaths.%' and doc.name like '%practice%'")) | ||
17 | ##$q.execute() | ||
18 | ## | ||
![]() |
8.73 | 19 | </p> |
20 | <div id="homeopaths_map"></div> | ||
![]() |
8.44 | 21 | |
![]() |
8.107 | 22 | |
![]() |
8.25 | 23 | <h2>Add your practice to the map</h2> |
![]() |
2.3 | 24 | #set($form_start = { |
25 | "id": "homeoworld_form", | ||
![]() |
8.3 | 26 | "product": "practice", |
![]() |
2.3 | 27 | "method": "post", |
28 | "url": "", | ||
29 | "use_captcha": "false" | ||
30 | }) | ||
31 | #createFormStart($form_start) | ||
![]() |
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", | ||
![]() |
8.123 | 43 | "data-page-name": "$xcontext.getUserReference().getName()", |
![]() |
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) | ||
53 | |||
![]() |
8.3 | 54 | #set($country = { |
55 | "id" : "country", | ||
56 | "type" : "text", | ||
57 | "required" : "true", | ||
58 | "label" : "Country of practice residence", | ||
59 | "aria-label" : "Choose the country", | ||
60 | "placeholder" : "$services.localization.render('homeopaths.word.country.placeholder')", | ||
61 | "data-set-space": "true", | ||
![]() |
8.9 | 62 | "data-parent-space": "homeopaths", |
![]() |
8.3 | 63 | "data-error-response-type" : "use_label_definite_1", |
64 | "data-auto-first-capital" : "true", | ||
65 | "data-query-type" : "JSON", | ||
66 | "data-query-reference" : "assets.pagemaker.JSON.countries", | ||
67 | "data-query-list-type" : "suggest-select", | ||
68 | "data-query-list-header" : "$services.localization.render('pagemaker.line.suggest_select_list')", | ||
![]() |
8.5 | 69 | "data-query-list-contents" : "key", |
![]() |
8.3 | 70 | "data-query-list-editable" : "false", |
![]() |
8.98 | 71 | "help-block" : 'Input and select the country where your practice resides.' |
![]() |
8.3 | 72 | }) |
73 | #createFormElement($country) | ||
![]() |
6.2 | 74 | |
![]() |
8.8 | 75 | #* |
76 | "data-create-xobj" : "true", | ||
77 | "data-xobj-classname" : "homeopaths.Code.homeopathsClass", | ||
78 | "data-xobj-fieldname" : "country", | ||
79 | *# | ||
80 | |||
![]() |
2.3 | 81 | #set($address = { |
82 | "id" : "address", | ||
![]() |
8.2 | 83 | "type" : "address", |
![]() |
2.3 | 84 | "required" : "true", |
85 | "label" : "Address of your practice", | ||
86 | "aria-label" : "Input and select the address of your practice", | ||
87 | "placeholder" : "$services.localization.render('homeopaths.multiword.address.placeholder')", | ||
88 | "data-error-response-type" : "use_label_definite_1", | ||
89 | "data-auto-first-capital" : "true", | ||
![]() |
4.2 | 90 | "data-query-type" : "address", |
91 | "data-query-reference" : "", | ||
![]() |
2.3 | 92 | "data-query-list-type" : "suggest-select", |
93 | "data-query-list-header" : "$services.localization.render('pagemaker.line.suggest_select_list')", | ||
94 | "data-query-list-contents" : "value/key", | ||
95 | "data-query-list-editable" : "false", | ||
96 | "data-create-xobj" : "true", | ||
97 | "data-xobj-classname" : "homeopaths.Code.homeopathsClass", | ||
98 | "data-xobj-fieldname" : "address", | ||
![]() |
8.97 | 99 | "help-block" : 'Input street and number, then select the address of your practice.' |
![]() |
2.3 | 100 | }) |
101 | #createFormElement($address) | ||
102 | #set($submit = { | ||
![]() |
8.7 | 103 | "id" : "create_practice", |
104 | "button-text" : "Add practice", | ||
![]() |
2.3 | 105 | "help-block" : "Please remind yourself to always anonymize the case." |
106 | }) | ||
107 | #createSubmit($submit) | ||
108 | #set($form_end = { | ||
109 | "use_captcha": "false" | ||
110 | }) | ||
111 | #createFormEnd($form_end) | ||
112 |