Wiki source code of Books
Version 8.22 by Jip-jan Alunkel on April 11, 23:52
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 | |
![]() |
2.2 | 8 | |
![]() |
5.2 | 9 | {{include reference="assets.formMaker.macros" /}} |
![]() |
2.2 | 10 | |
11 | {{velocity}} | ||
![]() |
3.16 | 12 | {{html}} |
![]() |
8.22 | 13 | <p> |
14 | All about books | ||
15 | </p> | ||
16 | <h2 class="livetable">Overview of all books</h2> | ||
17 | <div id="livetable"> | ||
![]() |
3.13 | 18 | |
![]() |
8.22 | 19 | #set ($columns = ["doc.title", "author", "doc.space"]) |
20 | #set ($columnsProperties = { | ||
21 | "doc.title": {"type": "text", "filterable" : true, "sortable": true, "link": "view"}, | ||
22 | "remedy" : {"type": "text", "filterable" : true, "sortable": true, "size" : 4}, | ||
23 | "doc.space" : {"type": "text", "filterable" : true, "sortable": true, "size" : 4, "link": "space"} | ||
24 | }) | ||
25 | #set ($options = { | ||
26 | "className" : "books.WebHome", | ||
27 | "translationPrefix" : "books.livetable.", | ||
28 | "queryFilters" : "currentlanguage", | ||
29 | "rowCount": 10 | ||
30 | }) | ||
31 | #livetable("books" $columns $columnsProperties $options) | ||
32 | |||
33 | </div> | ||
34 | <h3>Add a book to this wiki</h3> | ||
35 | <p> | ||
36 | Do you know of any books that can be of value to people who would like to learn more about homeopathy? | ||
37 | Please feel free to share these books with our readers. However, to make sure your case is correctly filed in this wiki it is necessary that you answer a few simple questions about the case. | ||
38 | </p> | ||
39 | |||
![]() |
6.3 | 40 | #createFormStart("homeoworld_form" "book") |
![]() |
3.12 | 41 | |
![]() |
6.2 | 42 | #set($booktype = { |
43 | "id" : "booktype", | ||
![]() |
2.2 | 44 | "type" : "select", |
![]() |
7.2 | 45 | "required" : "true", |
![]() |
6.2 | 46 | "label" : "Type of book", |
![]() |
8.8 | 47 | "aria-label" : "Select the type of book", |
![]() |
8.18 | 48 | "placeholder" : "Type", |
![]() |
8.3 | 49 | "data-error-response-type" : "use_label_definite_1", |
![]() |
2.2 | 50 | "data-set-space" : "true", |
![]() |
6.1 | 51 | "space-reference" : "books", |
![]() |
8.7 | 52 | "help-block" : "Choose the type of book you would like to add." |
![]() |
2.2 | 53 | }) |
![]() |
3.13 | 54 | |
![]() |
6.2 | 55 | #createFormElement($booktype) |
![]() |
3.13 | 56 | |
![]() |
8.2 | 57 | #set($book_title = { |
58 | "id" : "book_title", | ||
![]() |
3.9 | 59 | "type" : "text", |
![]() |
7.2 | 60 | "required" : "true", |
![]() |
8.7 | 61 | "label" : "Title of the book", |
![]() |
8.2 | 62 | "aria-label" : "Enter the title of the book", |
![]() |
8.7 | 63 | "placeholder" : "Title", |
![]() |
8.2 | 64 | "data-error-response-type" : "use_label_definite_1", |
![]() |
3.9 | 65 | "data-query-type" : "XWQL.matchTitle", |
![]() |
6.1 | 66 | "data-query-scope" : "books", |
![]() |
3.9 | 67 | "data-query-list-type" : "suggest-negate", |
![]() |
8.8 | 68 | "data-query-list-header" : "$services.localization.render('formMaker.line.suggest_negate_list')", |
![]() |
3.9 | 69 | "data-query-list-contents" : "value", |
70 | "data-create-page" : "true", | ||
![]() |
8.8 | 71 | "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 | 72 | }) |
![]() |
3.13 | 73 | |
![]() |
8.4 | 74 | #createFormElement($book_title) |
![]() |
3.9 | 75 | |
![]() |
8.12 | 76 | #set($author = { |
77 | "id" : "author", | ||
78 | "type" : "text", | ||
![]() |
7.2 | 79 | "required" : "true", |
![]() |
8.12 | 80 | "label" : "Author of the book", |
81 | "aria-label" : "Enter the author of the book", | ||
82 | "placeholder" : "Author", | ||
![]() |
8.19 | 83 | "data-error-response-type" : "use_label_definite_1", |
![]() |
8.12 | 84 | "data-query-type" : "XWQL.matchObject", |
85 | "data-query-scope" : "books", | ||
86 | "data-query-list-type" : "suggest-select", | ||
87 | "data-query-list-header" : "$services.localization.render('formMaker.line.suggest_select_list')", | ||
88 | "data-query-list-contents" : "value", | ||
![]() |
8.21 | 89 | "data-query-list-editable" : "true", |
![]() |
3.24 | 90 | "data-create-xobj" : "true", |
![]() |
6.1 | 91 | "data-xobj-classname" : "books.WebHome", |
![]() |
8.12 | 92 | "data-xobj-fieldname" : "author", |
93 | "help-block" : 'Select the author of this case.' | ||
![]() |
3.24 | 94 | }) |
95 | |||
![]() |
8.12 | 96 | #createFormElement($author) |
![]() |
3.24 | 97 | |
![]() |
8.12 | 98 | #set($publish_year = { |
99 | "id" : "publish_year", | ||
100 | "type" : "number", | ||
101 | "required" : "true", | ||
102 | "label" : "Year of publishing", | ||
103 | "aria-label" : "Enter the year of publishing", | ||
104 | "placeholder" : "Year", | ||
105 | "data-error-response-type" : "use_label_definite_1", | ||
![]() |
3.31 | 106 | "data-create-xobj" : "true", |
![]() |
6.1 | 107 | "data-xobj-classname" : "books.WebHome", |
![]() |
8.12 | 108 | "data-xobj-fieldname" : "publish_year" |
![]() |
3.31 | 109 | }) |
![]() |
3.29 | 110 | |
![]() |
8.12 | 111 | #createFormElement($publish_year) |
![]() |
3.33 | 112 | |
![]() |
8.18 | 113 | #set($extra_info = { |
114 | "id" : "extra_info", | ||
115 | "type" : "checkbox", | ||
116 | "required" : "no", | ||
117 | "label" : "Extra information (optional)", | ||
118 | "value" : "yes" | ||
119 | }) | ||
120 | |||
121 | #createFormElement($extra_info) | ||
122 | |||
123 | #createExpandStart("extra_info" "yes") | ||
124 | |||
![]() |
3.30 | 125 | #createExpandEnd() |
![]() |
3.28 | 126 | |
![]() |
8.20 | 127 | #set($submit = { |
128 | "id" : "create_book", | ||
129 | "button-text" : "Create book", | ||
130 | "help-block" : "" | ||
131 | }) | ||
132 | #createSubmit($submit) | ||
133 | |||
![]() |
3.13 | 134 | #createFormEnd() |
135 | |||
![]() |
3.16 | 136 | {{/html}} |
![]() |
2.2 | 137 | {{/velocity}} |