Changes for page Books
Last modified by Jip-jan Alunkel on November 23, 10:59
From version 8.25
edited by Jip-jan Alunkel
on April 16, 21:40
on April 16, 21:40
Change comment:
Updated class property
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,38 +3,16 @@ 1 -{{include reference="assets.formMaker.macros" /}} 2 - 3 3 {{velocity}} 4 4 #set($discard = $services.localization.use('document', 'cases.Code.translations')) 5 5 #set($discard = $services.localization.use('document', 'assets.formMaker.translations')) 6 6 #set($discard = $xwiki.ssx.use('assets.formMaker.WebHome')) 7 7 #set($discard = $xwiki.jsx.use('assets.formMaker.WebHome', {'minify' : false})) 6 +{{/velocity}} 8 8 9 -{{html wiki="true" clean="false"}} 10 -<p> 11 11 All about books 12 -</p> 13 -<h2 class="livetable">Overview of all books</h2> 14 -<div id="livetable"> 15 15 16 -#set ($columns = ["doc.title", "author", "doc.space"]) 17 -#set ($columnsProperties = { 18 - "doc.title": {"type": "text", "filterable" : true, "sortable": true, "link": "view"}, 19 - "remedy" : {"type": "text", "filterable" : true, "sortable": true, "size" : 4}, 20 - "doc.space" : {"type": "text", "filterable" : true, "sortable": true, "size" : 4, "link": "space"} 21 -}) 22 -#set ($options = { 23 - "className" : "books.WebHome", 24 - "translationPrefix" : "books.livetable.", 25 - "queryFilters" : "currentlanguage", 26 - "rowCount": 10 27 -}) 28 -#livetable("books" $columns $columnsProperties $options) 10 +{{include reference="assets.formMaker.macros" /}} 29 29 30 -</div> 31 -<h3>Add a book to this wiki</h3> 32 -<p> 33 - Do you know of any books that can be of value to people who would like to learn more about homeopathy? 34 - Please feel free to share these books with our readers. However, to make sure your case is correctly filed in this wiki it is necessary that you answer a few simple questions about the case. 35 -</p> 12 +{{velocity}} 13 +{{html}} 36 36 37 37 #createFormStart("homeoworld_form" "book") 38 38 ... ... @@ -42,9 +42,9 @@ 42 42 "required" : "true", 43 43 "label" : "Type of book", 44 44 "aria-label" : "Select the type of book", 45 - "placeholder" : "Type", 46 46 "data-error-response-type" : "use_label_definite_1", 47 47 "data-set-space" : "true", 25 + "placeholder" : "Type", 48 48 "space-reference" : "books", 49 49 "help-block" : "Choose the type of book you would like to add." 50 50 }) ... ... @@ -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" : "books ^materia-medica",41 + "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", ... ... @@ -77,13 +77,12 @@ 77 77 "label" : "Author of the book", 78 78 "aria-label" : "Enter the author of the book", 79 79 "placeholder" : "Author", 80 - "data-error-response-type" : "use_label_definite_1", 81 81 "data-query-type" : "XWQL.matchObject", 82 82 "data-query-scope" : "books", 83 83 "data-query-list-type" : "suggest-select", 84 84 "data-query-list-header" : "$services.localization.render('formMaker.line.suggest_select_list')", 85 85 "data-query-list-contents" : "value", 86 - "data-query-list-editable" : " true",63 + "data-query-list-editable" : "false", 87 87 "data-create-xobj" : "true", 88 88 "data-xobj-classname" : "books.WebHome", 89 89 "data-xobj-fieldname" : "author", ... ... @@ -92,6 +92,18 @@ 92 92 93 93 #createFormElement($author) 94 94 72 +#set($extra_info = { 73 + "id" : "extra_info", 74 + "type" : "checkbox", 75 + "required" : "no", 76 + "label" : "Extra information (optional)", 77 + "value" : "yes" 78 +}) 79 + 80 +#createFormElement($extra_info) 81 + 82 +#createExpandStart("extra_info" "yes") 83 + 95 95 #set($publish_year = { 96 96 "id" : "publish_year", 97 97 "type" : "number", ... ... @@ -107,27 +107,8 @@ 107 107 108 108 #createFormElement($publish_year) 109 109 110 -#set($extra_info = { 111 - "id" : "extra_info", 112 - "type" : "checkbox", 113 - "required" : "no", 114 - "label" : "Extra information (optional)", 115 - "value" : "yes" 116 -}) 117 - 118 -#createFormElement($extra_info) 119 - 120 -#createExpandStart("extra_info" "yes") 121 - 122 122 #createExpandEnd() 123 123 124 -#set($submit = { 125 - "id" : "create_book", 126 - "button-text" : "Create book", 127 - "help-block" : "" 128 -}) 129 -#createSubmit($submit) 130 - 131 131 #createFormEnd() 132 132 133 133 {{/html}}