Changes for page Books
Last modified by Jip-jan Alunkel on November 23, 10:59
From version 8.28
edited by Jip-jan Alunkel
on April 17, 23:24
on April 17, 23:24
Change comment:
Updated class property
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,10 +1,9 @@ 1 -{{include reference="assets. formMaker.macros"1 +{{include reference="assets.pagemaker.macros"/}} 2 2 3 3 {{velocity}} 4 -#set($discard = $services.localization.use('document', 'cases.Code.translations')) 5 -#set($discard = $services.localization.use('document', 'assets.formMaker.translations')) 6 -#set($discard = $xwiki.ssx.use('assets.formMaker.WebHome')) 7 -#set($discard = $xwiki.jsx.use('assets.formMaker.WebHome', {'minify' : false})) 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})) 8 8 9 9 {{html wiki="true" clean="false"}} 10 10 <p> ... ... @@ -11,7 +11,7 @@ 11 11 All about books 12 12 </p> 13 13 <h2 class="livetable">Overview of all books</h2> 14 -<div id="livetable">13 +<div class="livetable"> 15 15 16 16 #set ($columns = ["doc.title", "author", "doc.space"]) 17 17 #set ($columnsProperties = { ... ... @@ -35,7 +35,6 @@ 35 35 </p> 36 36 37 37 #createFormStart("homeoworld_form" "book") 38 - 39 39 #set($booktype = { 40 40 "id" : "booktype", 41 41 "type" : "select", ... ... @@ -48,9 +48,7 @@ 48 48 "select-space-reference" : "books", 49 49 "help-block" : "Choose the type of book you would like to add." 50 50 }) 51 - 52 52 #createFormElement($booktype) 53 - 54 54 #set($book_title = { 55 55 "id" : "book_title", 56 56 "type" : "text", ... ... @@ -60,7 +60,7 @@ 60 60 "placeholder" : "Title", 61 61 "data-error-response-type" : "use_label_definite_1", 62 62 "data-query-type" : "XWQL.matchTitle", 63 - "data-query-scope" : " materia-medica",59 + "data-query-scope" : "books", 64 64 "data-query-list-type" : "suggest-negate", 65 65 "data-query-list-header" : "$services.localization.render('formMaker.line.suggest_negate_list')", 66 66 "data-query-list-contents" : "value", ... ... @@ -67,9 +67,7 @@ 67 67 "data-create-page" : "true", 68 68 "help-block" : 'When providing a title of a common type of book, please also provide the authorʼs last name, viz. Boericke Materia Medica.' 69 69 }) 70 - 71 71 #createFormElement($book_title) 72 - 73 73 #set($author = { 74 74 "id" : "author", 75 75 "type" : "text", ... ... @@ -89,38 +89,31 @@ 89 89 "data-xobj-fieldname" : "author", 90 90 "help-block" : 'Select the author of this case.' 91 91 }) 92 - 93 93 #createFormElement($author) 94 - 95 -#set($publish_year = { 96 - "id" : "publish_year", 97 - "type" : "number", 98 - "required" : "true", 99 - "label" : "Year of publishing", 100 - "aria-label" : "Enter the year of publishing", 101 - "placeholder" : "Year", 102 - "data-error-response-type" : "use_label_definite_1", 103 - "data-create-xobj" : "true", 104 - "data-xobj-classname" : "books.WebHome", 105 - "data-xobj-fieldname" : "publish_year" 106 -}) 107 - 108 -#createFormElement($publish_year) 109 - 110 110 #set($extra_info = { 111 111 "id" : "extra_info", 112 112 "type" : "checkbox", 113 113 "required" : "no", 114 114 "label" : "Extra information (optional)", 115 - "value" : "yes" 92 + "value" : "1", 93 + "data-opener" : "true" 116 116 }) 117 - 118 118 #createFormElement($extra_info) 119 - 120 -#createExpandStart("extra_info" "yes") 121 - 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 122 #createExpandEnd() 123 - 124 124 #set($submit = { 125 125 "id" : "create_book", 126 126 "button-text" : "Create book", ... ... @@ -127,7 +127,6 @@ 127 127 "help-block" : "" 128 128 }) 129 129 #createSubmit($submit) 130 - 131 131 #createFormEnd() 132 132 133 133 {{/html}}