Changes for page Books

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

From version 8.22
edited by Jip-jan Alunkel
on April 11, 23:52
Change comment: Updated class property
To version 8.14
edited by Jip-jan Alunkel
on April 10, 16:59
Change comment: Removed class property "remedy"

Summary

Details

Page properties
Content
... ... @@ -5,38 +5,13 @@
5 5  #set($discard = $xwiki.jsx.use('assets.formMaker.WebHome', {'minify' : false}))
6 6  {{/velocity}}
7 7  
8 +All about books
8 8  
9 9  {{include reference="assets.formMaker.macros" /}}
10 10  
11 11  {{velocity}}
12 12  {{html}}
13 -<p>
14 -All about books
15 -</p>
16 -<h2 class="livetable">Overview of all books</h2>
17 -<div id="livetable">
18 18  
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 -
40 40  #createFormStart("homeoworld_form" "book")
41 41  
42 42  #set($booktype = {
... ... @@ -45,9 +45,9 @@
45 45   "required" : "true",
46 46   "label" : "Type of book",
47 47   "aria-label" : "Select the type of book",
48 - "placeholder" : "Type",
49 49   "data-error-response-type" : "use_label_definite_1",
50 50   "data-set-space" : "true",
25 + "placeholder" : "Type",
51 51   "space-reference" : "books",
52 52   "help-block" : "Choose the type of book you would like to add."
53 53  })
... ... @@ -80,13 +80,12 @@
80 80   "label" : "Author of the book",
81 81   "aria-label" : "Enter the author of the book",
82 82   "placeholder" : "Author",
83 - "data-error-response-type" : "use_label_definite_1",
84 84   "data-query-type" : "XWQL.matchObject",
85 85   "data-query-scope" : "books",
86 86   "data-query-list-type" : "suggest-select",
87 87   "data-query-list-header" : "$services.localization.render('formMaker.line.suggest_select_list')",
88 88   "data-query-list-contents" : "value",
89 - "data-query-list-editable" : "true",
63 + "data-query-list-editable" : "false",
90 90   "data-create-xobj" : "true",
91 91   "data-xobj-classname" : "books.WebHome",
92 92   "data-xobj-fieldname" : "author",
... ... @@ -95,6 +95,18 @@
95 95  
96 96  #createFormElement($author)
97 97  
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 +
82 +#createExpandStart("extra_info" "yes")
83 +
98 98  #set($publish_year = {
99 99   "id" : "publish_year",
100 100   "type" : "number",
... ... @@ -110,27 +110,8 @@
110 110  
111 111  #createFormElement($publish_year)
112 112  
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 -
125 125  #createExpandEnd()
126 126  
127 -#set($submit = {
128 - "id" : "create_book",
129 - "button-text" : "Create book",
130 - "help-block" : ""
131 -})
132 -#createSubmit($submit)
133 -
134 134  #createFormEnd()
135 135  
136 136  {{/html}}
author
Use Suggest
... ... @@ -1,1 +1,0 @@
1 -1
type
Number
... ... @@ -1,0 +1,1 @@
1 +2
Size
... ... @@ -1,0 +1,1 @@
1 +30
Pretty Name
... ... @@ -1,0 +1,1 @@
1 +type
Name
... ... @@ -1,0 +1,1 @@
1 +type
Use Suggest
... ... @@ -1,0 +1,1 @@
1 +1
publish_year
Number
... ... @@ -1,1 +1,0 @@
1 -2
Number Type
... ... @@ -1,1 +1,0 @@
1 -long
Size
... ... @@ -1,1 +1,0 @@
1 -30
Pretty Name
... ... @@ -1,1 +1,0 @@
1 -publish_year
Name
... ... @@ -1,1 +1,0 @@
1 -publish_year