Changes for page Books

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

From version 9.8
edited by Jip-jan Alunkel
on August 30, 22:01
Change comment: Renamed back-links.
To version 8.22
edited by Jip-jan Alunkel
on April 11, 23:52
Change comment: Updated class property

Summary

Details

Page properties
Content
... ... @@ -1,16 +3,20 @@
1 -{{include reference="assets.pagemaker.macros"/}}
2 -
3 3  {{velocity}}
4 -#set($discard = $services.localization.use('document', 'assets.pagemaker.translations'))
5 -#set($discard = $xwiki.ssx.use('assets.pagemaker.WebHome', {'minify' : false}))
6 -#set($discard = $xwiki.jsx.use('assets.pagemaker.WebHome', {'minify' : false}))
2 +#set($discard = $services.localization.use('document', 'cases.Code.translations'))
3 +#set($discard = $services.localization.use('document', 'assets.formMaker.translations'))
4 +#set($discard = $xwiki.ssx.use('assets.formMaker.WebHome'))
5 +#set($discard = $xwiki.jsx.use('assets.formMaker.WebHome', {'minify' : false}))
6 +{{/velocity}}
7 7  
8 -{{html wiki="true" clean="false"}}
8 +
9 +{{include reference="assets.formMaker.macros" /}}
10 +
11 +{{velocity}}
12 +{{html}}
9 9  <p>
10 10  All about books
11 11  </p>
12 12  <h2 class="livetable">Overview of all books</h2>
13 -<div class="livetable">
17 +<div id="livetable">
14 14  
15 15  #set ($columns = ["doc.title", "author", "doc.space"])
16 16  #set ($columnsProperties = {
... ... @@ -34,6 +34,7 @@
34 34  </p>
35 35  
36 36  #createFormStart("homeoworld_form" "book")
41 +
37 37  #set($booktype = {
38 38   "id" : "booktype",
39 39   "type" : "select",
... ... @@ -43,10 +43,12 @@
43 43   "placeholder" : "Type",
44 44   "data-error-response-type" : "use_label_definite_1",
45 45   "data-set-space" : "true",
46 - "select-space-reference" : "books",
51 + "space-reference" : "books",
47 47   "help-block" : "Choose the type of book you would like to add."
48 48  })
54 +
49 49  #createFormElement($booktype)
56 +
50 50  #set($book_title = {
51 51   "id" : "book_title",
52 52   "type" : "text",
... ... @@ -63,7 +63,9 @@
63 63   "data-create-page" : "true",
64 64   "help-block" : 'When providing a title of a common type of book, please also provide the authorʼs last name, viz. Boericke Materia Medica.'
65 65  })
73 +
66 66  #createFormElement($book_title)
75 +
67 67  #set($author = {
68 68   "id" : "author",
69 69   "type" : "text",
... ... @@ -83,31 +83,38 @@
83 83   "data-xobj-fieldname" : "author",
84 84   "help-block" : 'Select the author of this case.'
85 85  })
95 +
86 86  #createFormElement($author)
97 +
98 +#set($publish_year = {
99 + "id" : "publish_year",
100 + "type" : "number",
101 + "required" : "true",
102 + "label" : "Year of publishing",
103 + "aria-label" : "Enter the year of publishing",
104 + "placeholder" : "Year",
105 + "data-error-response-type" : "use_label_definite_1",
106 + "data-create-xobj" : "true",
107 + "data-xobj-classname" : "books.WebHome",
108 + "data-xobj-fieldname" : "publish_year"
109 +})
110 +
111 +#createFormElement($publish_year)
112 +
87 87  #set($extra_info = {
88 88   "id" : "extra_info",
89 89   "type" : "checkbox",
90 90   "required" : "no",
91 91   "label" : "Extra information (optional)",
92 - "value" : "1",
93 - "data-opener" : "true"
118 + "value" : "yes"
94 94  })
120 +
95 95  #createFormElement($extra_info)
96 -#createExpandStart($extra_info "1")
97 - #set($publish_year = {
98 - "id" : "publish_year",
99 - "type" : "number",
100 - "required" : "false",
101 - "label" : "Year of publishing",
102 - "aria-label" : "Enter the year of publishing",
103 - "placeholder" : "Year",
104 - "data-error-response-type" : "use_label_definite_1",
105 - "data-create-xobj" : "true",
106 - "data-xobj-classname" : "books.WebHome",
107 - "data-xobj-fieldname" : "publish_year"
108 - })
109 - #createFormElement($publish_year)
122 +
123 +#createExpandStart("extra_info" "yes")
124 +
110 110  #createExpandEnd()
126 +
111 111  #set($submit = {
112 112   "id" : "create_book",
113 113   "button-text" : "Create book",
... ... @@ -114,6 +114,7 @@
114 114   "help-block" : ""
115 115  })
116 116  #createSubmit($submit)
133 +
117 117  #createFormEnd()
118 118  
119 119  {{/html}}