Modifications pour le document Books

Modifié par Jip-jan Alunkel le novembre 23, 10:59

Depuis la version 8.17
modifié par Jip-jan Alunkel
sur avril 10, 17:02
Commentaire de modification : Updated class property
À la version 8.23
modifié par Jip-jan Alunkel
sur avril 11, 23:53
Commentaire de modification : Updated class property

Résumé

Détails

Propriétés de la Page
Contenu
... ... @@ -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  
... ... @@ -20,9 +20,9 @@
20 20   "required" : "true",
21 21   "label" : "Type of book",
22 22   "aria-label" : "Select the type of book",
44 + "placeholder" : "Type",
23 23   "data-error-response-type" : "use_label_definite_1",
24 24   "data-set-space" : "true",
25 - "placeholder" : "Type",
26 26   "space-reference" : "books",
27 27   "help-block" : "Choose the type of book you would like to add."
28 28  })
... ... @@ -55,12 +55,13 @@
55 55   "label" : "Author of the book",
56 56   "aria-label" : "Enter the author of the book",
57 57   "placeholder" : "Author",
79 + "data-error-response-type" : "use_label_definite_1",
58 58   "data-query-type" : "XWQL.matchObject",
59 59   "data-query-scope" : "books",
60 60   "data-query-list-type" : "suggest-select",
61 61   "data-query-list-header" : "$services.localization.render('formMaker.line.suggest_select_list')",
62 62   "data-query-list-contents" : "value",
63 - "data-query-list-editable" : "false",
85 + "data-query-list-editable" : "true",
64 64   "data-create-xobj" : "true",
65 65   "data-xobj-classname" : "books.WebHome",
66 66   "data-xobj-fieldname" : "author",
... ... @@ -69,18 +69,6 @@
69 69  
70 70  #createFormElement($author)
71 71  
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 -
84 84  #set($publish_year = {
85 85   "id" : "publish_year",
86 86   "type" : "number",
... ... @@ -96,8 +96,27 @@
96 96  
97 97  #createFormElement($publish_year)
98 98  
109 +#set($extra_info = {
110 + "id" : "extra_info",
111 + "type" : "checkbox",
112 + "required" : "no",
113 + "label" : "Extra information (optional)",
114 + "value" : "yes"
115 +})
116 +
117 +#createFormElement($extra_info)
118 +
119 +#createExpandStart("extra_info" "yes")
120 +
99 99  #createExpandEnd()
100 100  
123 +#set($submit = {
124 + "id" : "create_book",
125 + "button-text" : "Create book",
126 + "help-block" : ""
127 +})
128 +#createSubmit($submit)
129 +
101 101  #createFormEnd()
102 102  
103 103  {{/html}}