Wiki source code of Books

Version 4.1 by Jip-jan Alunkel on March 31, 18:29

Hide last authors
Jip-jan Alunkel 3.11 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}}
Jip-jan Alunkel 3.14 6
Jip-jan Alunkel 1.1 7 All about books
Jip-jan Alunkel 2.2 8
Jip-jan Alunkel 4.1 9 {{include reference="assets.formMaker.form-macros"/}}
Jip-jan Alunkel 2.2 10
11 {{velocity}}
Jip-jan Alunkel 3.16 12 {{html}}
Jip-jan Alunkel 3.13 13
Jip-jan Alunkel 3.12 14 #createFormStart("homeoworld_form" "case")
15
Jip-jan Alunkel 3.9 16 #set($locality = {
Jip-jan Alunkel 2.2 17 "id" : "locality",
18 "type" : "select",
Jip-jan Alunkel 3.17 19 "required" : "yes",
Jip-jan Alunkel 2.2 20 "label" : "Locality of the main complaint",
21 "aria-label" : "Select the locality",
22 "data-error-response-type" : "use_label_defined_1",
23 "data-set-space" : "true",
Jip-jan Alunkel 3.43 24 "placeholder" : "$services.localization.render('cases.word.locality_select.placeholder')",
Jip-jan Alunkel 2.2 25 "space-reference" : "cases",
26 "help-block" : "In which physiological or psychological epicenter can the main complaint be placed? Select the best fitting option from this list."
27 })
Jip-jan Alunkel 3.13 28
Jip-jan Alunkel 3.9 29 #createFormElement($locality)
Jip-jan Alunkel 3.13 30
Jip-jan Alunkel 3.9 31 #set($main_complaint = {
32 "id" : "main_complaint",
33 "type" : "text",
Jip-jan Alunkel 3.17 34 "required" : "yes",
Jip-jan Alunkel 3.9 35 "label" : "Main complaint",
36 "aria-label" : "Enter the main complaint",
Jip-jan Alunkel 3.43 37 "placeholder" : "$services.localization.render('cases.wordgroup.main_complaint.placeholder')",
Jip-jan Alunkel 3.9 38 "data-error-response-type" : "use_label_defined_1",
39 "data-query-type" : "XWQL.matchTitle",
40 "data-query-scope" : "cases",
41 "data-query-list-type" : "suggest-negate",
Jip-jan Alunkel 3.43 42 "data-suggest-list-header" : "$services.localization.render('cases.line.suggest_negate_list')",
Jip-jan Alunkel 3.9 43 "data-query-list-contents" : "value",
44 "data-create-page" : "true",
Jip-jan Alunkel 3.23 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."'
Jip-jan Alunkel 3.9 46 })
Jip-jan Alunkel 3.13 47
Jip-jan Alunkel 3.9 48 #createFormElement($main_complaint)
49
Jip-jan Alunkel 3.24 50 #set($remedy = {
51 "id" : "remedy",
52 "type" : "text",
53 "required" : "yes",
54 "label" : "Remedy",
55 "aria-label" : "Choose the remedy",
Jip-jan Alunkel 3.43 56 "placeholder" : "$services.localization.render('cases.word.remedy.placeholder')",
Jip-jan Alunkel 3.24 57 "data-error-response-type" : "use_label_undefined",
58 "data-query-type" : "JSON.remedies",
59 "data-query-list-type" : "suggest-select",
Jip-jan Alunkel 3.42 60 "data-suggest-list-header" : "$services.localization.render('cases.line.suggest_select_list')",
Jip-jan Alunkel 3.24 61 "data-query-list-contents" : "value/key",
62 "data-create-xobj" : "true",
63 "data-xobj-classname" : "cases.Code.casesClass",
64 "data-xobj-fieldname" : "remedy",
Jip-jan Alunkel 3.26 65 "help-block" : 'Select the remedy that is central in this case.'
Jip-jan Alunkel 3.24 66 })
67
68 #createFormElement($remedy)
69
Jip-jan Alunkel 3.27 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
Jip-jan Alunkel 3.30 80 #createExpandStart("extra_info" "yes")
Jip-jan Alunkel 3.28 81
Jip-jan Alunkel 3.31 82 #set($author = {
Jip-jan Alunkel 3.32 83 "id" : "author",
Jip-jan Alunkel 3.31 84 "type" : "text",
Jip-jan Alunkel 3.32 85 "required" : "no",
86 "label" : "Author",
87 "aria-label" : "Enter the author name",
Jip-jan Alunkel 3.43 88 "placeholder" : "$services.localization.render('cases.word.author.placeholder')",
Jip-jan Alunkel 3.32 89 "data-query-type" : "XWQL.matchObject",
90 "data-query-scope" : "cases",
Jip-jan Alunkel 3.31 91 "data-query-list-type" : "suggest-select",
Jip-jan Alunkel 3.43 92 "data-suggest-list-header" : "$services.localization.render('cases.line.suggest_select_list')",
Jip-jan Alunkel 3.32 93 "data-query-list-contents" : "value",
Jip-jan Alunkel 3.31 94 "data-create-xobj" : "true",
95 "data-xobj-classname" : "cases.Code.casesClass",
Jip-jan Alunkel 3.32 96 "data-xobj-fieldname" : "author",
97 "help-block" : 'Select the author of this case.'
Jip-jan Alunkel 3.31 98 })
Jip-jan Alunkel 3.29 99
Jip-jan Alunkel 3.33 100 #createFormElement($author)
101
Jip-jan Alunkel 3.30 102 #createExpandEnd()
Jip-jan Alunkel 3.28 103
Jip-jan Alunkel 3.13 104 #createFormEnd()
105
Jip-jan Alunkel 3.16 106 {{/html}}
Jip-jan Alunkel 2.2 107 {{/velocity}}