Changes for page Drug_list
Last modified by Marco Weber on 2026/10/20 14:49
From version 10.1
edited by Marco Weber
on 2026/10/20 14:01
on 2026/10/20 14:01
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Attachments (1 modified, 0 added, 0 removed)
-
Objects (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,165 +1,23 @@ 1 -{{html clean="false"}} 2 -<style> 3 - 4 -/* ========================================================= 5 - Morphology LiveData – Tabellenformatierung 6 - ========================================================= */ 7 - 8 -/* Gesamte Tabelle */ 9 -table.layout-table-root.responsive-table { 10 - width: 100%; 11 - border-collapse: collapse; 12 - table-layout: fixed; 13 -} 14 - 15 -/* ========================================================= 16 - Kopfzeile 17 - ========================================================= */ 18 - 19 -table.layout-table-root.responsive-table thead th { 20 - font-weight: bold; 21 - font-size: 1.0em; 22 - background-color: #00BFFF; 23 - border: 1px solid #999; 24 - padding: 7px 6px; 25 - vertical-align: middle; 26 -} 27 - 28 -/* Eigentliche Spaltenbezeichnung */ 29 -table.layout-table-root.responsive-table thead .property-name { 30 - font-weight: bold; 31 -} 32 - 33 -/* Sortier-Button nicht unnötig hervorheben */ 34 -table.layout-table-root.responsive-table thead .handle { 35 - font-weight: bold; 36 -} 37 - 38 -/* ========================================================= 39 - Filterzeile 40 - ========================================================= */ 41 - 42 - 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; 47 -} 48 - 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 -/* ========================================================= 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; 83 -} 84 - 85 -/* ========================================================= 86 - Spaltenbreiten 87 - ========================================================= */ 88 - 89 -/* ========================================================= 90 - Spaltenbreiten 91 - Reihenfolge: 92 - 1 atc_code 93 - 2 drug_name 94 - 3 trade_name 95 - 4 text_de 96 - 5 text_fr 97 - 6 text_it 98 - 7 incidence_year 99 - ========================================================= */ 100 - 101 -table.layout-table-root.responsive-table th:nth-child(1), 102 -table.layout-table-root.responsive-table td:nth-child(1) { 103 - width: 5%; 104 -} 105 - 106 -table.layout-table-root.responsive-table th:nth-child(2), 107 -table.layout-table-root.responsive-table td:nth-child(2) { 108 - width: 15%; 109 -} 110 - 111 -table.layout-table-root.responsive-table th:nth-child(3), 112 -table.layout-table-root.responsive-table td:nth-child(3) { 113 - width: 15%; 114 -} 115 - 116 -table.layout-table-root.responsive-table th:nth-child(4), 117 -table.layout-table-root.responsive-table td:nth-child(4) { 118 - width: 20%; 119 -} 120 - 121 -table.layout-table-root.responsive-table th:nth-child(5), 122 -table.layout-table-root.responsive-table td:nth-child(5) { 123 - width: 20%; 124 -} 125 - 126 -table.layout-table-root.responsive-table th:nth-child(6), 127 -table.layout-table-root.responsive-table td:nth-child(6) { 128 - width: 20%; 129 -} 130 - 131 -table.layout-table-root.responsive-table th:nth-child(6), 132 -table.layout-table-root.responsive-table td:nth-child(6) { 133 - width: 5%; 134 -} 135 - 136 - 137 -/* ========================================================= 138 - Header-Ausrichtung 139 - ========================================================= */ 140 - 141 -table.layout-table-root.responsive-table th[data-title="atc_code"], 142 -table.layout-table-root.responsive-table th[data-title="drug_name"], 143 -table.layout-table-root.responsive-table th[data-title="trade_name"], 144 -table.layout-table-root.responsive-table th[data-title="text_de"], 145 -table.layout-table-root.responsive-table th[data-title="text_fr"], 146 -table.layout-table-root.responsive-table th[data-title="text_it"] 147 -table.layout-table-root.responsive-table th[data-title="incidence_year",{ 148 - text-align: center; 149 -} 150 - 151 -</style> 152 -{{/html}} 153 - 154 - 155 -{{liveData 156 - id="drug_list.livetable" 157 - properties="atc_code,drug_name,trade_name,chop_code,chop_text_de,chop_text_fr,chop_text_it,incidence_year" 158 - source="liveTable" 159 - sourceParameters="className=Drug_list.Code.Drug_listClass&translationPrefix=drug_list.livetable." 160 - sort="incidence_year:asc" 161 - limit="50" 162 - layouts="table" 163 - showPageSizeDropdown="true" 164 - pageSizes="25,50,75,100" 165 -}} 1 +{{velocity}} 2 +#set ($columnsProperties = { 3 + 'atc_code': {}, 4 + 'drug_name': {}, 5 + 'trade_name': {}, 6 + 'chop_code': {}, 7 + 'chop_text_de': {}, 8 + 'chop_text_fr': {}, 9 + 'chop_text_it': {}, 10 + 'incidence_year': {} 11 +}) 12 +#set ($options = { 13 + 'className': 'Drug_list.Code.Drug_listClass', 14 + 'translationPrefix': 'drug_list.livetable.', 15 + 'tagCloud': true, 16 + 'rowCount': 15, 17 + 'maxPages': 10, 18 + 'selectedColumn': 'atc_code', 19 + 'defaultOrder': 'asc' 20 +}) 21 +#set ($columns = ['atc_code', 'drug_name', 'trade_name', 'chop_code', 'chop_text_de', 'chop_text_fr', 'chop_text_it', 'incidence_year']) 22 +#livetable('drug_list' $columns $columnsProperties $options) 23 +{{/velocity}}
- drug list_ready.csv
-
- Size
-
... ... @@ -1,1 +1,1 @@ 1 -1 42.1KB1 +139.3 KB - Content
- BatchImport.BatchImportClass[0]
-
- classname
-
... ... @@ -1,1 +1,0 @@ 1 -Drug_list.Code.Drug_listClass - Clear file names
-
... ... @@ -1,1 +1,0 @@ 1 -Yes - List Separator
-
... ... @@ -1,1 +1,0 @@ 1 -, - mapping
-
... ... @@ -1,9 +1,0 @@ 1 -drug_name=drug_name 2 -atc_code=atc_code 3 -incidence_year=incidence_year 4 -chop_text_fr=chop_text_fr 5 -ID=doc.name 6 -chop_text_it=chop_text_it 7 -chop_text_de=chop_text_de 8 -chop_code=chop_code 9 -trade_name=trade_name - space
-
... ... @@ -1,1 +1,0 @@ 1 -Drug_list