Changes for page Books
Last modified by Jip-jan Alunkel on November 23, 10:59
From version 8.29
edited by Jip-jan Alunkel
on April 17, 23:25
on April 17, 23:25
Change comment:
Updated class property
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -35,7 +35,6 @@ 35 35 </p> 36 36 37 37 #createFormStart("homeoworld_form" "book") 38 - 39 39 #set($booktype = { 40 40 "id" : "booktype", 41 41 "type" : "select", ... ... @@ -48,9 +48,7 @@ 48 48 "select-space-reference" : "books", 49 49 "help-block" : "Choose the type of book you would like to add." 50 50 }) 51 - 52 52 #createFormElement($booktype) 53 - 54 54 #set($book_title = { 55 55 "id" : "book_title", 56 56 "type" : "text", ... ... @@ -67,9 +67,7 @@ 67 67 "data-create-page" : "true", 68 68 "help-block" : 'When providing a title of a common type of book, please also provide the authorʼs last name, viz. Boericke Materia Medica.' 69 69 }) 70 - 71 71 #createFormElement($book_title) 72 - 73 73 #set($author = { 74 74 "id" : "author", 75 75 "type" : "text", ... ... @@ -89,9 +89,16 @@ 89 89 "data-xobj-fieldname" : "author", 90 90 "help-block" : 'Select the author of this case.' 91 91 }) 92 - 93 93 #createFormElement($author) 94 - 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") 95 95 #set($publish_year = { 96 96 "id" : "publish_year", 97 97 "type" : "number", ... ... @@ -104,23 +104,8 @@ 104 104 "data-xobj-classname" : "books.WebHome", 105 105 "data-xobj-fieldname" : "publish_year" 106 106 }) 107 - 108 108 #createFormElement($publish_year) 109 - 110 -#set($extra_info = { 111 - "id" : "extra_info", 112 - "type" : "checkbox", 113 - "required" : "no", 114 - "label" : "Extra information (optional)", 115 - "value" : "yes" 116 -}) 117 - 118 -#createFormElement($extra_info) 119 - 120 -#createExpandStart("extra_info" "yes") 121 - 122 122 #createExpandEnd() 123 - 124 124 #set($submit = { 125 125 "id" : "create_book", 126 126 "button-text" : "Create book", ... ... @@ -127,7 +127,6 @@ 127 127 "help-block" : "" 128 128 }) 129 129 #createSubmit($submit) 130 - 131 131 #createFormEnd() 132 132 133 133 {{/html}}