Changes for page Books
Last modified by Jip-jan Alunkel on November 23, 10:59
From version 8.27
edited by Jip-jan Alunkel
on April 17, 22:51
on April 17, 22:51
Change comment:
Updated class property
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Class properties (1 modified, 3 added, 1 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,16 +42,10 @@ 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", 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 - }, 25 + "placeholder" : "Type", 26 + "space-reference" : "books", 55 55 "help-block" : "Choose the type of book you would like to add." 56 56 }) 57 57 ... ... @@ -66,7 +66,7 @@ 66 66 "placeholder" : "Title", 67 67 "data-error-response-type" : "use_label_definite_1", 68 68 "data-query-type" : "XWQL.matchTitle", 69 - "data-query-scope" : " materia-medica",41 + "data-query-scope" : "books", 70 70 "data-query-list-type" : "suggest-negate", 71 71 "data-query-list-header" : "$services.localization.render('formMaker.line.suggest_negate_list')", 72 72 "data-query-list-contents" : "value", ... ... @@ -76,28 +76,6 @@ 76 76 77 77 #createFormElement($book_title) 78 78 79 -#set($author = { 80 - "id" : "author", 81 - "type" : "text", 82 - "required" : "true", 83 - "label" : "Author of the book", 84 - "aria-label" : "Enter the author of the book", 85 - "placeholder" : "Author", 86 - "data-error-response-type" : "use_label_definite_1", 87 - "data-query-type" : "XWQL.matchObject", 88 - "data-query-scope" : "books", 89 - "data-query-list-type" : "suggest-select", 90 - "data-query-list-header" : "$services.localization.render('formMaker.line.suggest_select_list')", 91 - "data-query-list-contents" : "value", 92 - "data-query-list-editable" : "true", 93 - "data-create-xobj" : "true", 94 - "data-xobj-classname" : "books.WebHome", 95 - "data-xobj-fieldname" : "author", 96 - "help-block" : 'Select the author of this case.' 97 -}) 98 - 99 -#createFormElement($author) 100 - 101 101 #set($publish_year = { 102 102 "id" : "publish_year", 103 103 "type" : "number", ... ... @@ -125,15 +125,28 @@ 125 125 126 126 #createExpandStart("extra_info" "yes") 127 127 128 -#createExpandEnd() 129 - 130 -#set($submit = { 131 - "id" : "create_book", 132 - "button-text" : "Create book", 133 - "help-block" : "" 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.' 134 134 }) 135 -#createSubmit($submit) 136 136 96 +#createFormElement($author) 97 + 98 +#createExpandEnd() 99 + 137 137 #createFormEnd() 138 138 139 139 {{/html}}
- author
-
- Use Suggest
-
... ... @@ -1,1 +1,0 @@ 1 -1
- remedy
-
- Number
-
... ... @@ -1,0 +1,1 @@ 1 +3 - Size
-
... ... @@ -1,0 +1,1 @@ 1 +30 - Pretty Name
-
... ... @@ -1,0 +1,1 @@ 1 +remedy - Name
-
... ... @@ -1,0 +1,1 @@ 1 +remedy
- title
-
- Number
-
... ... @@ -1,0 +1,1 @@ 1 +1 - Size
-
... ... @@ -1,0 +1,1 @@ 1 +30 - Pretty Name
-
... ... @@ -1,0 +1,1 @@ 1 +title - Name
-
... ... @@ -1,0 +1,1 @@ 1 +title - Use Suggest
-
... ... @@ -1,0 +1,1 @@ 1 +1
- type
-
- Number
-
... ... @@ -1,0 +1,1 @@ 1 +2 - Size
-
... ... @@ -1,0 +1,1 @@ 1 +30 - Pretty Name
-
... ... @@ -1,0 +1,1 @@ 1 +type - Name
-
... ... @@ -1,0 +1,1 @@ 1 +type - Use Suggest
-
... ... @@ -1,0 +1,1 @@ 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