Changes for page Books
Last modified by Jip-jan Alunkel on November 23, 10:59
To version 8.15
edited by Jip-jan Alunkel
on April 10, 17:02
on April 10, 17:02
Change comment:
Removed class property "type"
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Class properties (1 modified, 0 added, 1 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,39 +3,19 @@ 1 -{{include reference="assets.pagemaker.macros"/}} 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})) 2 +#set($discard = $services.localization.use('document', 'cases.Code.translations')) 3 +#set($discard = $services.localization.use('document', 'assets.formMaker.translations')) 4 +#set($discard = $xwiki.ssx.use('assets.formMaker.WebHome')) 5 +#set($discard = $xwiki.jsx.use('assets.formMaker.WebHome', {'minify' : false})) 6 +{{/velocity}} 7 7 8 -{{html wiki="true" clean="false"}} 9 -<p> 10 10 All about books 11 -</p> 12 -<h2 class="livetable">Overview of all books</h2> 13 -<div class="livetable"> 14 14 15 -#set ($columns = ["doc.title", "author", "doc.space"]) 16 -#set ($columnsProperties = { 17 - "doc.title": {"type": "text", "filterable" : true, "sortable": true, "link": "view"}, 18 - "remedy" : {"type": "text", "filterable" : true, "sortable": true, "size" : 4}, 19 - "doc.space" : {"type": "text", "filterable" : true, "sortable": true, "size" : 4, "link": "space"} 20 -}) 21 -#set ($options = { 22 - "className" : "books.WebHome", 23 - "translationPrefix" : "books.livetable.", 24 - "queryFilters" : "currentlanguage", 25 - "rowCount": 10 26 -}) 27 -#livetable("books" $columns $columnsProperties $options) 10 +{{include reference="assets.formMaker.macros" /}} 28 28 29 -</div> 30 -<h3>Add a book to this wiki</h3> 31 -<p> 32 - Do you know of any books that can be of value to people who would like to learn more about homeopathy? 33 - 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. 34 -</p> 12 +{{velocity}} 13 +{{html}} 35 35 36 36 #createFormStart("homeoworld_form" "book") 16 + 37 37 #set($booktype = { 38 38 "id" : "booktype", 39 39 "type" : "select", ... ... @@ -40,13 +40,15 @@ 40 40 "required" : "true", 41 41 "label" : "Type of book", 42 42 "aria-label" : "Select the type of book", 43 - "placeholder" : "Type", 44 44 "data-error-response-type" : "use_label_definite_1", 45 45 "data-set-space" : "true", 46 - "select-space-reference" : "books", 25 + "placeholder" : "Type", 26 + "space-reference" : "books", 47 47 "help-block" : "Choose the type of book you would like to add." 48 48 }) 29 + 49 49 #createFormElement($booktype) 31 + 50 50 #set($book_title = { 51 51 "id" : "book_title", 52 52 "type" : "text", ... ... @@ -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 }) 48 + 66 66 #createFormElement($book_title) 50 + 67 67 #set($author = { 68 68 "id" : "author", 69 69 "type" : "text", ... ... @@ -71,19 +71,20 @@ 71 71 "label" : "Author of the book", 72 72 "aria-label" : "Enter the author of the book", 73 73 "placeholder" : "Author", 74 - "data-error-response-type" : "use_label_definite_1", 75 75 "data-query-type" : "XWQL.matchObject", 76 76 "data-query-scope" : "books", 77 77 "data-query-list-type" : "suggest-select", 78 78 "data-query-list-header" : "$services.localization.render('formMaker.line.suggest_select_list')", 79 79 "data-query-list-contents" : "value", 80 - "data-query-list-editable" : " true",63 + "data-query-list-editable" : "false", 81 81 "data-create-xobj" : "true", 82 82 "data-xobj-classname" : "books.WebHome", 83 83 "data-xobj-fieldname" : "author", 84 84 "help-block" : 'Select the author of this case.' 85 85 }) 69 + 86 86 #createFormElement($author) 71 + 87 87 #set($extra_info = { 88 88 "id" : "extra_info", 89 89 "type" : "checkbox", ... ... @@ -91,12 +91,15 @@ 91 91 "label" : "Extra information (optional)", 92 92 "value" : "yes" 93 93 }) 79 + 94 94 #createFormElement($extra_info) 81 + 95 95 #createExpandStart("extra_info" "yes") 83 + 96 96 #set($publish_year = { 97 97 "id" : "publish_year", 98 98 "type" : "number", 99 - "required" : " false",87 + "required" : "true", 100 100 "label" : "Year of publishing", 101 101 "aria-label" : "Enter the year of publishing", 102 102 "placeholder" : "Year", ... ... @@ -105,14 +105,11 @@ 105 105 "data-xobj-classname" : "books.WebHome", 106 106 "data-xobj-fieldname" : "publish_year" 107 107 }) 96 + 108 108 #createFormElement($publish_year) 98 + 109 109 #createExpandEnd() 110 -#set($submit = { 111 - "id" : "create_book", 112 - "button-text" : "Create book", 113 - "help-block" : "" 114 -}) 115 -#createSubmit($submit) 100 + 116 116 #createFormEnd() 117 117 118 118 {{/html}}
- author
-
- Use Suggest
-
... ... @@ -1,1 +1,0 @@ 1 -1
- publish_year
-
- Number
-
... ... @@ -1,1 +1,0 @@ 1 -2 - Number Type
-
... ... @@ -1,1 +1,0 @@ 1 -long - Size
-
... ... @@ -1,1 +1,0 @@ 1 -30 - Pretty Name
-
... ... @@ -1,1 +1,0 @@ 1 -publish_year - Name
-
... ... @@ -1,1 +1,0 @@ 1 -publish_year