Changes for page Books

Last modified by Jip-jan Alunkel on November 23, 10:59

From version 8.20
edited by Jip-jan Alunkel
on April 11, 19:39
Change comment: Updated class property
To version 8.23
edited by Jip-jan Alunkel
on April 11, 23:53
Change comment: Updated class property

Summary

Details

Page properties
Content
... ... @@ -1,16 +1,37 @@
1 +{{include reference="assets.formMaker.macros" /}}
2 +
1 1  {{velocity}}
4 +{{html}}
2 2  #set($discard = $services.localization.use('document', 'cases.Code.translations'))
3 3  #set($discard = $services.localization.use('document', 'assets.formMaker.translations'))
4 4  #set($discard = $xwiki.ssx.use('assets.formMaker.WebHome'))
5 5  #set($discard = $xwiki.jsx.use('assets.formMaker.WebHome', {'minify' : false}))
6 -{{/velocity}}
7 -
9 +<p>
8 8  All about books
11 +</p>
12 +<h2 class="livetable">Overview of all books</h2>
13 +<div id="livetable">
9 9  
10 -{{include reference="assets.formMaker.macros" /}}
15 +#set ($columns = ["doc.title", "author", "doc.space"])
16 +#set ($columnsProperties = {
17 + "doc.title": {"type": "text", "filterable" : true, "sortable": true, "link": "view"},
18 + "remedy" : {"type": "text", "filterable" : true, "sortable": true, "size" : 4},
19 + "doc.space" : {"type": "text", "filterable" : true, "sortable": true, "size" : 4, "link": "space"}
20 +})
21 +#set ($options = {
22 + "className" : "books.WebHome",
23 + "translationPrefix" : "books.livetable.",
24 + "queryFilters" : "currentlanguage",
25 + "rowCount": 10
26 +})
27 +#livetable("books" $columns $columnsProperties $options)
11 11  
12 -{{velocity}}
13 -{{html}}
29 +</div>
30 +<h3>Add a book to this wiki</h3>
31 +<p>
32 + Do you know of any books that can be of value to people who would like to learn more about homeopathy?
33 + 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.
34 +</p>
14 14  
15 15  #createFormStart("homeoworld_form" "book")
16 16  
... ... @@ -61,7 +61,7 @@
61 61   "data-query-list-type" : "suggest-select",
62 62   "data-query-list-header" : "$services.localization.render('formMaker.line.suggest_select_list')",
63 63   "data-query-list-contents" : "value",
64 - "data-query-list-editable" : "false",
85 + "data-query-list-editable" : "true",
65 65   "data-create-xobj" : "true",
66 66   "data-xobj-classname" : "books.WebHome",
67 67   "data-xobj-fieldname" : "author",