Wiki source code of Books
Version 8.16 by Jip-jan Alunkel on April 10, 17:02
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
3.11 | 1 | {{velocity}} |
![]() |
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})) | ||
![]() |
3.11 | 6 | {{/velocity}} |
![]() |
3.14 | 7 | |
![]() |
1.1 | 8 | All about books |
![]() |
2.2 | 9 | |
![]() |
5.2 | 10 | {{include reference="assets.formMaker.macros" /}} |
![]() |
2.2 | 11 | |
12 | {{velocity}} | ||
![]() |
3.16 | 13 | {{html}} |
![]() |
3.13 | 14 | |
![]() |
6.3 | 15 | #createFormStart("homeoworld_form" "book") |
![]() |
3.12 | 16 | |
![]() |
6.2 | 17 | #set($booktype = { |
18 | "id" : "booktype", | ||
![]() |
2.2 | 19 | "type" : "select", |
![]() |
7.2 | 20 | "required" : "true", |
![]() |
6.2 | 21 | "label" : "Type of book", |
![]() |
8.8 | 22 | "aria-label" : "Select the type of book", |
![]() |
8.3 | 23 | "data-error-response-type" : "use_label_definite_1", |
![]() |
2.2 | 24 | "data-set-space" : "true", |
![]() |
8.6 | 25 | "placeholder" : "Type", |
![]() |
6.1 | 26 | "space-reference" : "books", |
![]() |
8.7 | 27 | "help-block" : "Choose the type of book you would like to add." |
![]() |
2.2 | 28 | }) |
![]() |
3.13 | 29 | |
![]() |
6.2 | 30 | #createFormElement($booktype) |
![]() |
3.13 | 31 | |
![]() |
8.2 | 32 | #set($book_title = { |
33 | "id" : "book_title", | ||
![]() |
3.9 | 34 | "type" : "text", |
![]() |
7.2 | 35 | "required" : "true", |
![]() |
8.7 | 36 | "label" : "Title of the book", |
![]() |
8.2 | 37 | "aria-label" : "Enter the title of the book", |
![]() |
8.7 | 38 | "placeholder" : "Title", |
![]() |
8.2 | 39 | "data-error-response-type" : "use_label_definite_1", |
![]() |
3.9 | 40 | "data-query-type" : "XWQL.matchTitle", |
![]() |
6.1 | 41 | "data-query-scope" : "books", |
![]() |
3.9 | 42 | "data-query-list-type" : "suggest-negate", |
![]() |
8.8 | 43 | "data-query-list-header" : "$services.localization.render('formMaker.line.suggest_negate_list')", |
![]() |
3.9 | 44 | "data-query-list-contents" : "value", |
45 | "data-create-page" : "true", | ||
![]() |
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.' |
![]() |
3.9 | 47 | }) |
![]() |
3.13 | 48 | |
![]() |
8.4 | 49 | #createFormElement($book_title) |
![]() |
3.9 | 50 | |
![]() |
8.12 | 51 | #set($author = { |
52 | "id" : "author", | ||
53 | "type" : "text", | ||
![]() |
7.2 | 54 | "required" : "true", |
![]() |
8.12 | 55 | "label" : "Author of the book", |
56 | "aria-label" : "Enter the author of the book", | ||
57 | "placeholder" : "Author", | ||
58 | "data-query-type" : "XWQL.matchObject", | ||
59 | "data-query-scope" : "books", | ||
60 | "data-query-list-type" : "suggest-select", | ||
61 | "data-query-list-header" : "$services.localization.render('formMaker.line.suggest_select_list')", | ||
62 | "data-query-list-contents" : "value", | ||
63 | "data-query-list-editable" : "false", | ||
![]() |
3.24 | 64 | "data-create-xobj" : "true", |
![]() |
6.1 | 65 | "data-xobj-classname" : "books.WebHome", |
![]() |
8.12 | 66 | "data-xobj-fieldname" : "author", |
67 | "help-block" : 'Select the author of this case.' | ||
![]() |
3.24 | 68 | }) |
69 | |||
![]() |
8.12 | 70 | #createFormElement($author) |
![]() |
3.24 | 71 | |
![]() |
3.27 | 72 | #set($extra_info = { |
73 | "id" : "extra_info", | ||
74 | "type" : "checkbox", | ||
75 | "required" : "no", | ||
76 | "label" : "Extra information (optional)", | ||
77 | "value" : "yes" | ||
78 | }) | ||
79 | |||
80 | #createFormElement($extra_info) | ||
81 | |||
![]() |
3.30 | 82 | #createExpandStart("extra_info" "yes") |
![]() |
3.28 | 83 | |
![]() |
8.12 | 84 | #set($publish_year = { |
85 | "id" : "publish_year", | ||
86 | "type" : "number", | ||
87 | "required" : "true", | ||
88 | "label" : "Year of publishing", | ||
89 | "aria-label" : "Enter the year of publishing", | ||
90 | "placeholder" : "Year", | ||
91 | "data-error-response-type" : "use_label_definite_1", | ||
![]() |
3.31 | 92 | "data-create-xobj" : "true", |
![]() |
6.1 | 93 | "data-xobj-classname" : "books.WebHome", |
![]() |
8.12 | 94 | "data-xobj-fieldname" : "publish_year" |
![]() |
3.31 | 95 | }) |
![]() |
3.29 | 96 | |
![]() |
8.12 | 97 | #createFormElement($publish_year) |
![]() |
3.33 | 98 | |
![]() |
3.30 | 99 | #createExpandEnd() |
![]() |
3.28 | 100 | |
![]() |
3.13 | 101 | #createFormEnd() |
102 | |||
![]() |
3.16 | 103 | {{/html}} |
![]() |
2.2 | 104 | {{/velocity}} |