Changes for page Books

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

From version 9.22
edited by Jip-jan Alunkel
on August 31, 21:59
Change comment: Updated class property
To version 9.14
edited by Jip-jan Alunkel
on August 30, 22:31
Change comment: Updated class property

Summary

Details

Page properties
Content
... ... @@ -1,7 +1,6 @@
1 1  {{include reference="assets.pagemaker.macros"/}}
2 2  
3 3  {{velocity}}
4 -#set($discard = $services.localization.use('document', 'assets.global.translations'))
5 5  #set($discard = $services.localization.use('document', 'assets.pagemaker.translations'))
6 6  #set($discard = $xwiki.ssx.use('assets.pagemaker.WebHome', {'minify' : false}))
7 7  #set($discard = $xwiki.jsx.use('assets.pagemaker.WebHome', {'minify' : false}))
... ... @@ -13,16 +13,15 @@
13 13  <h2 class="livetable">Overview of all books</h2>
14 14  <div class="livetable">
15 15  
16 -#set ($columns = ["doc.title", "name", "doc.space"])
15 +#set ($columns = ["doc.title", "author", "doc.space"])
17 17  #set ($columnsProperties = {
18 - "doc.title": {"type": "text", "filterable" : true, "sortable": true, "link": "view"},
19 - "name": {"type": "text", "filterable" : true, "sortable": true, "headerClass": "remedy"},
20 - "doc.space": {"type": "text", "filterable" : true, "sortable": true, "headerClass": "locality", "link": "space"}
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"}
21 21  })
22 22  #set ($options = {
23 23   "className" : "books.WebHome",
24 - "translationPrefix" : "livetable.books.",
25 - "extraParams": "&name_class=assets.pagemaker.classes.persons",
23 + "translationPrefix" : "books.livetable.",
26 26   "queryFilters" : "currentlanguage",
27 27   "rowCount": 10
28 28  })
... ... @@ -35,14 +35,7 @@
35 35   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.
36 36  </p>
37 37  
38 -#set($form_start = {
39 - "id": "homeoworld_form",
40 - "product": "book",
41 - "method": "post",
42 - "url": "",
43 - "use_captcha": "false"
44 -})
45 -#createFormStart($form_start)
36 +#createFormStart("homeoworld_form" "book")
46 46  #set($booktype = {
47 47   "id" : "booktype",
48 48   "type" : "select",
... ... @@ -82,7 +82,7 @@
82 82   "data-default-value": "",
83 83   "placeholder" : "$services.localization.render('cases.word.author.placeholder')",
84 84   "data-auto-first-capital" : "true",
85 - "data-query-type" : "XWQL",
76 + "data-query-type" : "XWQL.matchObject",
86 86   "data-query-reference" : "assets.pagemaker.XWQL.matchObject",
87 87   "data-query-scope" : "",
88 88   "data-query-list-type" : "suggest-select",
... ... @@ -95,8 +95,9 @@
95 95   "data-modal-input" : ["$services.localization.render('global.word.lastname')", "$services.localization.render('global.word.firstname')"],
96 96   "data-modal-input-glue": ", ",
97 97   "data-error-response-type" : "use_label_definite_1",
98 - "help-block" : 'Enter the last name of the author of this book. Choose the author from the list or create a new author.'
89 + "help-block" : 'Enter the last name of the author of this case. Choose the author from the list or create a new author.'
99 99  })
91 +
100 100  #createFormElement($author)
101 101  #set($extra_info = {
102 102   "id" : "extra_info",
... ... @@ -128,10 +128,7 @@
128 128   "help-block" : ""
129 129  })
130 130  #createSubmit($submit)
131 -#set($form_end = {
132 - "use_captcha": "false"
133 -})
134 -#createFormEnd($form_end)
123 +#createFormEnd()
135 135  
136 136  {{/html}}
137 137  {{/velocity}}