Modifications pour le document Books

Modifié par Jip-jan Alunkel le novembre 23, 10:59

Depuis la version 8.29
modifié par Jip-jan Alunkel
sur avril 17, 23:25
Commentaire de modification : Updated class property
À la version 9.2
modifié par Jip-jan Alunkel
sur août 30, 21:54
Commentaire de modification : Renamed back-links.

Résumé

Détails

Propriétés de la Page
Contenu
... ... @@ -1,4 +1,4 @@
1 -{{include reference="assets.formMaker.macros" /}}
1 +{{include reference="assets.pagemaker.macros"/}}
2 2  
3 3  {{velocity}}
4 4  #set($discard = $services.localization.use('document', 'cases.Code.translations'))
... ... @@ -11,7 +11,7 @@
11 11  All about books
12 12  </p>
13 13  <h2 class="livetable">Overview of all books</h2>
14 -<div id="livetable">
14 +<div class="livetable">
15 15  
16 16  #set ($columns = ["doc.title", "author", "doc.space"])
17 17  #set ($columnsProperties = {
... ... @@ -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,13 +89,20 @@
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",
98 - "required" : "true",
100 + "required" : "false",
99 99   "label" : "Year of publishing",
100 100   "aria-label" : "Enter the year of publishing",
101 101   "placeholder" : "Year",
... ... @@ -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}}