Codice sorgente Wiki di Homeopaths

Version 8.9 by Jip-jan Alunkel on dicembre 06, 03:29

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