Changes for page Books

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

From version 8.23
edited by Jip-jan Alunkel
on April 11, 23:53
Change comment: Updated class property
To version 8.30
edited by Jip-jan Alunkel
on April 17, 23:28
Change comment: Updated class property

Summary

Details

Page properties
Content
... ... @@ -1,11 +1,12 @@
1 1  {{include reference="assets.formMaker.macros" /}}
2 2  
3 3  {{velocity}}
4 -{{html}}
5 5  #set($discard = $services.localization.use('document', 'cases.Code.translations'))
6 6  #set($discard = $services.localization.use('document', 'assets.formMaker.translations'))
7 7  #set($discard = $xwiki.ssx.use('assets.formMaker.WebHome'))
8 8  #set($discard = $xwiki.jsx.use('assets.formMaker.WebHome', {'minify' : false}))
8 +
9 +{{html wiki="true" clean="false"}}
9 9  <p>
10 10  All about books
11 11  </p>
... ... @@ -34,7 +34,6 @@
34 34  </p>
35 35  
36 36  #createFormStart("homeoworld_form" "book")
37 -
38 38  #set($booktype = {
39 39   "id" : "booktype",
40 40   "type" : "select",
... ... @@ -44,12 +44,10 @@
44 44   "placeholder" : "Type",
45 45   "data-error-response-type" : "use_label_definite_1",
46 46   "data-set-space" : "true",
47 - "space-reference" : "books",
47 + "select-space-reference" : "books",
48 48   "help-block" : "Choose the type of book you would like to add."
49 49  })
50 -
51 51  #createFormElement($booktype)
52 -
53 53  #set($book_title = {
54 54   "id" : "book_title",
55 55   "type" : "text",
... ... @@ -66,9 +66,7 @@
66 66   "data-create-page" : "true",
67 67   "help-block" : 'When providing a title of a common type of book, please also provide the authorʼs last name, viz. Boericke Materia Medica.'
68 68  })
69 -
70 70  #createFormElement($book_title)
71 -
72 72  #set($author = {
73 73   "id" : "author",
74 74   "type" : "text",
... ... @@ -88,9 +88,16 @@
88 88   "data-xobj-fieldname" : "author",
89 89   "help-block" : 'Select the author of this case.'
90 90  })
91 -
92 92  #createFormElement($author)
93 -
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")
94 94  #set($publish_year = {
95 95   "id" : "publish_year",
96 96   "type" : "number",
... ... @@ -103,23 +103,8 @@
103 103   "data-xobj-classname" : "books.WebHome",
104 104   "data-xobj-fieldname" : "publish_year"
105 105  })
106 -
107 107  #createFormElement($publish_year)
108 -
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 -
121 121  #createExpandEnd()
122 -
123 123  #set($submit = {
124 124   "id" : "create_book",
125 125   "button-text" : "Create book",
... ... @@ -126,7 +126,6 @@
126 126   "help-block" : ""
127 127  })
128 128  #createSubmit($submit)
129 -
130 130  #createFormEnd()
131 131  
132 132  {{/html}}