Changes for page Books
Last modified by Jip-jan Alunkel on November 23, 10:59
From version 8.31
edited by Jip-jan Alunkel
on April 17, 23:29
on April 17, 23:29
Change comment:
Updated class property
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,12 +1,11 @@ 1 1 {{include reference="assets.formMaker.macros" /}} 2 2 3 3 {{velocity}} 4 +{{html}} 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})) 8 - 9 -{{html wiki="true" clean="false"}} 10 10 <p> 11 11 All about books 12 12 </p> ... ... @@ -35,6 +35,7 @@ 35 35 </p> 36 36 37 37 #createFormStart("homeoworld_form" "book") 37 + 38 38 #set($booktype = { 39 39 "id" : "booktype", 40 40 "type" : "select", ... ... @@ -44,10 +44,12 @@ 44 44 "placeholder" : "Type", 45 45 "data-error-response-type" : "use_label_definite_1", 46 46 "data-set-space" : "true", 47 - "s elect-space-reference" : "books",47 + "space-reference" : "books", 48 48 "help-block" : "Choose the type of book you would like to add." 49 49 }) 50 + 50 50 #createFormElement($booktype) 52 + 51 51 #set($book_title = { 52 52 "id" : "book_title", 53 53 "type" : "text", ... ... @@ -64,7 +64,9 @@ 64 64 "data-create-page" : "true", 65 65 "help-block" : 'When providing a title of a common type of book, please also provide the authorʼs last name, viz. Boericke Materia Medica.' 66 66 }) 69 + 67 67 #createFormElement($book_title) 71 + 68 68 #set($author = { 69 69 "id" : "author", 70 70 "type" : "text", ... ... @@ -84,20 +84,13 @@ 84 84 "data-xobj-fieldname" : "author", 85 85 "help-block" : 'Select the author of this case.' 86 86 }) 91 + 87 87 #createFormElement($author) 88 -#set($extra_info = { 89 - "id" : "extra_info", 90 - "type" : "checkbox", 91 - "required" : "no", 92 - "label" : "Extra information (optional)", 93 - "value" : "yes" 94 -}) 95 -#createFormElement($extra_info) 96 -#createExpandStart("extra_info" "yes") 93 + 97 97 #set($publish_year = { 98 98 "id" : "publish_year", 99 99 "type" : "number", 100 - "required" : " false",97 + "required" : "true", 101 101 "label" : "Year of publishing", 102 102 "aria-label" : "Enter the year of publishing", 103 103 "placeholder" : "Year", ... ... @@ -106,8 +106,23 @@ 106 106 "data-xobj-classname" : "books.WebHome", 107 107 "data-xobj-fieldname" : "publish_year" 108 108 }) 106 + 109 109 #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 + 110 110 #createExpandEnd() 122 + 111 111 #set($submit = { 112 112 "id" : "create_book", 113 113 "button-text" : "Create book", ... ... @@ -114,6 +114,7 @@ 114 114 "help-block" : "" 115 115 }) 116 116 #createSubmit($submit) 129 + 117 117 #createFormEnd() 118 118 119 119 {{/html}}