Código fuente wiki de Homeopaths
Versión 8.43 por Jip-jan Alunkel el diciembre 08, 15:45
Mostrar los últimos autores
author | version | line-number | content |
---|---|---|---|
1 | {{include reference="assets.pagemaker.macros"/}} | ||
2 | |||
3 | {{velocity}} | ||
4 | #set($discard = $services.localization.use('document', 'homeopaths.Code.translations')) | ||
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 | |||
9 | {{html wiki="false" clean="false"}} | ||
10 | <p> | ||
11 | All about homeopaths. | ||
12 | </p> | ||
13 | <div id="homeopaths_map"></div> | ||
14 | <h2>Add your practice to the map</h2> | ||
15 | #set($form_start = { | ||
16 | "id": "homeoworld_form", | ||
17 | "product": "practice", | ||
18 | "method": "post", | ||
19 | "url": "", | ||
20 | "use_captcha": "false" | ||
21 | }) | ||
22 | #createFormStart($form_start) | ||
23 | #set($practice_name = { | ||
24 | "id" : "practice_name", | ||
25 | "type" : "text", | ||
26 | "required" : "true", | ||
27 | "label" : "Name of your practice", | ||
28 | "aria-label" : "Enter the name of your practice", | ||
29 | "placeholder" : "$services.localization.render('homeopaths.wordgroup.practice_name.placeholder')", | ||
30 | "data-pattern" : "^[a-zA-ZÀ-ÖÙ-öù-ÿĀ-žḀ-ỿ]+[a-zA-ZÀ-ÖÙ-öù-ÿĀ-žḀ-ỿ0-9- ]*$", | ||
31 | "data-error-response-type" : "use_label_definite_1", | ||
32 | "data-auto-first-capital" : "true", | ||
33 | "data-query-type" : "XWQL", | ||
34 | "data-query-reference" : "assets.pagemaker.XWQL.matchTitle", | ||
35 | "data-query-scope" : "homeopaths", | ||
36 | "data-query-list-type" : "suggest-negate", | ||
37 | "data-query-list-header" : "$services.localization.render('pagemaker.line.suggest_negate_list')", | ||
38 | "data-query-list-contents" : "value", | ||
39 | "data-create-page" : "true", | ||
40 | "help-block" : 'This will be used as the title of your practice page. The first character must be a letter.' | ||
41 | }) | ||
42 | #createFormElement($practice_name) | ||
43 | |||
44 | #set($country = { | ||
45 | "id" : "country", | ||
46 | "type" : "text", | ||
47 | "required" : "true", | ||
48 | "label" : "Country of practice residence", | ||
49 | "aria-label" : "Choose the country", | ||
50 | "placeholder" : "$services.localization.render('homeopaths.word.country.placeholder')", | ||
51 | "data-set-space": "true", | ||
52 | "data-parent-space": "homeopaths", | ||
53 | "data-error-response-type" : "use_label_definite_1", | ||
54 | "data-auto-first-capital" : "true", | ||
55 | "data-query-type" : "JSON", | ||
56 | "data-query-reference" : "assets.pagemaker.JSON.countries", | ||
57 | "data-query-list-type" : "suggest-select", | ||
58 | "data-query-list-header" : "$services.localization.render('pagemaker.line.suggest_select_list')", | ||
59 | "data-query-list-contents" : "key", | ||
60 | "data-query-list-editable" : "false", | ||
61 | "help-block" : 'Type and select the country where your practice resides.' | ||
62 | }) | ||
63 | #createFormElement($country) | ||
64 | |||
65 | #* | ||
66 | "data-create-xobj" : "true", | ||
67 | "data-xobj-classname" : "homeopaths.Code.homeopathsClass", | ||
68 | "data-xobj-fieldname" : "country", | ||
69 | *# | ||
70 | |||
71 | #set($address = { | ||
72 | "id" : "address", | ||
73 | "type" : "address", | ||
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", | ||
80 | "data-query-type" : "address", | ||
81 | "data-query-reference" : "", | ||
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", | ||
89 | "help-block" : 'Input and select the address of your practice.' | ||
90 | }) | ||
91 | #createFormElement($address) | ||
92 | #set($submit = { | ||
93 | "id" : "create_practice", | ||
94 | "button-text" : "Add practice", | ||
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) |