Changes for page Books

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

From version 8.27
edited by Jip-jan Alunkel
on April 17, 22:51
Change comment: Updated class property
To version 8.16
edited by Jip-jan Alunkel
on April 10, 17:02
Change comment: Added class property

Summary

Details

Page properties
Content
... ... @@ -1,38 +3,16 @@
1 -{{include reference="assets.formMaker.macros" /}}
2 -
3 3  {{velocity}}
4 4  #set($discard = $services.localization.use('document', 'cases.Code.translations'))
5 5  #set($discard = $services.localization.use('document', 'assets.formMaker.translations'))
6 6  #set($discard = $xwiki.ssx.use('assets.formMaker.WebHome'))
7 7  #set($discard = $xwiki.jsx.use('assets.formMaker.WebHome', {'minify' : false}))
6 +{{/velocity}}
8 8  
9 -{{html wiki="true" clean="false"}}
10 -<p>
11 11  All about books
12 -</p>
13 -<h2 class="livetable">Overview of all books</h2>
14 -<div id="livetable">
15 15  
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)
10 +{{include reference="assets.formMaker.macros" /}}
29 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>
12 +{{velocity}}
13 +{{html}}
36 36  
37 37  #createFormStart("homeoworld_form" "book")
38 38  
... ... @@ -42,16 +42,10 @@
42 42   "required" : "true",
43 43   "label" : "Type of book",
44 44   "aria-label" : "Select the type of book",
45 - "placeholder" : "Type",
46 46   "data-error-response-type" : "use_label_definite_1",
47 47   "data-set-space" : "true",
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 - },
25 + "placeholder" : "Type",
26 + "space-reference" : "books",
55 55   "help-block" : "Choose the type of book you would like to add."
56 56  })
57 57  
... ... @@ -66,7 +66,7 @@
66 66   "placeholder" : "Title",
67 67   "data-error-response-type" : "use_label_definite_1",
68 68   "data-query-type" : "XWQL.matchTitle",
69 - "data-query-scope" : "materia-medica",
41 + "data-query-scope" : "books",
70 70   "data-query-list-type" : "suggest-negate",
71 71   "data-query-list-header" : "$services.localization.render('formMaker.line.suggest_negate_list')",
72 72   "data-query-list-contents" : "value",
... ... @@ -83,13 +83,12 @@
83 83   "label" : "Author of the book",
84 84   "aria-label" : "Enter the author of the book",
85 85   "placeholder" : "Author",
86 - "data-error-response-type" : "use_label_definite_1",
87 87   "data-query-type" : "XWQL.matchObject",
88 88   "data-query-scope" : "books",
89 89   "data-query-list-type" : "suggest-select",
90 90   "data-query-list-header" : "$services.localization.render('formMaker.line.suggest_select_list')",
91 91   "data-query-list-contents" : "value",
92 - "data-query-list-editable" : "true",
63 + "data-query-list-editable" : "false",
93 93   "data-create-xobj" : "true",
94 94   "data-xobj-classname" : "books.WebHome",
95 95   "data-xobj-fieldname" : "author",
... ... @@ -98,6 +98,18 @@
98 98  
99 99  #createFormElement($author)
100 100  
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 +
101 101  #set($publish_year = {
102 102   "id" : "publish_year",
103 103   "type" : "number",
... ... @@ -113,27 +113,8 @@
113 113  
114 114  #createFormElement($publish_year)
115 115  
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 -
128 128  #createExpandEnd()
129 129  
130 -#set($submit = {
131 - "id" : "create_book",
132 - "button-text" : "Create book",
133 - "help-block" : ""
134 -})
135 -#createSubmit($submit)
136 -
137 137  #createFormEnd()
138 138  
139 139  {{/html}}
author
Use Suggest
... ... @@ -1,1 +1,0 @@
1 -1
publish_year