Changes for page Books
Last modified by Jip-jan Alunkel on November 23, 10:59
From version 8.27
edited by Jip-jan Alunkel
on April 17, 22:51
on April 17, 22:51
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", ... ... @@ -45,18 +45,10 @@ 45 45 "placeholder" : "Type", 46 46 "data-error-response-type" : "use_label_definite_1", 47 47 "data-set-space" : "true", 48 - "select-json" : { 49 - "boektiep_1" : "Dit is boektiep 1", 50 - "boektiep_2" : "Dit is boektiep 2", 51 - "boektiep_3" : "Dit is boektiep 3", 52 - "boektiep_4" : "Dit is boektiep 4", 53 - "boektiep_5" : "Dit is boektiep 5" 54 - }, 46 + "select-space-reference" : "books", 55 55 "help-block" : "Choose the type of book you would like to add." 56 56 }) 57 - 58 58 #createFormElement($booktype) 59 - 60 60 #set($book_title = { 61 61 "id" : "book_title", 62 62 "type" : "text", ... ... @@ -66,7 +66,7 @@ 66 66 "placeholder" : "Title", 67 67 "data-error-response-type" : "use_label_definite_1", 68 68 "data-query-type" : "XWQL.matchTitle", 69 - "data-query-scope" : " materia-medica",59 + "data-query-scope" : "books", 70 70 "data-query-list-type" : "suggest-negate", 71 71 "data-query-list-header" : "$services.localization.render('formMaker.line.suggest_negate_list')", 72 72 "data-query-list-contents" : "value", ... ... @@ -73,9 +73,7 @@ 73 73 "data-create-page" : "true", 74 74 "help-block" : 'When providing a title of a common type of book, please also provide the authorʼs last name, viz. Boericke Materia Medica.' 75 75 }) 76 - 77 77 #createFormElement($book_title) 78 - 79 79 #set($author = { 80 80 "id" : "author", 81 81 "type" : "text", ... ... @@ -95,38 +95,31 @@ 95 95 "data-xobj-fieldname" : "author", 96 96 "help-block" : 'Select the author of this case.' 97 97 }) 98 - 99 99 #createFormElement($author) 100 - 101 -#set($publish_year = { 102 - "id" : "publish_year", 103 - "type" : "number", 104 - "required" : "true", 105 - "label" : "Year of publishing", 106 - "aria-label" : "Enter the year of publishing", 107 - "placeholder" : "Year", 108 - "data-error-response-type" : "use_label_definite_1", 109 - "data-create-xobj" : "true", 110 - "data-xobj-classname" : "books.WebHome", 111 - "data-xobj-fieldname" : "publish_year" 112 -}) 113 - 114 -#createFormElement($publish_year) 115 - 116 116 #set($extra_info = { 117 117 "id" : "extra_info", 118 118 "type" : "checkbox", 119 119 "required" : "no", 120 120 "label" : "Extra information (optional)", 121 - "value" : "yes" 92 + "value" : "yes", 93 + "data-opener" : "true" 122 122 }) 123 - 124 124 #createFormElement($extra_info) 125 - 126 -#createExpandStart("extra_info" "yes") 127 - 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) 128 128 #createExpandEnd() 129 - 130 130 #set($submit = { 131 131 "id" : "create_book", 132 132 "button-text" : "Create book", ... ... @@ -133,7 +133,6 @@ 133 133 "help-block" : "" 134 134 }) 135 135 #createSubmit($submit) 136 - 137 137 #createFormEnd() 138 138 139 139 {{/html}}