Wiki-Quellcode von Homeopaths
Version 8.100 von Jip-jan Alunkel am Dezember 08, 19:06
Verstecke letzte Bearbeiter
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.100 | 12 | $xcontext.user.getName() |
![]() |
8.73 | 13 | </p> |
14 | <div id="homeopaths_map"></div> | ||
![]() |
8.44 | 15 | |
![]() |
8.25 | 16 | <h2>Add your practice to the map</h2> |
![]() |
2.3 | 17 | #set($form_start = { |
18 | "id": "homeoworld_form", | ||
![]() |
8.3 | 19 | "product": "practice", |
![]() |
2.3 | 20 | "method": "post", |
21 | "url": "", | ||
22 | "use_captcha": "false" | ||
23 | }) | ||
24 | #createFormStart($form_start) | ||
![]() |
8.4 | 25 | #set($practice_name = { |
26 | "id" : "practice_name", | ||
27 | "type" : "text", | ||
28 | "required" : "true", | ||
29 | "label" : "Name of your practice", | ||
30 | "aria-label" : "Enter the name of your practice", | ||
31 | "placeholder" : "$services.localization.render('homeopaths.wordgroup.practice_name.placeholder')", | ||
32 | "data-pattern" : "^[a-zA-ZÀ-ÖÙ-öù-ÿĀ-žḀ-ỿ]+[a-zA-ZÀ-ÖÙ-öù-ÿĀ-žḀ-ỿ0-9- ]*$", | ||
33 | "data-error-response-type" : "use_label_definite_1", | ||
34 | "data-auto-first-capital" : "true", | ||
35 | "data-query-type" : "XWQL", | ||
36 | "data-query-reference" : "assets.pagemaker.XWQL.matchTitle", | ||
37 | "data-query-scope" : "homeopaths", | ||
38 | "data-query-list-type" : "suggest-negate", | ||
39 | "data-query-list-header" : "$services.localization.render('pagemaker.line.suggest_negate_list')", | ||
40 | "data-query-list-contents" : "value", | ||
41 | "data-create-page" : "true", | ||
42 | "help-block" : 'This will be used as the title of your practice page. The first character must be a letter.' | ||
43 | }) | ||
44 | #createFormElement($practice_name) | ||
45 | |||
![]() |
8.3 | 46 | #set($country = { |
47 | "id" : "country", | ||
48 | "type" : "text", | ||
49 | "required" : "true", | ||
50 | "label" : "Country of practice residence", | ||
51 | "aria-label" : "Choose the country", | ||
52 | "placeholder" : "$services.localization.render('homeopaths.word.country.placeholder')", | ||
53 | "data-set-space": "true", | ||
![]() |
8.9 | 54 | "data-parent-space": "homeopaths", |
![]() |
8.3 | 55 | "data-error-response-type" : "use_label_definite_1", |
56 | "data-auto-first-capital" : "true", | ||
57 | "data-query-type" : "JSON", | ||
58 | "data-query-reference" : "assets.pagemaker.JSON.countries", | ||
59 | "data-query-list-type" : "suggest-select", | ||
60 | "data-query-list-header" : "$services.localization.render('pagemaker.line.suggest_select_list')", | ||
![]() |
8.5 | 61 | "data-query-list-contents" : "key", |
![]() |
8.3 | 62 | "data-query-list-editable" : "false", |
![]() |
8.98 | 63 | "help-block" : 'Input and select the country where your practice resides.' |
![]() |
8.3 | 64 | }) |
65 | #createFormElement($country) | ||
![]() |
6.2 | 66 | |
![]() |
8.8 | 67 | #* |
68 | "data-create-xobj" : "true", | ||
69 | "data-xobj-classname" : "homeopaths.Code.homeopathsClass", | ||
70 | "data-xobj-fieldname" : "country", | ||
71 | *# | ||
72 | |||
![]() |
2.3 | 73 | #set($address = { |
74 | "id" : "address", | ||
![]() |
8.2 | 75 | "type" : "address", |
![]() |
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", | ||
![]() |
4.2 | 82 | "data-query-type" : "address", |
83 | "data-query-reference" : "", | ||
![]() |
8.99 | 84 | "data-page-name": "$xcontext.user", |
![]() |
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", | ||
![]() |
8.97 | 92 | "help-block" : 'Input street and number, then select the address of your practice.' |
![]() |
2.3 | 93 | }) |
94 | #createFormElement($address) | ||
95 | #set($submit = { | ||
![]() |
8.7 | 96 | "id" : "create_practice", |
97 | "button-text" : "Add practice", | ||
![]() |
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 |