Changes for page Books

Last modified by Jip-jan Alunkel on November 23, 10:59

From version 3.10
edited by Jip-jan Alunkel
on March 28, 15:03
Change comment: There is no comment for this version
To version 3.28
edited by Jip-jan Alunkel
on March 28, 20:23
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,12 +1,22 @@
1 +{{velocity}}
2 +#set ($discard = $services.localization.use('document', 'cases.Code.translations'))
3 +#set( $discard = $xwiki.ssx.use('cases.WebHome') )
4 +#set( $discard = $xwiki.jsx.use('cases.WebHome', {'minify' : false}) )
5 +{{/velocity}}
6 +
1 1  All about books
2 2  
3 3  {{include reference="assets.macros.form-elements" /}}
4 4  
5 5  {{velocity}}
12 +{{html}}
13 +
14 +#createFormStart("homeoworld_form" "case")
15 +
6 6  #set($locality = {
7 7   "id" : "locality",
8 8   "type" : "select",
9 - "required" : true,
19 + "required" : "yes",
10 10   "label" : "Locality of the main complaint",
11 11   "aria-label" : "Select the locality",
12 12   "data-error-response-type" : "use_label_defined_1",
... ... @@ -15,12 +15,13 @@
15 15   "space-reference" : "cases",
16 16   "help-block" : "In which physiological or psychological epicenter can the main complaint be placed? Select the best fitting option from this list."
17 17  })
28 +
18 18  #createFormElement($locality)
19 19  
20 20  #set($main_complaint = {
21 21   "id" : "main_complaint",
22 22   "type" : "text",
23 - "required" : true,
34 + "required" : "yes",
24 24   "label" : "Main complaint",
25 25   "aria-label" : "Enter the main complaint",
26 26   "placeholder" : "cases.wordgroup.main_complaint.placeholder",
... ... @@ -30,9 +30,46 @@
30 30   "data-query-list-type" : "suggest-negate",
31 31   "data-query-list-contents" : "value",
32 32   "data-create-page" : "true",
33 - "help-block" : "In which physiological or psychological epicenter can the main complaint be placed? Select the best fitting option from this list."
44 + "help-block" : 'Please be as concise as possible when you describe the main complaint. For example:<br />"chronic headache with bowel complaints,"<br />"intermittend fever" or<br />"diarrhea."'
34 34  })
46 +
35 35  #createFormElement($main_complaint)
36 36  
49 +#set($remedy = {
50 + "id" : "remedy",
51 + "type" : "text",
52 + "required" : "yes",
53 + "label" : "Remedy",
54 + "aria-label" : "Choose the remedy",
55 + "placeholder" : "cases.word.remedy.placeholder",
56 + "data-error-response-type" : "use_label_undefined",
57 + "data-query-type" : "JSON.remedies",
58 + "data-query-list-type" : "suggest-select",
59 + "data-query-list-contents" : "value/key",
60 + "data-create-xobj" : "true",
61 + "data-xobj-classname" : "cases.Code.casesClass",
62 + "data-xobj-fieldname" : "remedy",
63 + "help-block" : 'Select the remedy that is central in this case.'
64 +})
65 +
66 +#createFormElement($remedy)
67 +
68 +#set($extra_info = {
69 + "id" : "extra_info",
70 + "type" : "checkbox",
71 + "required" : "no",
72 + "label" : "Extra information (optional)",
73 + "value" : "yes"
74 +})
75 +
76 +#createFormElement($extra_info)
77 +
78 +#createPopoutStart("extra_info" "yes")
79 +
80 +#createPopoutEnd()
81 +
82 +#createFormEnd()
83 +
84 +{{/html}}
37 37  {{/velocity}}
38 38