Исходный код вики Books

Версия 8.19 от Jip-jan Alunkel на апреля 11, 17:00

Последние авторы
1 {{velocity}}
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}))
6 {{/velocity}}
7
8 All about books
9
10 {{include reference="assets.formMaker.macros" /}}
11
12 {{velocity}}
13 {{html}}
14
15 #createFormStart("homeoworld_form" "book")
16
17 #set($booktype = {
18 "id" : "booktype",
19 "type" : "select",
20 "required" : "true",
21 "label" : "Type of book",
22 "aria-label" : "Select the type of book",
23 "placeholder" : "Type",
24 "data-error-response-type" : "use_label_definite_1",
25 "data-set-space" : "true",
26 "space-reference" : "books",
27 "help-block" : "Choose the type of book you would like to add."
28 })
29
30 #createFormElement($booktype)
31
32 #set($book_title = {
33 "id" : "book_title",
34 "type" : "text",
35 "required" : "true",
36 "label" : "Title of the book",
37 "aria-label" : "Enter the title of the book",
38 "placeholder" : "Title",
39 "data-error-response-type" : "use_label_definite_1",
40 "data-query-type" : "XWQL.matchTitle",
41 "data-query-scope" : "books",
42 "data-query-list-type" : "suggest-negate",
43 "data-query-list-header" : "$services.localization.render('formMaker.line.suggest_negate_list')",
44 "data-query-list-contents" : "value",
45 "data-create-page" : "true",
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.'
47 })
48
49 #createFormElement($book_title)
50
51 #set($author = {
52 "id" : "author",
53 "type" : "text",
54 "required" : "true",
55 "label" : "Author of the book",
56 "aria-label" : "Enter the author of the book",
57 "placeholder" : "Author",
58 "data-error-response-type" : "use_label_definite_1",
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",
65 "data-create-xobj" : "true",
66 "data-xobj-classname" : "books.WebHome",
67 "data-xobj-fieldname" : "author",
68 "help-block" : 'Select the author of this case.'
69 })
70
71 #createFormElement($author)
72
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",
81 "data-create-xobj" : "true",
82 "data-xobj-classname" : "books.WebHome",
83 "data-xobj-fieldname" : "publish_year"
84 })
85
86 #createFormElement($publish_year)
87
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
100 #createExpandEnd()
101
102 #createFormEnd()
103
104 {{/html}}
105 {{/velocity}}