Changes for page CHOPlist
Last modified by Marco Weber on 2026/10/05 15:41
From version 30.1
edited by Marco Weber
on 2026/10/05 08:02
on 2026/10/05 08:02
Change comment:
There is no comment for this version
To version 25.1
edited by Marco Weber
on 2026/10/01 15:06
on 2026/10/01 15:06
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,225 +1,196 @@ 1 -{{liveData 2 - id="choplist" 3 - properties="code,text_de,text_fr,text_it,valid_start,valid_end,chop_like,treat_cat,topography,chcr_only" 4 - source="liveTable" 5 - sourceParameters="className=CHOPlist.Code.CHOPlistClass&translationPrefix=choplist.livetable." 6 - sort="code:asc" 7 - limit="15" 8 - layouts="table" 9 - showPageSizeDropdown="true" 10 - pageSizes="15,25,50,100" 11 -}} 12 -{ 13 - "meta": { 14 - "propertyDescriptors": [ 15 - { 16 - "id": "code", 17 - "sortable": true, 18 - "filterable": true 19 - }, 20 - { 21 - "id": "text_de", 22 - "sortable": true, 23 - "filterable": true 24 - }, 25 - { 26 - "id": "text_fr", 27 - "sortable": true, 28 - "filterable": true 29 - }, 30 - { 31 - "id": "text_it", 32 - "sortable": true, 33 - "filterable": true 34 - }, 35 - { 36 - "id": "valid_start", 37 - "sortable": true, 38 - "filterable": true 39 - }, 40 - { 41 - "id": "valid_end", 42 - "sortable": true, 43 - "filterable": true 44 - }, 45 - { 46 - "id": "chop_like", 47 - "sortable": true, 48 - "filterable": true 49 - }, 50 - { 51 - "id": "treat_cat", 52 - "sortable": true, 53 - "filterable": true 54 - }, 55 - { 56 - "id": "topography", 57 - "sortable": true, 58 - "filterable": true 59 - }, 60 - { 61 - "id": "chcr_only", 62 - "sortable": true, 63 - "filterable": true 64 - } 65 - ], 66 - "pagination": { 67 - "maxShownPages": 10, 68 - "pageSizes": [15, 25, 50, 100], 69 - "showEntryRange": true, 70 - "showNextPrevious": true, 71 - "showFirstLast": true 72 - } 73 - } 1 +{{html}} 2 +<style> 3 + 4 +/* ============================================================ 5 + CHOP-LIVETABLE 6 + ============================================================ */ 7 + 8 +/* Gesamte Livetable */ 9 +#choplist { 10 + width: 100%; 74 74 } 75 -{{/liveData}} 76 76 77 -{{html clean="false"}} 78 -<style> 79 -/* ========================================================= 80 - CHOP-Liste – Live Data Tabellenformatierung 81 - ========================================================= */ 13 +/* Die eigentliche Datentabelle */ 14 +#choplist .xwiki-livetable-display { 15 + width: 100%; 16 + border-collapse: collapse; 17 + table-layout: fixed; 18 +} 82 82 83 -/* Gesamte Tabelle */ 84 -#choplist .xwiki-livedata-table { 85 - width: 100%; 86 - table-layout: fixed; 87 - border-collapse: collapse; 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; 88 88 } 89 89 90 -/* --------------------------------------------------------- 91 - Tabellenkopf 92 - --------------------------------------------------------- */ 33 +/* Auch die Links in den Überschriften fett */ 34 +#choplist .xwiki-livetable-display-header th a { 35 + font-weight: bold; 36 +} 93 93 94 -#choplist .xwiki-livedata-table thead th { 95 - font-weight: bold; 96 - font-size: 1.1em; 97 - background-color: #f2f2f2; 98 - border: 1px solid #b5b5b5; 99 - padding: 6px 5px; 100 - vertical-align: middle; 38 +/* ============================================================ 39 + FILTERZEILE 40 + ============================================================ */ 41 + 42 +#choplist .xwiki-livetable-display-filters td { 43 + border: 1px solid #b5b5b5; 44 + padding: 5px; 45 + background-color: #fafafa; 101 101 } 102 102 103 -/* --------------------------------------------------------- 104 - Filterzeile 105 - --------------------------------------------------------- */ 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 +} 106 106 107 -#choplist .xwiki-livedata-table thead tr.xwiki-livedata-filter th { 108 - font-weight: normal; 109 - font-size: 1em; 110 - background-color: #fafafa; 111 - border: 1px solid #b5b5b5; 112 - padding: 4px; 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; 113 113 } 114 114 115 -/* ---------------------------------------------------------116 - Datenzellen117 - ---------------------------------------------------------*/64 +/* ============================================================ 65 + SPALTENBREITEN 66 + ============================================================ */ 118 118 119 - #choplist.xwiki-livedata-tabletbodytd{120 - border: 1pxsolid#b5b5b5;121 - padding:5px;122 - vertical-align:middle;68 +/* Code – schmal */ 69 +#choplist .xwiki-livetable-display .code { 70 + width: 7%; 71 + white-space: nowrap; 123 123 } 124 124 125 -/* --------------------------------------------------------- 126 - Spaltenbreiten 127 - Reihenfolge: 128 - 1 code 129 - 2 text_de 130 - 3 text_fr 131 - 4 text_it 132 - 5 valid_start 133 - 6 valid_end 134 - 7 chop_like 135 - 8 treat_cat 136 - 9 topo_group 137 - 10 chcr_only 138 - --------------------------------------------------------- */ 74 +/* Deutsch – breit */ 75 +#choplist .xwiki-livetable-display .text_de { 76 + width: 19%; 77 +} 139 139 140 - #choplist.xwiki-livedata-table th:nth-child(1),141 -#choplist .xwiki-live data-tabletd:nth-child(1){142 - width: 7%;79 +/* Französisch – breit */ 80 +#choplist .xwiki-livetable-display .text_fr { 81 + width: 19%; 143 143 } 144 144 145 - #choplist.xwiki-livedata-tableth:nth-child(2),146 -#choplist .xwiki-live data-table td:nth-child(2){147 - width: 19%; 84 +/* Italienisch – breit */ 85 +#choplist .xwiki-livetable-display .text_it { 86 + width: 19%; 148 148 } 149 149 150 -#choplist .xwiki-livedata-table th:nth-child(3), 151 -#choplist .xwiki-livedata-table td:nth-child(3) { 152 - width: 19%; 89 +/* Gültig ab */ 90 +#choplist .xwiki-livetable-display .valid_start { 91 + width: 7%; 92 + white-space: nowrap; 153 153 } 154 154 155 -#choplist .xwiki-livedata-table th:nth-child(4), 156 -#choplist .xwiki-livedata-table td:nth-child(4) { 157 - width: 19%; 95 +/* Gültig bis */ 96 +#choplist .xwiki-livetable-display .valid_end { 97 + width: 7%; 98 + white-space: nowrap; 158 158 } 159 159 160 - #choplist.xwiki-livedata-tableth:nth-child(5),161 -#choplist .xwiki-live data-tabletd:nth-child(5){162 - width: 7%;101 +/* CHOP like */ 102 +#choplist .xwiki-livetable-display .chop_like { 103 + width: 6%; 163 163 } 164 164 165 - #choplist.xwiki-livedata-tableth:nth-child(6),166 -#choplist .xwiki-live data-table td:nth-child(6){167 - width: 7%;106 +/* Treatment category */ 107 +#choplist .xwiki-livetable-display .treat_cat { 108 + width: 8%; 168 168 } 169 169 170 - #choplist .xwiki-livedata-table th:nth-child(7),171 -#choplist .xwiki-live data-tabletd:nth-child(7){172 - width: 5%;111 +/* Topography */ 112 +#choplist .xwiki-livetable-display .topography { 113 + width: 8%; 173 173 } 174 174 175 - #choplist.xwiki-livedata-table th:nth-child(8),176 -#choplist .xwiki-live data-tabletd:nth-child(8){177 - width: 7%;116 +/* ChCr only */ 117 +#choplist .xwiki-livetable-display .chcr_only { 118 + width: 6%; 178 178 } 179 179 180 -#choplist .xwiki-livedata-table th:nth-child(9), 181 -#choplist .xwiki-livedata-table td:nth-child(9) { 182 - width: 5%; 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; 183 183 } 184 184 185 -#choplist .xwiki-livedata-table th:nth-child(10), 186 -#choplist .xwiki-livadata-table td:nth-child(10) { 187 - width: 5%; 134 + 135 +/* ============================================================ 136 + AUSRICHTUNG 137 + ============================================================ */ 138 + 139 +/* Code zentrieren */ 140 +#choplist .code { 141 + text-align: center; 188 188 } 189 189 190 -/* --------------------------------------------------------- 191 - Zentrierung bestimmter Spalten 192 - --------------------------------------------------------- */ 144 +/* Datumsfelder zentrieren */ 145 +#choplist .valid_start, 146 +#choplist .valid_end { 147 + text-align: center; 148 +} 193 193 194 -#choplist .xwiki-livedata-table th:nth-child(1), 195 -#choplist .xwiki-livedata-table td:nth-child(1), 196 -#choplist .xwiki-livedata-table th:nth-child(5), 197 -#choplist .xwiki-livedata-table td:nth-child(5), 198 -#choplist .xwiki-livedata-table th:nth-child(6), 199 -#choplist .xwiki-livedata-table td:nth-child(6), 200 -#choplist .xwiki-livedata-table th:nth-child(7), 201 -#choplist .xwiki-livedata-table td:nth-child(7), 202 -#choplist .xwiki-livedata-table th:nth-child(10), 203 -#choplist .xwiki-livedata-table td:nth-child(10) { 204 - text-align: center; 150 +/* Ja/Nein-Felder zentrieren */ 151 +#choplist .chop_like, 152 +#choplist .chcr_only { 153 + text-align: center; 205 205 } 206 206 207 -/* --------------------------------------------------------- 208 - Dropdowns und Filterfelder 209 - --------------------------------------------------------- */ 210 210 211 -#choplist .xwiki-livedata-table select, 212 -#choplist .xwiki-livedata-table input { 213 - max-width: 100%; 214 - box-sizing: border-box; 157 +/* ============================================================ 158 + ZEBRA-EFFEKT 159 + ============================================================ */ 160 + 161 +#choplist .xwiki-livetable-display-body tr:nth-child(even) td { 162 + background-color: #f8f8f8; 215 215 } 216 216 217 -/* --------------------------------------------------------- 218 - Zeilen 219 - --------------------------------------------------------- */ 220 220 221 -#choplist .xwiki-livedata-table tbody tr:hover { 222 - background-color: #f7f7f7; 166 +/* ============================================================ 167 + HOVER 168 + ============================================================ */ 169 + 170 +#choplist .xwiki-livetable-display-body tr:hover td { 171 + background-color: #eef4f8; 223 223 } 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 + 224 224 </style> 225 225 {{/html}} 186 + 187 +{{velocity}} 188 +{{liveData 189 + id="choplist" 190 + properties="code,text_de,text_fr,text_it,valid_start,valid_end,chop_like,treat_cat,topo_group,chcr_only" 191 + source="liveTable" 192 + sourceParameters="className=CHOPlist.Code.CHOPlistClass&translationPrefix=choplist.livetable." 193 + sort="code:asc" 194 + limit="30" 195 +/}} 196 +{{/velocity}}