Changes for page CHOPlist

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

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

Summary

Details

Page properties
Content
... ... @@ -1,196 +1,225 @@
1 -{{html}}
1 +{{html clean="false"}}
2 2  <style>
3 +/* =========================================================
4 + CHOP-Liste – Live Data Tabellenformatierung
5 + ========================================================= */
3 3  
4 -/* ============================================================
5 - CHOP-LIVETABLE
6 - ============================================================ */
7 -
8 -/* Gesamte Livetable */
9 -#choplist {
10 - width: 100%;
7 +/* Gesamte Tabelle */
8 +#choplist .xwiki-livedata-table {
9 + width: 100%;
10 + table-layout: fixed;
11 + border-collapse: collapse;
11 11  }
12 12  
13 -/* Die eigentliche Datentabelle */
14 -#choplist .xwiki-livetable-display {
15 - width: 100%;
16 - border-collapse: collapse;
17 - table-layout: fixed;
18 -}
14 +/* ---------------------------------------------------------
15 + Tabellenkopf
16 + --------------------------------------------------------- */
19 19  
20 -/* ============================================================
21 - KOPFZEILE
22 - ============================================================ */
23 -
24 -#choplist .xwiki-livetable-display-header th {
25 - font-weight: bold;
26 - font-size: 1.1em;
27 - background-color: #f0f0f0;
28 - border: 1px solid #b5b5b5;
29 - padding: 8px 10px;
30 - vertical-align: middle;
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;
31 31  }
32 32  
33 -/* Auch die Links in den Überschriften fett */
34 -#choplist .xwiki-livetable-display-header th a {
35 - font-weight: bold;
36 -}
27 +/* ---------------------------------------------------------
28 + Filterzeile
29 + --------------------------------------------------------- */
37 37  
38 -/* ============================================================
39 - FILTERZEILE
40 - ============================================================ */
41 -
42 -#choplist .xwiki-livetable-display-filters td {
43 - border: 1px solid #b5b5b5;
44 - padding: 5px;
45 - background-color: #fafafa;
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;
46 46  }
47 47  
48 -/* Filterfelder möglichst breit innerhalb ihrer Spalte */
49 -#choplist .xwiki-livetable-display-filters input[type="text"] {
50 - box-sizing: border-box;
51 - max-width: 100%;
52 -}
39 +/* ---------------------------------------------------------
40 + Datenzellen
41 + --------------------------------------------------------- */
53 53  
54 -/* ============================================================
55 - DATENZELLEN
56 - ============================================================ */
57 -
58 -#choplist .xwiki-livetable-display-body td {
59 - border: 1px solid #d0d0d0;
60 - padding: 6px 8px;
61 - vertical-align: top;
43 +#choplist .xwiki-livedata-table tbody td {
44 + border: 1px solid #b5b5b5;
45 + padding: 5px;
46 + vertical-align: middle;
62 62  }
63 63  
64 -/* ============================================================
65 - SPALTENBREITEN
66 - ============================================================ */
49 +/* ---------------------------------------------------------
50 + Spaltenbreiten
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
61 + 10 chcr_only
62 + --------------------------------------------------------- */
67 67  
68 -/* Code – schmal */
69 -#choplist .xwiki-livetable-display .code {
70 - width: 7%;
71 - white-space: nowrap;
64 +#choplist .xwiki-livedata-table th:nth-child(1),
65 +#choplist .xwiki-livedata-table td:nth-child(1) {
66 + width: 7%;
72 72  }
73 73  
74 -/* Deutsch – breit */
75 -#choplist .xwiki-livetable-display .text_de {
76 - width: 3%;
69 +#choplist .xwiki-livedata-table th:nth-child(2),
70 +#choplist .xwiki-livedata-table td:nth-child(2) {
71 + width: 19%;
77 77  }
78 78  
79 -/* Französisch – breit */
80 -#choplist .xwiki-livetable-display .text_fr {
81 - width: 19%;
74 +#choplist .xwiki-livedata-table th:nth-child(3),
75 +#choplist .xwiki-livedata-table td:nth-child(3) {
76 + width: 19%;
82 82  }
83 83  
84 -/* Italienisch – breit */
85 -#choplist .xwiki-livetable-display .text_it {
86 - width: 19%;
79 +#choplist .xwiki-livedata-table th:nth-child(4),
80 +#choplist .xwiki-livedata-table td:nth-child(4) {
81 + width: 19%;
87 87  }
88 88  
89 -/* Gültig ab */
90 -#choplist .xwiki-livetable-display .valid_start {
91 - width: 7%;
92 - white-space: nowrap;
84 +#choplist .xwiki-livedata-table th:nth-child(5),
85 +#choplist .xwiki-livedata-table td:nth-child(5) {
86 + width: 7%;
93 93  }
94 94  
95 -/* Gültig bis */
96 -#choplist .xwiki-livetable-display .valid_end {
97 - width: 7%;
98 - white-space: nowrap;
89 +#choplist .xwiki-livedata-table th:nth-child(6),
90 +#choplist .xwiki-livedata-table td:nth-child(6) {
91 + width: 7%;
99 99  }
100 100  
101 -/* CHOP like */
102 -#choplist .xwiki-livetable-display .chop_like {
103 - width: 6%;
94 +#choplist .xwiki-livedata-table th:nth-child(7),
95 +#choplist .xwiki-livedata-table td:nth-child(7) {
96 + width: 5%;
104 104  }
105 105  
106 -/* Treatment category */
107 -#choplist .xwiki-livetable-display .treat_cat {
108 - width: 8%;
99 +#choplist .xwiki-livedata-table th:nth-child(8),
100 +#choplist .xwiki-livedata-table td:nth-child(8) {
101 + width: 7%;
109 109  }
110 110  
111 -/* Topography */
112 -#choplist .xwiki-livetable-display .topography {
113 - width: 8%;
104 +#choplist .xwiki-livedata-table th:nth-child(9),
105 +#choplist .xwiki-livedata-table td:nth-child(9) {
106 + width: 5%;
114 114  }
115 115  
116 -/* ChCr only */
117 -#choplist .xwiki-livetable-display .chcr_only {
118 - width: 6%;
109 +#choplist .xwiki-livedata-table th:nth-child(10),
110 +#choplist .xwiki-livadata-table td:nth-child(10) {
111 + width: 5%;
119 119  }
120 120  
114 +/* ---------------------------------------------------------
115 + Zentrierung bestimmter Spalten
116 + --------------------------------------------------------- */
121 121  
122 -/* ============================================================
123 - TEXTUMBRUCH
124 - ============================================================ */
125 -
126 -/* Lange Texte sollen innerhalb der Spalte umbrechen */
127 -#choplist .text_de,
128 -#choplist .text_fr,
129 -#choplist .text_it {
130 - overflow-wrap: break-word;
131 - word-wrap: break-word;
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;
132 132  }
133 133  
131 +/* ---------------------------------------------------------
132 + Dropdowns und Filterfelder
133 + --------------------------------------------------------- */
134 134  
135 -/* ============================================================
136 - AUSRICHTUNG
137 - ============================================================ */
138 -
139 -/* Code zentrieren */
140 -#choplist .code {
141 - text-align: center;
135 +#choplist .xwiki-livedata-table select,
136 +#choplist .xwiki-livedata-table input {
137 + max-width: 100%;
138 + box-sizing: border-box;
142 142  }
143 143  
144 -/* Datumsfelder zentrieren */
145 -#choplist .valid_start,
146 -#choplist .valid_end {
147 - text-align: center;
148 -}
141 +/* ---------------------------------------------------------
142 + Zeilen
143 + --------------------------------------------------------- */
149 149  
150 -/* Ja/Nein-Felder zentrieren */
151 -#choplist .chop_like,
152 -#choplist .chcr_only {
153 - text-align: center;
145 +#choplist .xwiki-livedata-table tbody tr:hover {
146 + background-color: #f7f7f7;
154 154  }
155 -
156 -
157 -/* ============================================================
158 - ZEBRA-EFFEKT
159 - ============================================================ */
160 -
161 -#choplist .xwiki-livetable-display-body tr:nth-child(even) td {
162 - background-color: #f8f8f8;
163 -}
164 -
165 -
166 -/* ============================================================
167 - HOVER
168 - ============================================================ */
169 -
170 -#choplist .xwiki-livetable-display-body tr:hover td {
171 - background-color: #eef4f8;
172 -}
173 -
174 -
175 -/* ============================================================
176 - DATUM – ABSTAND DES P-TAGS ENTFERNEN
177 - ============================================================ */
178 -
179 -#choplist .valid_start p,
180 -#choplist .valid_end p {
181 - margin: 0;
182 -}
183 -
184 184  </style>
185 185  {{/html}}
186 186  
187 -{{velocity}}
188 188  {{liveData
189 189   id="choplist"
190 - properties="code,text_de,text_fr,text_it,valid_start,valid_end,chop_like,treat_cat,topo_group,chcr_only"
153 + properties="code,text_de,text_fr,text_it,valid_start,valid_end,chop_like,treat_cat,topography,chcr_only"
191 191   source="liveTable"
192 192   sourceParameters="className=CHOPlist.Code.CHOPlistClass&translationPrefix=choplist.livetable."
193 193   sort="code:asc"
194 - limit="30"
195 -/}}
196 -{{/velocity}}
157 + limit="15"
158 + layouts="table"
159 + showPageSizeDropdown="true"
160 + pageSizes="15,25,50,100"
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}}