Changes for page CHOPlist

Last modified by Marco Weber on 2026/10/05 15:41

From version 29.1
edited by Marco Weber
on 2026/10/05 07:59
Change comment: There is no comment for this version
To version 36.1
edited by Marco Weber
on 2026/10/05 15:17
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,156 +1,200 @@
1 +```text
1 1  {{html clean="false"}}
2 2  <style>
4 +
3 3  /* =========================================================
4 - CHOP-Liste – Live Data Tabellenformatierung
6 + CHOP LiveData – Tabellenformatierung
5 5   ========================================================= */
6 6  
7 7  /* Gesamte Tabelle */
8 -#choplist .xwiki-livedata-table {
9 - width: 100%;
10 - table-layout: fixed;
11 - border-collapse: collapse;
10 +table.layout-table-root.responsive-table {
11 + width: 100%;
12 + border-collapse: collapse;
13 + table-layout: fixed;
12 12  }
13 13  
14 -/* ---------------------------------------------------------
15 - Tabellenkopf
16 - --------------------------------------------------------- */
16 +/* =========================================================
17 + Kopfzeile
18 + ========================================================= */
17 17  
18 -#choplist .xwiki-livedata-table thead th {
19 - font-weight: bold;
20 - font-size: 1.1em;
21 - background-color: #f2f2f2;
22 - border: 1px solid #b5b5b5;
23 - padding: 6px 5px;
24 - vertical-align: middle;
20 +table.layout-table-root.responsive-table thead th {
21 + font-weight: bold;
22 + font-size: 1.0em;
23 + background-color: #f2f2f2;
24 + border: 1px solid #999;
25 + padding: 7px 6px;
26 + vertical-align: middle;
25 25  }
26 26  
27 -/* ---------------------------------------------------------
29 +/* Eigentliche Spaltenbezeichnung */
30 +table.layout-table-root.responsive-table thead .property-name {
31 + font-weight: bold;
32 +}
33 +
34 +/* Sortier-Button nicht unnötig hervorheben */
35 +table.layout-table-root.responsive-table thead .handle {
36 + font-weight: bold;
37 +}
38 +
39 +/* =========================================================
28 28   Filterzeile
29 - --------------------------------------------------------- */
41 + ========================================================= */
30 30  
31 -#choplist .xwiki-livedata-table thead tr.xwiki-livedata-filter th {
32 - font-weight: normal;
33 - font-size: 1em;
34 - background-color: #fafafa;
35 - border: 1px solid #b5b5b5;
36 - padding: 4px;
43 +table.layout-table-root.responsive-table thead tr.column-filters th {
44 + background-color: #fafafa;
45 + border: 1px solid #bbb;
46 + padding: 4px 5px;
37 37  }
38 38  
39 -/* ---------------------------------------------------------
49 +/* Filter-Eingabefelder */
50 +table.layout-table-root.responsive-table .livedata-filter {
51 + width: 100%;
52 + box-sizing: border-box;
53 +}
54 +
55 +table.layout-table-root.responsive-table .filter-text,
56 +table.layout-table-root.responsive-table .filter-date {
57 + width: 100%;
58 + box-sizing: border-box;
59 + min-height: 28px;
60 +}
61 +
62 +/* Selectize-Filter */
63 +table.layout-table-root.responsive-table .selectize-control {
64 + width: 100%;
65 +}
66 +
67 +table.layout-table-root.responsive-table .selectize-input {
68 + min-height: 28px;
69 + padding: 4px 6px;
70 + box-sizing: border-box;
71 +}
72 +
73 +/* =========================================================
40 40   Datenzellen
41 - --------------------------------------------------------- */
75 + ========================================================= */
42 42  
43 -#choplist .xwiki-livedata-table tbody td {
44 - border: 1px solid #b5b5b5;
45 - padding: 5px;
46 - vertical-align: middle;
77 +table.layout-table-root.responsive-table tbody td {
78 + border: 1px solid #bbb;
79 + padding: 6px 6px;
80 + vertical-align: top;
81 + overflow-wrap: break-word;
82 + word-wrap: break-word;
47 47  }
48 48  
49 -/* ---------------------------------------------------------
85 +/* =========================================================
50 50   Spaltenbreiten
87 + ========================================================= */
88 +```text
89 +/* =========================================================
90 + Spaltenbreiten
51 51   Reihenfolge:
52 - 1 code
53 - 2 text_de
54 - 3 text_fr
55 - 4 text_it
56 - 5 valid_start
57 - 6 valid_end
58 - 7 chop_like
59 - 8 treat_cat
60 - 9 topography
92 + 1 code
93 + 2 text_de
94 + 3 text_fr
95 + 4 text_it
96 + 5 valid_start
97 + 6 valid_end
98 + 7 chop_like
99 + 8 treat_cat
100 + 9 topo_group
61 61   10 chcr_only
62 - --------------------------------------------------------- */
102 + ========================================================= */
63 63  
64 -#choplist .xwiki-livedata-table th:nth-child(1),
65 -#choplist .xwiki-livedata-table td:nth-child(1) {
66 - width: 7%;
104 +table.layout-table-root.responsive-table th:nth-child(1),
105 +table.layout-table-root.responsive-table td:nth-child(1) {
106 + width: 5%;
67 67  }
68 68  
69 -#choplist .xwiki-livedata-table th:nth-child(2),
70 -#choplist .xwiki-livedata-table td:nth-child(2) {
71 - width: 19%;
109 +table.layout-table-root.responsive-table th:nth-child(2),
110 +table.layout-table-root.responsive-table td:nth-child(2) {
111 + width: 19%;
72 72  }
73 73  
74 -#choplist .xwiki-livedata-table th:nth-child(3),
75 -#choplist .xwiki-livedata-table td:nth-child(3) {
76 - width: 19%;
114 +table.layout-table-root.responsive-table th:nth-child(3),
115 +table.layout-table-root.responsive-table td:nth-child(3) {
116 + width: 19%;
77 77  }
78 78  
79 -#choplist .xwiki-livedata-table th:nth-child(4),
80 -#choplist .xwiki-livedata-table td:nth-child(4) {
81 - width: 19%;
119 +table.layout-table-root.responsive-table th:nth-child(4),
120 +table.layout-table-root.responsive-table td:nth-child(4) {
121 + width: 19%;
82 82  }
83 83  
84 -#choplist .xwiki-livedata-table th:nth-child(5),
85 -#choplist .xwiki-livedata-table td:nth-child(5) {
86 - width: 7%;
124 +table.layout-table-root.responsive-table th:nth-child(5),
125 +table.layout-table-root.responsive-table td:nth-child(5) {
126 + width: 5%;
87 87  }
88 88  
89 -#choplist .xwiki-livedata-table th:nth-child(6),
90 -#choplist .xwiki-livedata-table td:nth-child(6) {
91 - width: 7%;
129 +table.layout-table-root.responsive-table th:nth-child(6),
130 +table.layout-table-root.responsive-table td:nth-child(6) {
131 + width: 5%;
92 92  }
93 93  
94 -#choplist .xwiki-livedata-table th:nth-child(7),
95 -#choplist .xwiki-livedata-table td:nth-child(7) {
96 - width: 5%;
134 +table.layout-table-root.responsive-table th:nth-child(7),
135 +table.layout-table-root.responsive-table td:nth-child(7) {
136 + width: 7%;
97 97  }
98 98  
99 -#choplist .xwiki-livedata-table th:nth-child(8),
100 -#choplist .xwiki-livedata-table td:nth-child(8) {
101 - width: 7%;
139 +table.layout-table-root.responsive-table th:nth-child(8),
140 +table.layout-table-root.responsive-table td:nth-child(8) {
141 + width: 7%;
102 102  }
103 103  
104 -#choplist .xwiki-livedata-table th:nth-child(9),
105 -#choplist .xwiki-livedata-table td:nth-child(9) {
106 - width: 5%;
144 +table.layout-table-root.responsive-table th:nth-child(9),
145 +table.layout-table-root.responsive-table td:nth-child(9) {
146 + width: 7%;
107 107  }
108 108  
109 -#choplist .xwiki-livedata-table th:nth-child(10),
110 -#choplist .xwiki-livadata-table td:nth-child(10) {
111 - width: 5%;
149 +table.layout-table-root.responsive-table th:nth-child(10),
150 +table.layout-table-root.responsive-table td:nth-child(10) {
151 + width: 7%;
112 112  }
113 113  
114 -/* ---------------------------------------------------------
115 - Zentrierung bestimmter Spalten
116 - --------------------------------------------------------- */
154 +/* =========================================================
155 + Ausrichtung
156 + ========================================================= */
117 117  
118 -#choplist .xwiki-livedata-table th:nth-child(1),
119 -#choplist .xwiki-livedata-table td:nth-child(1),
120 -#choplist .xwiki-livedata-table th:nth-child(5),
121 -#choplist .xwiki-livedata-table td:nth-child(5),
122 -#choplist .xwiki-livedata-table th:nth-child(6),
123 -#choplist .xwiki-livedata-table td:nth-child(6),
124 -#choplist .xwiki-livedata-table th:nth-child(7),
125 -#choplist .xwiki-livedata-table td:nth-child(7),
126 -#choplist .xwiki-livedata-table th:nth-child(10),
127 -#choplist .xwiki-livedata-table td:nth-child(10) {
128 - text-align: center;
158 +/* Code */
159 +table.layout-table-root.responsive-table td[data-title="code"] {
160 + text-align: center;
129 129  }
130 130  
131 -/* ---------------------------------------------------------
132 - Dropdowns und Filterfelder
133 - --------------------------------------------------------- */
163 +/* Datumsfelder */
164 +table.layout-table-root.responsive-table td[data-title="valid_start"],
165 +table.layout-table-root.responsive-table td[data-title="valid_end"] {
166 + text-align: center;
167 + white-space: nowrap;
168 +}
134 134  
135 -#choplist .xwiki-livedata-table select,
136 -#choplist .xwiki-livedata-table input {
137 - max-width: 100%;
138 - box-sizing: border-box;
170 +/* Kleine Klassifikationsfelder */
171 +table.layout-table-root.responsive-table td[data-title="chop_like"],
172 +table.layout-table-root.responsive-table td[data-title="treat_cat"],
173 +table.layout-table-root.responsive-table td[data-title="topo_group"],
174 +table.layout-table-root.responsive-table td[data-title="chcr_only"] {
175 + text-align: center;
139 139  }
140 140  
141 -/* ---------------------------------------------------------
142 - Zeilen
143 - --------------------------------------------------------- */
178 +/* =========================================================
179 + Header-Ausrichtung
180 + ========================================================= */
144 144  
145 -#choplist .xwiki-livedata-table tbody tr:hover {
146 - background-color: #f7f7f7;
182 +table.layout-table-root.responsive-table th[data-title="code"],
183 +table.layout-table-root.responsive-table th[data-title="valid_start"],
184 +table.layout-table-root.responsive-table th[data-title="valid_end"],
185 +table.layout-table-root.responsive-table th[data-title="chop_like"],
186 +table.layout-table-root.responsive-table th[data-title="treat_cat"],
187 +table.layout-table-root.responsive-table th[data-title="topo_group"],
188 +table.layout-table-root.responsive-table th[data-title="chcr_only"] {
189 + text-align: center;
147 147  }
191 +
148 148  </style>
149 149  {{/html}}
150 150  
151 151  {{liveData
152 152   id="choplist"
153 - properties="code,text_de,text_fr,text_it,valid_start,valid_end,chop_like,treat_cat,topography,chcr_only"
197 + properties="code,text_de,text_fr,text_it,valid_start,valid_end,chop_like,treat_cat,topo_group,chcr_only"
154 154   source="liveTable"
155 155   sourceParameters="className=CHOPlist.Code.CHOPlistClass&translationPrefix=choplist.livetable."
156 156   sort="code:asc"
... ... @@ -159,67 +159,4 @@
159 159   showPageSizeDropdown="true"
160 160   pageSizes="15,25,50,100"
161 161  }}
162 -{
163 - "meta": {
164 - "propertyDescriptors": [
165 - {
166 - "id": "code",
167 - "sortable": true,
168 - "filterable": true
169 - },
170 - {
171 - "id": "text_de",
172 - "sortable": true,
173 - "filterable": true
174 - },
175 - {
176 - "id": "text_fr",
177 - "sortable": true,
178 - "filterable": true
179 - },
180 - {
181 - "id": "text_it",
182 - "sortable": true,
183 - "filterable": true
184 - },
185 - {
186 - "id": "valid_start",
187 - "sortable": true,
188 - "filterable": true
189 - },
190 - {
191 - "id": "valid_end",
192 - "sortable": true,
193 - "filterable": true
194 - },
195 - {
196 - "id": "chop_like",
197 - "sortable": true,
198 - "filterable": true
199 - },
200 - {
201 - "id": "treat_cat",
202 - "sortable": true,
203 - "filterable": true
204 - },
205 - {
206 - "id": "topography",
207 - "sortable": true,
208 - "filterable": true
209 - },
210 - {
211 - "id": "chcr_only",
212 - "sortable": true,
213 - "filterable": true
214 - }
215 - ],
216 - "pagination": {
217 - "maxShownPages": 10,
218 - "pageSizes": [15, 25, 50, 100],
219 - "showEntryRange": true,
220 - "showNextPrevious": true,
221 - "showFirstLast": true
222 - }
223 - }
224 -}
225 -{{/liveData}}
206 +