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