Changes for page Books

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

From version 3.13
edited by Jip-jan Alunkel
on March 28, 16:12
Change comment: There is no comment for this version
To version 3.34
edited by Jip-jan Alunkel
on March 29, 16:40
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -3,11 +3,13 @@
3 3  #set( $discard = $xwiki.ssx.use('cases.WebHome') )
4 4  #set( $discard = $xwiki.jsx.use('cases.WebHome', {'minify' : false}) )
5 5  {{/velocity}}
6 +
6 6  All about books
7 7  
8 8  {{include reference="assets.macros.form-elements" /}}
9 9  
10 10  {{velocity}}
12 +{{html}}
11 11  
12 12  #createFormStart("homeoworld_form" "case")
13 13  
... ... @@ -14,7 +14,7 @@
14 14  #set($locality = {
15 15   "id" : "locality",
16 16   "type" : "select",
17 - "required" : true,
19 + "required" : "yes",
18 18   "label" : "Locality of the main complaint",
19 19   "aria-label" : "Select the locality",
20 20   "data-error-response-type" : "use_label_defined_1",
... ... @@ -29,7 +29,7 @@
29 29  #set($main_complaint = {
30 30   "id" : "main_complaint",
31 31   "type" : "text",
32 - "required" : true,
34 + "required" : "yes",
33 33   "label" : "Main complaint",
34 34   "aria-label" : "Enter the main complaint",
35 35   "placeholder" : "cases.wordgroup.main_complaint.placeholder",
... ... @@ -39,13 +39,65 @@
39 39   "data-query-list-type" : "suggest-negate",
40 40   "data-query-list-contents" : "value",
41 41   "data-create-page" : "true",
42 - "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."'
43 43  })
44 44  
45 45  #createFormElement($main_complaint)
46 46  
47 -#createFormEnd()
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 +})
48 48  
66 +#createFormElement($remedy)
49 49  
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 +#createExpandStart("extra_info" "yes")
79 +
80 +#set($author = {
81 + "id" : "author",
82 + "type" : "text",
83 + "required" : "no",
84 + "label" : "Author",
85 + "aria-label" : "Enter the author name",
86 + "placeholder" : "cases.word.author.placeholder",
87 + "data-query-type" : "XWQL.matchObject",
88 + "data-query-scope" : "cases",
89 + "data-query-list-type" : "suggest-select",
90 + "data-query-list-contents" : "value",
91 + "data-create-xobj" : "true",
92 + "data-xobj-classname" : "cases.Code.casesClass",
93 + "data-xobj-fieldname" : "author",
94 + "help-block" : 'Select the author of this case.'
95 +})
96 +
97 +#createFormElement($author)
98 +
99 +#createExpandEnd()
100 +
101 +#createFormEnd()
102 +
103 +{{/html}}
50 50  {{/velocity}}
51 51