Changes for page Books
Last modified by Jip-jan Alunkel on November 23, 10:59
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Class properties (1 modified, 1 added, 3 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,16 +1,38 @@ 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 16 ... ... @@ -20,9 +20,9 @@ 20 20 "required" : "true", 21 21 "label" : "Type of book", 22 22 "aria-label" : "Select the type of book", 45 + "placeholder" : "Type", 23 23 "data-error-response-type" : "use_label_definite_1", 24 24 "data-set-space" : "true", 25 - "placeholder" : "Type", 26 26 "space-reference" : "books", 27 27 "help-block" : "Choose the type of book you would like to add." 28 28 }) ... ... @@ -38,7 +38,7 @@ 38 38 "placeholder" : "Title", 39 39 "data-error-response-type" : "use_label_definite_1", 40 40 "data-query-type" : "XWQL.matchTitle", 41 - "data-query-scope" : " books",63 + "data-query-scope" : "materia-medica", 42 42 "data-query-list-type" : "suggest-negate", 43 43 "data-query-list-header" : "$services.localization.render('formMaker.line.suggest_negate_list')", 44 44 "data-query-list-contents" : "value", ... ... @@ -48,6 +48,28 @@ 48 48 49 49 #createFormElement($book_title) 50 50 73 +#set($author = { 74 + "id" : "author", 75 + "type" : "text", 76 + "required" : "true", 77 + "label" : "Author of the book", 78 + "aria-label" : "Enter the author of the book", 79 + "placeholder" : "Author", 80 + "data-error-response-type" : "use_label_definite_1", 81 + "data-query-type" : "XWQL.matchObject", 82 + "data-query-scope" : "books", 83 + "data-query-list-type" : "suggest-select", 84 + "data-query-list-header" : "$services.localization.render('formMaker.line.suggest_select_list')", 85 + "data-query-list-contents" : "value", 86 + "data-query-list-editable" : "true", 87 + "data-create-xobj" : "true", 88 + "data-xobj-classname" : "books.WebHome", 89 + "data-xobj-fieldname" : "author", 90 + "help-block" : 'Select the author of this case.' 91 +}) 92 + 93 +#createFormElement($author) 94 + 51 51 #set($publish_year = { 52 52 "id" : "publish_year", 53 53 "type" : "number", ... ... @@ -61,7 +61,7 @@ 61 61 "data-xobj-fieldname" : "publish_year" 62 62 }) 63 63 64 -#createFormElement($ remedy)108 +#createFormElement($publish_year) 65 65 66 66 #set($extra_info = { 67 67 "id" : "extra_info", ... ... @@ -75,28 +75,15 @@ 75 75 76 76 #createExpandStart("extra_info" "yes") 77 77 78 -#set($author = { 79 - "id" : "author", 80 - "type" : "text", 81 - "required" : "false", 82 - "label" : "Author", 83 - "aria-label" : "Enter the author name", 84 - "placeholder" : "$services.localization.render('cases.word.author.placeholder')", 85 - "data-query-type" : "XWQL.matchObject", 86 - "data-query-scope" : "books", 87 - "data-query-list-type" : "suggest-select", 88 - "data-query-list-header" : "$services.localization.render('formMaker.line.suggest_select_list')", 89 - "data-query-list-contents" : "value", 90 - "data-create-xobj" : "true", 91 - "data-xobj-classname" : "books.WebHome", 92 - "data-xobj-fieldname" : "author", 93 - "help-block" : 'Select the author of this case.' 94 -}) 95 - 96 -#createFormElement($author) 97 - 98 98 #createExpandEnd() 99 99 124 +#set($submit = { 125 + "id" : "create_book", 126 + "button-text" : "Create book", 127 + "help-block" : "" 128 +}) 129 +#createSubmit($submit) 130 + 100 100 #createFormEnd() 101 101 102 102 {{/html}}
- author
-
- Use Suggest
-
... ... @@ -1,0 +1,1 @@ 1 +1
- publish_year
-
- Number
-
... ... @@ -1,0 +1,1 @@ 1 +2 - Number Type
-
... ... @@ -1,0 +1,1 @@ 1 +long - Size
-
... ... @@ -1,0 +1,1 @@ 1 +30 - Pretty Name
-
... ... @@ -1,0 +1,1 @@ 1 +publish_year - Name
-
... ... @@ -1,0 +1,1 @@ 1 +publish_year
- remedy
-
- Number
-
... ... @@ -1,1 +1,0 @@ 1 -3 - Size
-
... ... @@ -1,1 +1,0 @@ 1 -30 - Pretty Name
-
... ... @@ -1,1 +1,0 @@ 1 -remedy - Name
-
... ... @@ -1,1 +1,0 @@ 1 -remedy
- title
-
- Number
-
... ... @@ -1,1 +1,0 @@ 1 -1 - Size
-
... ... @@ -1,1 +1,0 @@ 1 -30 - Pretty Name
-
... ... @@ -1,1 +1,0 @@ 1 -title - Name
-
... ... @@ -1,1 +1,0 @@ 1 -title - Use Suggest
-
... ... @@ -1,1 +1,0 @@ 1 -1
- type
-
- Number
-
... ... @@ -1,1 +1,0 @@ 1 -2 - Size
-
... ... @@ -1,1 +1,0 @@ 1 -30 - Pretty Name
-
... ... @@ -1,1 +1,0 @@ 1 -type - Name
-
... ... @@ -1,1 +1,0 @@ 1 -type - Use Suggest
-
... ... @@ -1,1 +1,0 @@ 1 -1