Wiki source code of Books

Version 7.2 by Jip-jan Alunkel on April 09, 16:55

Hide last authors
Jip-jan Alunkel 3.11 1 {{velocity}}
Jip-jan Alunkel 5.2 2 #set($discard = $services.localization.use('document', 'cases.Code.translations'))
3 #set($discard = $services.localization.use('document', 'assets.formMaker.translations'))
4 #set($discard = $xwiki.ssx.use('assets.formMaker.WebHome'))
5 #set($discard = $xwiki.jsx.use('assets.formMaker.WebHome', {'minify' : false}))
Jip-jan Alunkel 3.11 6 {{/velocity}}
Jip-jan Alunkel 3.14 7
Jip-jan Alunkel 1.1 8 All about books
Jip-jan Alunkel 2.2 9
Jip-jan Alunkel 5.2 10 {{include reference="assets.formMaker.macros" /}}
Jip-jan Alunkel 2.2 11
12 {{velocity}}
Jip-jan Alunkel 3.16 13 {{html}}
Jip-jan Alunkel 3.13 14
Jip-jan Alunkel 6.3 15 #createFormStart("homeoworld_form" "book")
Jip-jan Alunkel 3.12 16
Jip-jan Alunkel 6.2 17 #set($booktype = {
18 "id" : "booktype",
Jip-jan Alunkel 2.2 19 "type" : "select",
Jip-jan Alunkel 7.2 20 "required" : "true",
Jip-jan Alunkel 6.2 21 "label" : "Type of book",
Jip-jan Alunkel 2.2 22 "aria-label" : "Select the locality",
23 "data-error-response-type" : "use_label_defined_1",
24 "data-set-space" : "true",
Jip-jan Alunkel 3.43 25 "placeholder" : "$services.localization.render('cases.word.locality_select.placeholder')",
Jip-jan Alunkel 6.1 26 "space-reference" : "books",
Jip-jan Alunkel 6.2 27 "help-block" : "Choose the type of book you would like to enter."
Jip-jan Alunkel 2.2 28 })
Jip-jan Alunkel 3.13 29
Jip-jan Alunkel 6.2 30 #createFormElement($booktype)
Jip-jan Alunkel 3.13 31
Jip-jan Alunkel 3.9 32 #set($main_complaint = {
33 "id" : "main_complaint",
34 "type" : "text",
Jip-jan Alunkel 7.2 35 "required" : "true",
Jip-jan Alunkel 3.9 36 "label" : "Main complaint",
37 "aria-label" : "Enter the main complaint",
Jip-jan Alunkel 3.43 38 "placeholder" : "$services.localization.render('cases.wordgroup.main_complaint.placeholder')",
Jip-jan Alunkel 3.9 39 "data-error-response-type" : "use_label_defined_1",
40 "data-query-type" : "XWQL.matchTitle",
Jip-jan Alunkel 6.1 41 "data-query-scope" : "books",
Jip-jan Alunkel 3.9 42 "data-query-list-type" : "suggest-negate",
Jip-jan Alunkel 3.43 43 "data-suggest-list-header" : "$services.localization.render('cases.line.suggest_negate_list')",
Jip-jan Alunkel 3.9 44 "data-query-list-contents" : "value",
45 "data-create-page" : "true",
Jip-jan Alunkel 3.23 46 "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 47 })
Jip-jan Alunkel 3.13 48
Jip-jan Alunkel 3.9 49 #createFormElement($main_complaint)
50
Jip-jan Alunkel 3.24 51 #set($remedy = {
52 "id" : "remedy",
53 "type" : "text",
Jip-jan Alunkel 7.2 54 "required" : "true",
Jip-jan Alunkel 3.24 55 "label" : "Remedy",
56 "aria-label" : "Choose the remedy",
Jip-jan Alunkel 3.43 57 "placeholder" : "$services.localization.render('cases.word.remedy.placeholder')",
Jip-jan Alunkel 3.24 58 "data-error-response-type" : "use_label_undefined",
59 "data-query-type" : "JSON.remedies",
60 "data-query-list-type" : "suggest-select",
Jip-jan Alunkel 3.42 61 "data-suggest-list-header" : "$services.localization.render('cases.line.suggest_select_list')",
Jip-jan Alunkel 3.24 62 "data-query-list-contents" : "value/key",
63 "data-create-xobj" : "true",
Jip-jan Alunkel 6.1 64 "data-xobj-classname" : "books.WebHome",
Jip-jan Alunkel 3.24 65 "data-xobj-fieldname" : "remedy",
Jip-jan Alunkel 3.26 66 "help-block" : 'Select the remedy that is central in this case.'
Jip-jan Alunkel 3.24 67 })
68
69 #createFormElement($remedy)
70
Jip-jan Alunkel 3.27 71 #set($extra_info = {
72 "id" : "extra_info",
73 "type" : "checkbox",
74 "required" : "no",
75 "label" : "Extra information (optional)",
76 "value" : "yes"
77 })
78
79 #createFormElement($extra_info)
80
Jip-jan Alunkel 3.30 81 #createExpandStart("extra_info" "yes")
Jip-jan Alunkel 3.28 82
Jip-jan Alunkel 3.31 83 #set($author = {
Jip-jan Alunkel 3.32 84 "id" : "author",
Jip-jan Alunkel 3.31 85 "type" : "text",
Jip-jan Alunkel 7.2 86 "required" : "false",
Jip-jan Alunkel 3.32 87 "label" : "Author",
88 "aria-label" : "Enter the author name",
Jip-jan Alunkel 3.43 89 "placeholder" : "$services.localization.render('cases.word.author.placeholder')",
Jip-jan Alunkel 3.32 90 "data-query-type" : "XWQL.matchObject",
Jip-jan Alunkel 6.1 91 "data-query-scope" : "books",
Jip-jan Alunkel 3.31 92 "data-query-list-type" : "suggest-select",
Jip-jan Alunkel 3.43 93 "data-suggest-list-header" : "$services.localization.render('cases.line.suggest_select_list')",
Jip-jan Alunkel 3.32 94 "data-query-list-contents" : "value",
Jip-jan Alunkel 3.31 95 "data-create-xobj" : "true",
Jip-jan Alunkel 6.1 96 "data-xobj-classname" : "books.WebHome",
Jip-jan Alunkel 3.32 97 "data-xobj-fieldname" : "author",
98 "help-block" : 'Select the author of this case.'
Jip-jan Alunkel 3.31 99 })
Jip-jan Alunkel 3.29 100
Jip-jan Alunkel 3.33 101 #createFormElement($author)
102
Jip-jan Alunkel 3.30 103 #createExpandEnd()
Jip-jan Alunkel 3.28 104
Jip-jan Alunkel 3.13 105 #createFormEnd()
106
Jip-jan Alunkel 3.16 107 {{/html}}
Jip-jan Alunkel 2.2 108 {{/velocity}}