Änderungen von Dokument Books
Zuletzt geändert von Jip-jan Alunkel am November 23, 10:59
Von Version 9.5
bearbeitet von Jip-jan Alunkel
am August 30, 21:58
am August 30, 21:58
Änderungskommentar:
Renamed back-links.
Auf Version 8.27
bearbeitet von Jip-jan Alunkel
am April 17, 22:51
am April 17, 22:51
Änderungskommentar:
Updated class property
Zusammenfassung
-
Seiteneigenschaften (1 geändert, 0 hinzugefügt, 0 gelöscht)
Details
- Seiteneigenschaften
-
- Inhalt
-
... ... @@ -1,9 +1,10 @@ 1 -{{include reference="assets. pagemaker.macros"/}}1 +{{include reference="assets.formMaker.macros" /}} 2 2 3 3 {{velocity}} 4 -#set($discard = $services.localization.use('document', 'assets.pagemaker.translations')) 5 -#set($discard = $xwiki.ssx.use('assets.pagemaker.WebHome')) 6 -#set($discard = $xwiki.jsx.use('assets.pagemaker.WebHome', {'minify' : false})) 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})) 7 7 8 8 {{html wiki="true" clean="false"}} 9 9 <p> ... ... @@ -10,7 +10,7 @@ 10 10 All about books 11 11 </p> 12 12 <h2 class="livetable">Overview of all books</h2> 13 -<div class="livetable">14 +<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") 38 + 37 37 #set($booktype = { 38 38 "id" : "booktype", 39 39 "type" : "select", ... ... @@ -43,10 +43,18 @@ 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", 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 + }, 47 47 "help-block" : "Choose the type of book you would like to add." 48 48 }) 57 + 49 49 #createFormElement($booktype) 59 + 50 50 #set($book_title = { 51 51 "id" : "book_title", 52 52 "type" : "text", ... ... @@ -56,7 +56,7 @@ 56 56 "placeholder" : "Title", 57 57 "data-error-response-type" : "use_label_definite_1", 58 58 "data-query-type" : "XWQL.matchTitle", 59 - "data-query-scope" : " books",69 + "data-query-scope" : "materia-medica", 60 60 "data-query-list-type" : "suggest-negate", 61 61 "data-query-list-header" : "$services.localization.render('formMaker.line.suggest_negate_list')", 62 62 "data-query-list-contents" : "value", ... ... @@ -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 }) 76 + 66 66 #createFormElement($book_title) 78 + 67 67 #set($author = { 68 68 "id" : "author", 69 69 "type" : "text", ... ... @@ -83,21 +83,13 @@ 83 83 "data-xobj-fieldname" : "author", 84 84 "help-block" : 'Select the author of this case.' 85 85 }) 98 + 86 86 #createFormElement($author) 87 -#set($extra_info = { 88 - "id" : "extra_info", 89 - "type" : "checkbox", 90 - "required" : "no", 91 - "label" : "Extra information (optional)", 92 - "value" : "yes", 93 - "data-opener" : "true" 94 -}) 95 -#createFormElement($extra_info) 96 -#createExpandStart($extra_info "yes") 100 + 97 97 #set($publish_year = { 98 98 "id" : "publish_year", 99 99 "type" : "number", 100 - "required" : " false",104 + "required" : "true", 101 101 "label" : "Year of publishing", 102 102 "aria-label" : "Enter the year of publishing", 103 103 "placeholder" : "Year", ... ... @@ -106,8 +106,23 @@ 106 106 "data-xobj-classname" : "books.WebHome", 107 107 "data-xobj-fieldname" : "publish_year" 108 108 }) 113 + 109 109 #createFormElement($publish_year) 115 + 116 +#set($extra_info = { 117 + "id" : "extra_info", 118 + "type" : "checkbox", 119 + "required" : "no", 120 + "label" : "Extra information (optional)", 121 + "value" : "yes" 122 +}) 123 + 124 +#createFormElement($extra_info) 125 + 126 +#createExpandStart("extra_info" "yes") 127 + 110 110 #createExpandEnd() 129 + 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) 136 + 117 117 #createFormEnd() 118 118 119 119 {{/html}}