Código fuente wiki de Homeopaths

Versión 8.123 por Jip-jan Alunkel el diciembre 08, 20:52

Ocultar los últimos autores
Jip-jan Alunkel 2.3 1 {{include reference="assets.pagemaker.macros"/}}
2
3 {{velocity}}
Jip-jan Alunkel 8.30 4 #set($discard = $services.localization.use('document', 'homeopaths.Code.translations'))
Jip-jan Alunkel 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
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.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%'))
Jip-jan Alunkel 8.113 13
Jip-jan Alunkel 8.118 14 ##set($q = $services.query.xwql("where doc.space like 'homeopaths' and doc.name like :usr"))
15 ##$q.bindValue('usr', 'practice').execute()
Jip-jan Alunkel 8.122 16 #set($q = $services.query.xwql("where doc.space like 'homeopaths.%' and doc.name like '%practice%'"))
Jip-jan Alunkel 8.118 17 $q.execute()
Jip-jan Alunkel 8.116 18 ##$xcontext.getUserReference().getName()
Jip-jan Alunkel 8.73 19 </p>
20 <div id="homeopaths_map"></div>
Jip-jan Alunkel 8.44 21
Jip-jan Alunkel 8.107 22
Jip-jan Alunkel 8.25 23 <h2>Add your practice to the map</h2>
Jip-jan Alunkel 2.3 24 #set($form_start = {
25 "id": "homeoworld_form",
Jip-jan Alunkel 8.3 26 "product": "practice",
Jip-jan Alunkel 2.3 27 "method": "post",
28 "url": "",
29 "use_captcha": "false"
30 })
31 #createFormStart($form_start)
Jip-jan Alunkel 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",
Jip-jan Alunkel 8.123 43 "data-page-name": "$xcontext.getUserReference().getName()",
Jip-jan Alunkel 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
Jip-jan Alunkel 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",
Jip-jan Alunkel 8.9 62 "data-parent-space": "homeopaths",
Jip-jan Alunkel 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')",
Jip-jan Alunkel 8.5 69 "data-query-list-contents" : "key",
Jip-jan Alunkel 8.3 70 "data-query-list-editable" : "false",
Jip-jan Alunkel 8.98 71 "help-block" : 'Input and select the country where your practice resides.'
Jip-jan Alunkel 8.3 72 })
73 #createFormElement($country)
Jip-jan Alunkel 6.2 74
Jip-jan Alunkel 8.8 75 #*
76 "data-create-xobj" : "true",
77 "data-xobj-classname" : "homeopaths.Code.homeopathsClass",
78 "data-xobj-fieldname" : "country",
79 *#
80
Jip-jan Alunkel 2.3 81 #set($address = {
82 "id" : "address",
Jip-jan Alunkel 8.2 83 "type" : "address",
Jip-jan Alunkel 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",
Jip-jan Alunkel 4.2 90 "data-query-type" : "address",
91 "data-query-reference" : "",
Jip-jan Alunkel 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",
Jip-jan Alunkel 8.97 99 "help-block" : 'Input street and number, then select the address of your practice.'
Jip-jan Alunkel 2.3 100 })
101 #createFormElement($address)
102 #set($submit = {
Jip-jan Alunkel 8.7 103 "id" : "create_practice",
104 "button-text" : "Add practice",
Jip-jan Alunkel 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