Code source wiki de Homeopaths

Version 8.92 par Jip-jan Alunkel le décembre 08, 18:24

Afficher les derniers auteurs
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
15 <h2>Add your practice to the map</h2>
16 #set($form_start = {
17 "id": "homeoworld_form",
18 "product": "practice",
19 "method": "post",
20 "url": "",
21 "use_captcha": "false"
22 })
23 #createFormStart($form_start)
24 #set($practice_name = {
25 "id" : "practice_name",
26 "type" : "text",
27 "required" : "true",
28 "label" : "Name of your practice",
29 "aria-label" : "Enter the name of your practice",
30 "placeholder" : "$services.localization.render('homeopaths.wordgroup.practice_name.placeholder')",
31 "data-pattern" : "^[a-zA-ZÀ-ÖÙ-öù-ÿĀ-žḀ-ỿ]+[a-zA-ZÀ-ÖÙ-öù-ÿĀ-žḀ-ỿ0-9- ]*$",
32 "data-error-response-type" : "use_label_definite_1",
33 "data-auto-first-capital" : "true",
34 "data-query-type" : "XWQL",
35 "data-query-reference" : "assets.pagemaker.XWQL.matchTitle",
36 "data-query-scope" : "homeopaths",
37 "data-query-list-type" : "suggest-negate",
38 "data-query-list-header" : "$services.localization.render('pagemaker.line.suggest_negate_list')",
39 "data-query-list-contents" : "value",
40 "data-create-page" : "true",
41 "help-block" : 'This will be used as the title of your practice page. The first character must be a letter.'
42 })
43 #createFormElement($practice_name)
44
45 #set($country = {
46 "id" : "country",
47 "type" : "text",
48 "required" : "true",
49 "label" : "Country of practice residence",
50 "aria-label" : "Choose the country",
51 "placeholder" : "$services.localization.render('homeopaths.word.country.placeholder')",
52 "data-set-space": "true",
53 "data-parent-space": "homeopaths",
54 "data-error-response-type" : "use_label_definite_1",
55 "data-auto-first-capital" : "true",
56 "data-query-type" : "JSON",
57 "data-query-reference" : "assets.pagemaker.JSON.countries",
58 "data-query-list-type" : "suggest-select",
59 "data-query-list-header" : "$services.localization.render('pagemaker.line.suggest_select_list')",
60 "data-query-list-contents" : "key",
61 "data-query-list-editable" : "false",
62 "help-block" : 'Type and select the country where your practice resides.'
63 })
64 #createFormElement($country)
65
66 #*
67 "data-create-xobj" : "true",
68 "data-xobj-classname" : "homeopaths.Code.homeopathsClass",
69 "data-xobj-fieldname" : "country",
70 *#
71
72 #set($address = {
73 "id" : "address",
74 "type" : "address",
75 "required" : "true",
76 "label" : "Address of your practice",
77 "aria-label" : "Input and select the address of your practice",
78 "placeholder" : "$services.localization.render('homeopaths.multiword.address.placeholder')",
79 "data-error-response-type" : "use_label_definite_1",
80 "data-auto-first-capital" : "true",
81 "data-query-type" : "address",
82 "data-query-reference" : "",
83 "data-query-list-type" : "suggest-select",
84 "data-query-list-header" : "$services.localization.render('pagemaker.line.suggest_select_list')",
85 "data-query-list-contents" : "value/key",
86 "data-query-list-editable" : "false",
87 "data-create-xobj" : "true",
88 "data-xobj-classname" : "homeopaths.Code.homeopathsClass",
89 "data-xobj-fieldname" : "address",
90 "help-block" : 'Input and select the address of your practice.'
91 })
92 #createFormElement($address)
93 #set($submit = {
94 "id" : "create_practice",
95 "button-text" : "Add practice",
96 "help-block" : "Please remind yourself to always anonymize the case."
97 })
98 #createSubmit($submit)
99 #set($form_end = {
100 "use_captcha": "false"
101 })
102 #createFormEnd($form_end)