Wijzigen voor document Books
Laatst gewijzigd door Jip-jan Alunkel op november 23, 10:59
Van versie 8.8
gewijzigd door Jip-jan Alunkel
op april 10, 16:12
op april 10, 16:12
Opmerking bij wijziging:
Added class property
Naar versie 8.25
gewijzigd door Jip-jan Alunkel
op april 16, 21:40
op april 16, 21:40
Opmerking bij wijziging:
Updated class property
Samenvatting
-
Paginaeigenschappen (1 gewijzigd, 0 toegevoegd, 0 verwijderd)
-
Class properties (1 gewijzigd, 1 toegevoegd, 3 verwijderd)
Details
- Paginaeigenschappen
-
- Inhoud
-
... ... @@ -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" : "books^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,26 +48,43 @@ 48 48 49 49 #createFormElement($book_title) 50 50 51 -#set($r emedy= {52 - "id" : "r emedy",73 +#set($author = { 74 + "id" : "author", 53 53 "type" : "text", 54 54 "required" : "true", 55 - "label" : " Remedy",56 - "aria-label" : " Choose the remedy",57 - "placeholder" : " $services.localization.render('cases.word.remedy.placeholder')",77 + "label" : "Author of the book", 78 + "aria-label" : "Enter the author of the book", 79 + "placeholder" : "Author", 58 58 "data-error-response-type" : "use_label_definite_1", 59 - "data-query-type" : "JSON.remedies", 81 + "data-query-type" : "XWQL.matchObject", 82 + "data-query-scope" : "books", 60 60 "data-query-list-type" : "suggest-select", 61 61 "data-query-list-header" : "$services.localization.render('formMaker.line.suggest_select_list')", 62 - "data-query-list-contents" : "value/key", 85 + "data-query-list-contents" : "value", 86 + "data-query-list-editable" : "true", 63 63 "data-create-xobj" : "true", 64 64 "data-xobj-classname" : "books.WebHome", 65 - "data-xobj-fieldname" : "r emedy",66 - "help-block" : 'Select the remedy thatis centralinthis case.'89 + "data-xobj-fieldname" : "author", 90 + "help-block" : 'Select the author of this case.' 67 67 }) 68 68 69 -#createFormElement($r emedy)93 +#createFormElement($author) 70 70 95 +#set($publish_year = { 96 + "id" : "publish_year", 97 + "type" : "number", 98 + "required" : "true", 99 + "label" : "Year of publishing", 100 + "aria-label" : "Enter the year of publishing", 101 + "placeholder" : "Year", 102 + "data-error-response-type" : "use_label_definite_1", 103 + "data-create-xobj" : "true", 104 + "data-xobj-classname" : "books.WebHome", 105 + "data-xobj-fieldname" : "publish_year" 106 +}) 107 + 108 +#createFormElement($publish_year) 109 + 71 71 #set($extra_info = { 72 72 "id" : "extra_info", 73 73 "type" : "checkbox", ... ... @@ -80,28 +80,15 @@ 80 80 81 81 #createExpandStart("extra_info" "yes") 82 82 83 -#set($author = { 84 - "id" : "author", 85 - "type" : "text", 86 - "required" : "false", 87 - "label" : "Author", 88 - "aria-label" : "Enter the author name", 89 - "placeholder" : "$services.localization.render('cases.word.author.placeholder')", 90 - "data-query-type" : "XWQL.matchObject", 91 - "data-query-scope" : "books", 92 - "data-query-list-type" : "suggest-select", 93 - "data-query-list-header" : "$services.localization.render('formMaker.line.suggest_select_list')", 94 - "data-query-list-contents" : "value", 95 - "data-create-xobj" : "true", 96 - "data-xobj-classname" : "books.WebHome", 97 - "data-xobj-fieldname" : "author", 98 - "help-block" : 'Select the author of this case.' 99 -}) 100 - 101 -#createFormElement($author) 102 - 103 103 #createExpandEnd() 104 104 124 +#set($submit = { 125 + "id" : "create_book", 126 + "button-text" : "Create book", 127 + "help-block" : "" 128 +}) 129 +#createSubmit($submit) 130 + 105 105 #createFormEnd() 106 106 107 107 {{/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