Changes for page Books

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

From version 3.12
edited by Jip-jan Alunkel
on March 28, 16:09
Change comment: There is no comment for this version
To version 3.35
edited by Jip-jan Alunkel
on March 31, 15:02
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,20 +2,22 @@
1 -
2 2  {{velocity}}
3 3  #set ($discard = $services.localization.use('document', 'cases.Code.translations'))
4 4  #set( $discard = $xwiki.ssx.use('cases.WebHome') )
5 5  #set( $discard = $xwiki.jsx.use('cases.WebHome', {'minify' : false}) )
6 6  {{/velocity}}
6 +
7 7  All about books
8 8  
9 9  {{include reference="assets.macros.form-elements" /}}
10 10  
11 11  {{velocity}}
12 +{{html}}
13 +
12 12  #createFormStart("homeoworld_form" "case")
13 13  
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",
... ... @@ -23,11 +23,13 @@
23 23   "space-reference" : "cases",
24 24   "help-block" : "In which physiological or psychological epicenter can the main complaint be placed? Select the best fitting option from this list."
25 25  })
28 +
26 26  #createFormElement($locality)
30 +
27 27  #set($main_complaint = {
28 28   "id" : "main_complaint",
29 29   "type" : "text",
30 - "required" : true,
34 + "required" : "yes",
31 31   "label" : "Main complaint",
32 32   "aria-label" : "Enter the main complaint",
33 33   "placeholder" : "cases.wordgroup.main_complaint.placeholder",
... ... @@ -35,12 +35,70 @@
35 35   "data-query-type" : "XWQL.matchTitle",
36 36   "data-query-scope" : "cases",
37 37   "data-query-list-type" : "suggest-negate",
42 + "data-suggest-list-header" : "formMaker.line.suggest_negate_list",
38 38   "data-query-list-contents" : "value",
39 39   "data-create-page" : "true",
40 - "help-block" : "In which physiological or psychological epicenter can the main complaint be placed? Select the best fitting option from this list."
45 + "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."'
41 41  })
47 +
42 42  #createFormElement($main_complaint)
43 -#createFormEnd
44 44  
50 +#set($remedy = {
51 + "id" : "remedy",
52 + "type" : "text",
53 + "required" : "yes",
54 + "label" : "Remedy",
55 + "aria-label" : "Choose the remedy",
56 + "placeholder" : "cases.word.remedy.placeholder",
57 + "data-error-response-type" : "use_label_undefined",
58 + "data-query-type" : "JSON.remedies",
59 + "data-query-list-type" : "suggest-select",
60 + "data-suggest-list-header" : "formMaker.line.suggest_select_list",
61 + "data-query-list-contents" : "value/key",
62 + "data-create-xobj" : "true",
63 + "data-xobj-classname" : "cases.Code.casesClass",
64 + "data-xobj-fieldname" : "remedy",
65 + "help-block" : 'Select the remedy that is central in this case.'
66 +})
67 +
68 +#createFormElement($remedy)
69 +
70 +#set($extra_info = {
71 + "id" : "extra_info",
72 + "type" : "checkbox",
73 + "required" : "no",
74 + "label" : "Extra information (optional)",
75 + "value" : "yes"
76 +})
77 +
78 +#createFormElement($extra_info)
79 +
80 +#createExpandStart("extra_info" "yes")
81 +
82 +#set($author = {
83 + "id" : "author",
84 + "type" : "text",
85 + "required" : "no",
86 + "label" : "Author",
87 + "aria-label" : "Enter the author name",
88 + "placeholder" : "cases.word.author.placeholder",
89 + "data-query-type" : "XWQL.matchObject",
90 + "data-query-scope" : "cases",
91 + "data-query-list-type" : "suggest-select",
92 + "data-suggest-list-header" : "formMaker.line.suggest_select_list",
93 + "data-query-list-contents" : "value",
94 + "data-create-xobj" : "true",
95 + "data-xobj-classname" : "cases.Code.casesClass",
96 + "data-xobj-fieldname" : "author",
97 + "help-block" : 'Select the author of this case.'
98 +})
99 +
100 +#createFormElement($author)
101 +
102 +#createExpandEnd()
103 +
104 +#createFormEnd()
105 +
106 +{{/html}}
45 45  {{/velocity}}
46 46