Изменения документа Books
Редактировал(а) Jip-jan Alunkel ноября 23, 10:59
От версии 8.23
отредактировано Jip-jan Alunkel
на апреля 11, 23:53
на апреля 11, 23:53
Изменить комментарий:
Updated class property
К версии 9.3
отредактировано Jip-jan Alunkel
на августа 30, 21:55
на августа 30, 21:55
Изменить комментарий:
Renamed back-links.
Сводка
-
Свойства страницы (1 изменено, 0 добавлено, 0 удалено)
Подробности
- Свойства страницы
-
- Содержимое
-
... ... @@ -1,16 +1,16 @@ 1 -{{include reference="assets. formMaker.macros"1 +{{include reference="assets.pagemaker.macros"/}} 2 2 3 3 {{velocity}} 4 - {{html}}5 -#set($discard = $ services.localization.use('document', 'cases.Code.translations'))6 -#set($discard = $ services.localization.use('document', 'assets.formMaker.translations'))7 - #set($discard = $xwiki.ssx.use('assets.formMaker.WebHome'))8 - #set($discard= $xwiki.jsx.use('assets.formMaker.WebHome',{'minify' : false}))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})) 7 + 8 +{{html wiki="true" clean="false"}} 9 9 <p> 10 10 All about books 11 11 </p> 12 12 <h2 class="livetable">Overview of all books</h2> 13 -<div id="livetable">13 +<div class="livetable"> 14 14 15 15 #set ($columns = ["doc.title", "author", "doc.space"]) 16 16 #set ($columnsProperties = { ... ... @@ -34,7 +34,6 @@ 34 34 </p> 35 35 36 36 #createFormStart("homeoworld_form" "book") 37 - 38 38 #set($booktype = { 39 39 "id" : "booktype", 40 40 "type" : "select", ... ... @@ -44,12 +44,10 @@ 44 44 "placeholder" : "Type", 45 45 "data-error-response-type" : "use_label_definite_1", 46 46 "data-set-space" : "true", 47 - "space-reference" : "books", 46 + "select-space-reference" : "books", 48 48 "help-block" : "Choose the type of book you would like to add." 49 49 }) 50 - 51 51 #createFormElement($booktype) 52 - 53 53 #set($book_title = { 54 54 "id" : "book_title", 55 55 "type" : "text", ... ... @@ -66,9 +66,7 @@ 66 66 "data-create-page" : "true", 67 67 "help-block" : 'When providing a title of a common type of book, please also provide the authorʼs last name, viz. Boericke Materia Medica.' 68 68 }) 69 - 70 70 #createFormElement($book_title) 71 - 72 72 #set($author = { 73 73 "id" : "author", 74 74 "type" : "text", ... ... @@ -88,13 +88,20 @@ 88 88 "data-xobj-fieldname" : "author", 89 89 "help-block" : 'Select the author of this case.' 90 90 }) 91 - 92 92 #createFormElement($author) 93 - 87 +#set($extra_info = { 88 + "id" : "extra_info", 89 + "type" : "checkbox", 90 + "required" : "no", 91 + "label" : "Extra information (optional)", 92 + "value" : "yes" 93 +}) 94 +#createFormElement($extra_info) 95 +#createExpandStart("extra_info" "yes") 94 94 #set($publish_year = { 95 95 "id" : "publish_year", 96 96 "type" : "number", 97 - "required" : " true",99 + "required" : "false", 98 98 "label" : "Year of publishing", 99 99 "aria-label" : "Enter the year of publishing", 100 100 "placeholder" : "Year", ... ... @@ -103,23 +103,8 @@ 103 103 "data-xobj-classname" : "books.WebHome", 104 104 "data-xobj-fieldname" : "publish_year" 105 105 }) 106 - 107 107 #createFormElement($publish_year) 108 - 109 -#set($extra_info = { 110 - "id" : "extra_info", 111 - "type" : "checkbox", 112 - "required" : "no", 113 - "label" : "Extra information (optional)", 114 - "value" : "yes" 115 -}) 116 - 117 -#createFormElement($extra_info) 118 - 119 -#createExpandStart("extra_info" "yes") 120 - 121 121 #createExpandEnd() 122 - 123 123 #set($submit = { 124 124 "id" : "create_book", 125 125 "button-text" : "Create book", ... ... @@ -126,7 +126,6 @@ 126 126 "help-block" : "" 127 127 }) 128 128 #createSubmit($submit) 129 - 130 130 #createFormEnd() 131 131 132 132 {{/html}}