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 9.2
edited by Jip-jan Alunkel
on August 30, 21:54
Change comment: Renamed back-links.

Summary

Details

Page properties
Content
... ... @@ -1,20 +1,17 @@
1 +{{include reference="assets.pagemaker.macros"/}}
2 +
1 1  {{velocity}}
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 7  
8 -
9 -{{include reference="assets.formMaker.macros" /}}
10 -
11 -{{velocity}}
12 -{{html}}
9 +{{html wiki="true" clean="false"}}
13 13  <p>
14 14  All about books
15 15  </p>
16 16  <h2 class="livetable">Overview of all books</h2>
17 -<div id="livetable">
14 +<div class="livetable">
18 18  
19 19  #set ($columns = ["doc.title", "author", "doc.space"])
20 20  #set ($columnsProperties = {
... ... @@ -38,7 +38,6 @@
38 38  </p>
39 39  
40 40  #createFormStart("homeoworld_form" "book")
41 -
42 42  #set($booktype = {
43 43   "id" : "booktype",
44 44   "type" : "select",
... ... @@ -48,12 +48,10 @@
48 48   "placeholder" : "Type",
49 49   "data-error-response-type" : "use_label_definite_1",
50 50   "data-set-space" : "true",
51 - "space-reference" : "books",
47 + "select-space-reference" : "books",
52 52   "help-block" : "Choose the type of book you would like to add."
53 53  })
54 -
55 55  #createFormElement($booktype)
56 -
57 57  #set($book_title = {
58 58   "id" : "book_title",
59 59   "type" : "text",
... ... @@ -70,9 +70,7 @@
70 70   "data-create-page" : "true",
71 71   "help-block" : 'When providing a title of a common type of book, please also provide the authorʼs last name, viz. Boericke Materia Medica.'
72 72  })
73 -
74 74  #createFormElement($book_title)
75 -
76 76  #set($author = {
77 77   "id" : "author",
78 78   "type" : "text",
... ... @@ -92,13 +92,20 @@
92 92   "data-xobj-fieldname" : "author",
93 93   "help-block" : 'Select the author of this case.'
94 94  })
95 -
96 96  #createFormElement($author)
97 -
88 +#set($extra_info = {
89 + "id" : "extra_info",
90 + "type" : "checkbox",
91 + "required" : "no",
92 + "label" : "Extra information (optional)",
93 + "value" : "yes"
94 +})
95 +#createFormElement($extra_info)
96 +#createExpandStart("extra_info" "yes")
98 98  #set($publish_year = {
99 99   "id" : "publish_year",
100 100   "type" : "number",
101 - "required" : "true",
100 + "required" : "false",
102 102   "label" : "Year of publishing",
103 103   "aria-label" : "Enter the year of publishing",
104 104   "placeholder" : "Year",
... ... @@ -107,23 +107,8 @@
107 107   "data-xobj-classname" : "books.WebHome",
108 108   "data-xobj-fieldname" : "publish_year"
109 109  })
110 -
111 111  #createFormElement($publish_year)
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 -
127 127  #set($submit = {
128 128   "id" : "create_book",
129 129   "button-text" : "Create book",
... ... @@ -130,7 +130,6 @@
130 130   "help-block" : ""
131 131  })
132 132  #createSubmit($submit)
133 -
134 134  #createFormEnd()
135 135  
136 136  {{/html}}