Wiki source code of Books

Version 8.19 by Jip-jan Alunkel on April 11, 17:00

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 8.8 22 "aria-label" : "Select the type of book",
Jip-jan Alunkel 8.18 23 "placeholder" : "Type",
Jip-jan Alunkel 8.3 24 "data-error-response-type" : "use_label_definite_1",
Jip-jan Alunkel 2.2 25 "data-set-space" : "true",
Jip-jan Alunkel 6.1 26 "space-reference" : "books",
Jip-jan Alunkel 8.7 27 "help-block" : "Choose the type of book you would like to add."
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 8.2 32 #set($book_title = {
33 "id" : "book_title",
Jip-jan Alunkel 3.9 34 "type" : "text",
Jip-jan Alunkel 7.2 35 "required" : "true",
Jip-jan Alunkel 8.7 36 "label" : "Title of the book",
Jip-jan Alunkel 8.2 37 "aria-label" : "Enter the title of the book",
Jip-jan Alunkel 8.7 38 "placeholder" : "Title",
Jip-jan Alunkel 8.2 39 "data-error-response-type" : "use_label_definite_1",
Jip-jan Alunkel 3.9 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 8.8 43 "data-query-list-header" : "$services.localization.render('formMaker.line.suggest_negate_list')",
Jip-jan Alunkel 3.9 44 "data-query-list-contents" : "value",
45 "data-create-page" : "true",
Jip-jan Alunkel 8.8 46 "help-block" : 'When providing a title of a common type of book, please also provide the authorʼs last name, viz. Boericke Materia Medica.'
Jip-jan Alunkel 3.9 47 })
Jip-jan Alunkel 3.13 48
Jip-jan Alunkel 8.4 49 #createFormElement($book_title)
Jip-jan Alunkel 3.9 50
Jip-jan Alunkel 8.12 51 #set($author = {
52 "id" : "author",
53 "type" : "text",
Jip-jan Alunkel 7.2 54 "required" : "true",
Jip-jan Alunkel 8.12 55 "label" : "Author of the book",
56 "aria-label" : "Enter the author of the book",
57 "placeholder" : "Author",
Jip-jan Alunkel 8.19 58 "data-error-response-type" : "use_label_definite_1",
Jip-jan Alunkel 8.12 59 "data-query-type" : "XWQL.matchObject",
60 "data-query-scope" : "books",
61 "data-query-list-type" : "suggest-select",
62 "data-query-list-header" : "$services.localization.render('formMaker.line.suggest_select_list')",
63 "data-query-list-contents" : "value",
64 "data-query-list-editable" : "false",
Jip-jan Alunkel 3.24 65 "data-create-xobj" : "true",
Jip-jan Alunkel 6.1 66 "data-xobj-classname" : "books.WebHome",
Jip-jan Alunkel 8.12 67 "data-xobj-fieldname" : "author",
68 "help-block" : 'Select the author of this case.'
Jip-jan Alunkel 3.24 69 })
70
Jip-jan Alunkel 8.12 71 #createFormElement($author)
Jip-jan Alunkel 3.24 72
Jip-jan Alunkel 8.12 73 #set($publish_year = {
74 "id" : "publish_year",
75 "type" : "number",
76 "required" : "true",
77 "label" : "Year of publishing",
78 "aria-label" : "Enter the year of publishing",
79 "placeholder" : "Year",
80 "data-error-response-type" : "use_label_definite_1",
Jip-jan Alunkel 3.31 81 "data-create-xobj" : "true",
Jip-jan Alunkel 6.1 82 "data-xobj-classname" : "books.WebHome",
Jip-jan Alunkel 8.12 83 "data-xobj-fieldname" : "publish_year"
Jip-jan Alunkel 3.31 84 })
Jip-jan Alunkel 3.29 85
Jip-jan Alunkel 8.12 86 #createFormElement($publish_year)
Jip-jan Alunkel 3.33 87
Jip-jan Alunkel 8.18 88 #set($extra_info = {
89 "id" : "extra_info",
90 "type" : "checkbox",
91 "required" : "no",
92 "label" : "Extra information (optional)",
93 "value" : "yes"
94 })
95
96 #createFormElement($extra_info)
97
98 #createExpandStart("extra_info" "yes")
99
Jip-jan Alunkel 3.30 100 #createExpandEnd()
Jip-jan Alunkel 3.28 101
Jip-jan Alunkel 3.13 102 #createFormEnd()
103
Jip-jan Alunkel 3.16 104 {{/html}}
Jip-jan Alunkel 2.2 105 {{/velocity}}