Changes for page Books
Last modified by Jip-jan Alunkel on November 23, 10:59
From version 8.21
edited by Jip-jan Alunkel
on April 11, 19:42
on April 11, 19:42
Change comment:
Updated class property
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,19 +1,40 @@ 1 +{{include reference="assets.formMaker.macros" /}} 2 + 1 1 {{velocity}} 2 2 #set($discard = $services.localization.use('document', 'cases.Code.translations')) 3 3 #set($discard = $services.localization.use('document', 'assets.formMaker.translations')) 4 4 #set($discard = $xwiki.ssx.use('assets.formMaker.WebHome')) 5 5 #set($discard = $xwiki.jsx.use('assets.formMaker.WebHome', {'minify' : false})) 6 -{{/velocity}} 7 7 9 +{{html wiki="true" clean="false"}} 10 +<p> 8 8 All about books 12 +</p> 13 +<h2 class="livetable">Overview of all books</h2> 14 +<div id="livetable"> 9 9 10 -{{include reference="assets.formMaker.macros" /}} 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) 11 11 12 -{{velocity}} 13 -{{html}} 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> 14 14 15 15 #createFormStart("homeoworld_form" "book") 16 - 17 17 #set($booktype = { 18 18 "id" : "booktype", 19 19 "type" : "select", ... ... @@ -23,12 +23,10 @@ 23 23 "placeholder" : "Type", 24 24 "data-error-response-type" : "use_label_definite_1", 25 25 "data-set-space" : "true", 26 - "space-reference" : "books", 47 + "select-space-reference" : "books", 27 27 "help-block" : "Choose the type of book you would like to add." 28 28 }) 29 - 30 30 #createFormElement($booktype) 31 - 32 32 #set($book_title = { 33 33 "id" : "book_title", 34 34 "type" : "text", ... ... @@ -45,9 +45,7 @@ 45 45 "data-create-page" : "true", 46 46 "help-block" : 'When providing a title of a common type of book, please also provide the authorʼs last name, viz. Boericke Materia Medica.' 47 47 }) 48 - 49 49 #createFormElement($book_title) 50 - 51 51 #set($author = { 52 52 "id" : "author", 53 53 "type" : "text", ... ... @@ -67,13 +67,20 @@ 67 67 "data-xobj-fieldname" : "author", 68 68 "help-block" : 'Select the author of this case.' 69 69 }) 70 - 71 71 #createFormElement($author) 72 - 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") 73 73 #set($publish_year = { 74 74 "id" : "publish_year", 75 75 "type" : "number", 76 - "required" : " true",100 + "required" : "false", 77 77 "label" : "Year of publishing", 78 78 "aria-label" : "Enter the year of publishing", 79 79 "placeholder" : "Year", ... ... @@ -82,23 +82,8 @@ 82 82 "data-xobj-classname" : "books.WebHome", 83 83 "data-xobj-fieldname" : "publish_year" 84 84 }) 85 - 86 86 #createFormElement($publish_year) 87 - 88 -#set($extra_info = { 89 - "id" : "extra_info", 90 - "type" : "checkbox", 91 - "required" : "no", 92 - "label" : "Extra information (optional)", 93 - "value" : "yes" 94 -}) 95 - 96 -#createFormElement($extra_info) 97 - 98 -#createExpandStart("extra_info" "yes") 99 - 100 100 #createExpandEnd() 101 - 102 102 #set($submit = { 103 103 "id" : "create_book", 104 104 "button-text" : "Create book", ... ... @@ -105,7 +105,6 @@ 105 105 "help-block" : "" 106 106 }) 107 107 #createSubmit($submit) 108 - 109 109 #createFormEnd() 110 110 111 111 {{/html}}