Изменения документа Books

Редактировал(а) Jip-jan Alunkel ноября 23, 10:59

От версии 8.27
отредактировано Jip-jan Alunkel
на апреля 17, 22:51
Изменить комментарий: Updated class property
К версии 9.4
отредактировано Jip-jan Alunkel
на августа 30, 21:57
Изменить комментарий: Renamed back-links.

Сводка

Подробности

Свойства страницы
Содержимое
... ... @@ -1,10 +1,9 @@
1 -{{include reference="assets.formMaker.macros" /}}
1 +{{include reference="assets.pagemaker.macros"/}}
2 2  
3 3  {{velocity}}
4 -#set($discard = $services.localization.use('document', 'cases.Code.translations'))
5 -#set($discard = $services.localization.use('document', 'assets.formMaker.translations'))
6 -#set($discard = $xwiki.ssx.use('assets.formMaker.WebHome'))
7 -#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}))
8 8  
9 9  {{html wiki="true" clean="false"}}
10 10  <p>
... ... @@ -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">
13 +<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",
... ... @@ -45,18 +45,10 @@
45 45   "placeholder" : "Type",
46 46   "data-error-response-type" : "use_label_definite_1",
47 47   "data-set-space" : "true",
48 - "select-json" : {
49 - "boektiep_1" : "Dit is boektiep 1",
50 - "boektiep_2" : "Dit is boektiep 2",
51 - "boektiep_3" : "Dit is boektiep 3",
52 - "boektiep_4" : "Dit is boektiep 4",
53 - "boektiep_5" : "Dit is boektiep 5"
54 - },
46 + "select-space-reference" : "books",
55 55   "help-block" : "Choose the type of book you would like to add."
56 56  })
57 -
58 58  #createFormElement($booktype)
59 -
60 60  #set($book_title = {
61 61   "id" : "book_title",
62 62   "type" : "text",
... ... @@ -66,7 +66,7 @@
66 66   "placeholder" : "Title",
67 67   "data-error-response-type" : "use_label_definite_1",
68 68   "data-query-type" : "XWQL.matchTitle",
69 - "data-query-scope" : "materia-medica",
59 + "data-query-scope" : "books",
70 70   "data-query-list-type" : "suggest-negate",
71 71   "data-query-list-header" : "$services.localization.render('formMaker.line.suggest_negate_list')",
72 72   "data-query-list-contents" : "value",
... ... @@ -73,9 +73,7 @@
73 73   "data-create-page" : "true",
74 74   "help-block" : 'When providing a title of a common type of book, please also provide the authorʼs last name, viz. Boericke Materia Medica.'
75 75  })
76 -
77 77  #createFormElement($book_title)
78 -
79 79  #set($author = {
80 80   "id" : "author",
81 81   "type" : "text",
... ... @@ -95,13 +95,21 @@
95 95   "data-xobj-fieldname" : "author",
96 96   "help-block" : 'Select the author of this case.'
97 97  })
98 -
99 99  #createFormElement($author)
100 -
87 +#set($extra_info = {
88 + "id" : "extra_info",
89 + "type" : "checkbox",
90 + "required" : "no",
91 + "label" : "Extra information (optional)",
92 + "value" : "yes",
93 + "data-opener" : "true"
94 +})
95 +#createFormElement($extra_info)
96 +#createExpandStart("extra_info" "yes")
101 101  #set($publish_year = {
102 102   "id" : "publish_year",
103 103   "type" : "number",
104 - "required" : "true",
100 + "required" : "false",
105 105   "label" : "Year of publishing",
106 106   "aria-label" : "Enter the year of publishing",
107 107   "placeholder" : "Year",
... ... @@ -110,23 +110,8 @@
110 110   "data-xobj-classname" : "books.WebHome",
111 111   "data-xobj-fieldname" : "publish_year"
112 112  })
113 -
114 114  #createFormElement($publish_year)
115 -
116 -#set($extra_info = {
117 - "id" : "extra_info",
118 - "type" : "checkbox",
119 - "required" : "no",
120 - "label" : "Extra information (optional)",
121 - "value" : "yes"
122 -})
123 -
124 -#createFormElement($extra_info)
125 -
126 -#createExpandStart("extra_info" "yes")
127 -
128 128  #createExpandEnd()
129 -
130 130  #set($submit = {
131 131   "id" : "create_book",
132 132   "button-text" : "Create book",
... ... @@ -133,7 +133,6 @@
133 133   "help-block" : ""
134 134  })
135 135  #createSubmit($submit)
136 -
137 137  #createFormEnd()
138 138  
139 139  {{/html}}