Wijzigen voor document Books
Laatst gewijzigd door Jip-jan Alunkel op november 23, 10:59
Van versie 9.12
gewijzigd door Jip-jan Alunkel
op augustus 30, 22:21
op augustus 30, 22:21
Opmerking bij wijziging:
Updated class property
Naar versie 9.25
gewijzigd door Jip-jan Alunkel
op augustus 31, 23:21
op augustus 31, 23:21
Opmerking bij wijziging:
Updated class property
Samenvatting
-
Paginaeigenschappen (1 gewijzigd, 0 toegevoegd, 0 verwijderd)
Details
- Paginaeigenschappen
-
- Inhoud
-
... ... @@ -1,6 +1,7 @@ 1 1 {{include reference="assets.pagemaker.macros"/}} 2 2 3 3 {{velocity}} 4 +#set($discard = $services.localization.use('document', 'assets.global.translations')) 4 4 #set($discard = $services.localization.use('document', 'assets.pagemaker.translations')) 5 5 #set($discard = $xwiki.ssx.use('assets.pagemaker.WebHome', {'minify' : false})) 6 6 #set($discard = $xwiki.jsx.use('assets.pagemaker.WebHome', {'minify' : false})) ... ... @@ -12,15 +12,16 @@ 12 12 <h2 class="livetable">Overview of all books</h2> 13 13 <div class="livetable"> 14 14 15 -#set ($columns = ["doc.title", "a uthor", "doc.space"])16 +#set ($columns = ["doc.title", "name", "doc.space"]) 16 16 #set ($columnsProperties = { 17 - "doc.title": 18 - " remedy"size"4},19 - "doc.space" size"4, "link": "space"}18 + "doc.title": {"type": "text", "filterable" : true, "sortable": true, "link": "view"}, 19 + "name": {"type": "text", "filterable" : true, "sortable": true, "headerClass": "author"}, 20 + "doc.space": {"type": "text", "filterable" : true, "sortable": true, "headerClass": "category", "link": "space"} 20 20 }) 21 21 #set ($options = { 22 22 "className" : "books.WebHome", 23 - "translationPrefix" : "books.livetable.", 24 + "translationPrefix" : "livetable.books.", 25 + "extraParams": "&name_class=assets.pagemaker.classes.persons", 24 24 "queryFilters" : "currentlanguage", 25 25 "rowCount": 10 26 26 }) ... ... @@ -30,10 +30,17 @@ 30 30 <h3>Add a book to this wiki</h3> 31 31 <p> 32 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 iscorrectlyfiled inthiswiki it is necessary that you answer a few simple questions about thecase.35 + Please feel free to share these books with our readers. However, to make sure your book is being filed correctly it is necessary that you answer a few simple questions about the book. 34 34 </p> 35 35 36 -#createFormStart("homeoworld_form" "book") 38 +#set($form_start = { 39 + "id": "homeoworld_form", 40 + "product": "book", 41 + "method": "post", 42 + "url": "", 43 + "use_captcha": "false" 44 +}) 45 +#createFormStart($form_start) 37 37 #set($booktype = { 38 38 "id" : "booktype", 39 39 "type" : "select", ... ... @@ -70,9 +70,10 @@ 70 70 "required" : "true", 71 71 "label" : "Author of the book", 72 72 "aria-label" : "Enter the author of the book", 82 + "data-default-value": "", 73 73 "placeholder" : "$services.localization.render('cases.word.author.placeholder')", 74 74 "data-auto-first-capital" : "true", 75 - "data-query-type" : "XWQL .matchObject",85 + "data-query-type" : "XWQL", 76 76 "data-query-reference" : "assets.pagemaker.XWQL.matchObject", 77 77 "data-query-scope" : "", 78 78 "data-query-list-type" : "suggest-select", ... ... @@ -85,7 +85,7 @@ 85 85 "data-modal-input" : ["$services.localization.render('global.word.lastname')", "$services.localization.render('global.word.firstname')"], 86 86 "data-modal-input-glue": ", ", 87 87 "data-error-response-type" : "use_label_definite_1", 88 - "help-block" : ' Select the author of thiscase.'98 + "help-block" : 'Enter the last name of the author of this book. Choose the author from the list or create a new author.' 89 89 }) 90 90 #createFormElement($author) 91 91 #set($extra_info = { ... ... @@ -93,7 +93,7 @@ 93 93 "type" : "checkbox", 94 94 "required" : "no", 95 95 "label" : "Extra information (optional)", 96 - "value" : " 1",106 + "value" : "", 97 97 "data-opener" : "true" 98 98 }) 99 99 #createFormElement($extra_info) ... ... @@ -118,7 +118,10 @@ 118 118 "help-block" : "" 119 119 }) 120 120 #createSubmit($submit) 121 -#createFormEnd() 131 +#set($form_end = { 132 + "use_captcha": "false" 133 +}) 134 +#createFormEnd($form_end) 122 122 123 123 {{/html}} 124 124 {{/velocity}}