Changes for page CHOPlist

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

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

Summary

Details

Page properties
Content
... ... @@ -1,197 +1,190 @@
1 -```text
2 -{{html clean="false"}}
1 +{{html}}
3 3  <style>
4 4  
5 -/* =========================================================
6 - CHOP LiveData – Tabellenformatierung
7 - ========================================================= */
4 +/* ============================================================
5 + CHOP-LIVETABLE
6 + ============================================================ */
8 8  
9 -/* Gesamte Tabelle */
10 -table.layout-table-root.responsive-table {
8 +/* Gesamte Livetable */
9 +#choplist {
11 11   width: 100%;
11 +}
12 +
13 +/* Die eigentliche Datentabelle */
14 +#choplist .xwiki-livetable-display {
15 + width: 100%;
12 12   border-collapse: collapse;
13 13   table-layout: fixed;
14 14  }
15 15  
16 -/* =========================================================
17 - Kopfzeile
18 - ========================================================= */
20 +/* ============================================================
21 + KOPFZEILE
22 + ============================================================ */
19 19  
20 -table.layout-table-root.responsive-table thead th {
24 +#choplist .xwiki-livetable-display-header th {
21 21   font-weight: bold;
22 - font-size: 1.0em;
23 - background-color: #00BFFF;
24 - border: 1px solid #999;
25 - padding: 7px 6px;
26 + font-size: 1.1em;
27 + background-color: #f0f0f0;
28 + border: 1px solid #b5b5b5;
29 + padding: 8px 10px;
26 26   vertical-align: middle;
27 27  }
28 28  
29 -/* Eigentliche Spaltenbezeichnung */
30 -table.layout-table-root.responsive-table thead .property-name {
33 +/* Auch die Links in den Überschriften fett */
34 +#choplist .xwiki-livetable-display-header th a {
31 31   font-weight: bold;
32 32  }
33 33  
34 -/* Sortier-Button nicht unnötig hervorheben */
35 -table.layout-table-root.responsive-table thead .handle {
36 - font-weight: bold;
37 -}
38 +/* ============================================================
39 + FILTERZEILE
40 + ============================================================ */
38 38  
39 -/* =========================================================
40 - Filterzeile
41 - ========================================================= */
42 -
43 -table.layout-table-root.responsive-table thead tr.column-filters th {
42 +#choplist .xwiki-livetable-display-filters td {
43 + border: 1px solid #b5b5b5;
44 + padding: 5px;
44 44   background-color: #fafafa;
45 - border: 1px solid #bbb;
46 - padding: 4px 5px;
47 47  }
48 48  
49 -/* Filter-Eingabefelder */
50 -table.layout-table-root.responsive-table .livedata-filter {
51 - width: 100%;
48 +/* Filterfelder möglichst breit innerhalb ihrer Spalte */
49 +#choplist .xwiki-livetable-display-filters input[type="text"] {
52 52   box-sizing: border-box;
51 + max-width: 100%;
53 53  }
54 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 -}
54 +/* ============================================================
55 + DATENZELLEN
56 + ============================================================ */
61 61  
62 -/* Selectize-Filter */
63 -table.layout-table-root.responsive-table .selectize-control {
64 - width: 100%;
58 +#choplist .xwiki-livetable-display-body td {
59 + border: 1px solid #d0d0d0;
60 + padding: 6px 8px;
61 + vertical-align: top;
65 65  }
66 66  
67 -table.layout-table-root.responsive-table .selectize-input {
68 - min-height: 28px;
69 - padding: 4px 6px;
70 - box-sizing: border-box;
71 -}
64 +/* ============================================================
65 + SPALTENBREITEN
66 + ============================================================ */
72 72  
73 -/* =========================================================
74 - Datenzellen
75 - ========================================================= */
76 -
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;
68 +/* Code – schmal */
69 +#choplist .xwiki-livetable-display .code {
70 + width: 7%;
71 + white-space: nowrap;
83 83  }
84 84  
85 -/* =========================================================
86 - Spaltenbreiten
87 - ========================================================= */
88 -```text
89 -/* =========================================================
90 - Spaltenbreiten
91 - Reihenfolge:
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
101 - 10 chcr_only
102 - ========================================================= */
103 -
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%;
74 +/* Deutsch – breit */
75 +#choplist .xwiki-livetable-display .text_de {
76 + width: 3%;
107 107  }
108 108  
109 -table.layout-table-root.responsive-table th:nth-child(2),
110 -table.layout-table-root.responsive-table td:nth-child(2) {
79 +/* Französisch – breit */
80 +#choplist .xwiki-livetable-display .text_fr {
111 111   width: 19%;
112 112  }
113 113  
114 -table.layout-table-root.responsive-table th:nth-child(3),
115 -table.layout-table-root.responsive-table td:nth-child(3) {
84 +/* Italienisch – breit */
85 +#choplist .xwiki-livetable-display .text_it {
116 116   width: 19%;
117 117  }
118 118  
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%;
89 +/* Gültig ab */
90 +#choplist .xwiki-livetable-display .valid_start {
91 + width: 7%;
92 + white-space: nowrap;
122 122  }
123 123  
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%;
95 +/* Gültig bis */
96 +#choplist .xwiki-livetable-display .valid_end {
97 + width: 7%;
98 + white-space: nowrap;
127 127  }
128 128  
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%;
101 +/* CHOP like */
102 +#choplist .xwiki-livetable-display .chop_like {
103 + width: 6%;
132 132  }
133 133  
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%;
106 +/* Treatment category */
107 +#choplist .xwiki-livetable-display .treat_cat {
108 + width: 8%;
137 137  }
138 138  
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%;
111 +/* Topography */
112 +#choplist .xwiki-livetable-display .topography {
113 + width: 8%;
142 142  }
143 143  
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%;
116 +/* ChCr only */
117 +#choplist .xwiki-livetable-display .chcr_only {
118 + width: 6%;
147 147  }
148 148  
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%;
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;
152 152  }
153 153  
154 -/* =========================================================
155 - Ausrichtung
156 - ========================================================= */
157 157  
158 -/* Code */
159 -table.layout-table-root.responsive-table td[data-title="code"] {
135 +/* ============================================================
136 + AUSRICHTUNG
137 + ============================================================ */
138 +
139 +/* Code zentrieren */
140 +#choplist .code {
160 160   text-align: center;
161 161  }
162 162  
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"] {
144 +/* Datumsfelder zentrieren */
145 +#choplist .valid_start,
146 +#choplist .valid_end {
166 166   text-align: center;
167 - white-space: nowrap;
168 168  }
169 169  
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"] {
150 +/* Ja/Nein-Felder zentrieren */
151 +#choplist .chop_like,
152 +#choplist .chcr_only {
175 175   text-align: center;
176 176  }
177 177  
178 -/* =========================================================
179 - Header-Ausrichtung
180 - ========================================================= */
181 181  
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;
157 +/* ============================================================
158 + ZEBRA-EFFEKT
159 + ============================================================ */
160 +
161 +#choplist .xwiki-livetable-display-body tr:nth-child(even) td {
162 + background-color: #f8f8f8;
190 190  }
191 191  
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 +
192 192  </style>
193 193  {{/html}}
194 194  
187 +{{velocity}}
195 195  {{liveData
196 196   id="choplist"
197 197   properties="code,text_de,text_fr,text_it,valid_start,valid_end,chop_like,treat_cat,topo_group,chcr_only"
... ... @@ -198,9 +198,6 @@
198 198   source="liveTable"
199 199   sourceParameters="className=CHOPlist.Code.CHOPlistClass&translationPrefix=choplist.livetable."
200 200   sort="code:asc"
201 - limit="15"
202 - layouts="table"
203 - showPageSizeDropdown="true"
204 - pageSizes="15,25,50,100"
205 -}}
206 -
194 + limit="30"
195 +/}}
196 +{{/velocity}}