Mercurial > gemma
comparison client/src/components/systemconfiguration/PDFTemplates.vue @ 3232:86231e847762
client: add type field for pdf-templates configuration
author | Fadi Abbud <fadi.abbud@intevation.de> |
---|---|
date | Fri, 10 May 2019 10:32:39 +0200 |
parents | 128d686c3950 |
children | 22dfaa22e96e |
comparison
equal
deleted
inserted
replaced
3231:2dab20bed284 | 3232:86231e847762 |
---|---|
11 /> | 11 /> |
12 </div> | 12 </div> |
13 <div class="mt-1 border-bottom pb-4"> | 13 <div class="mt-1 border-bottom pb-4"> |
14 <UITableHeader | 14 <UITableHeader |
15 :columns="[ | 15 :columns="[ |
16 { id: 'name', title: `${nameLabel}`, class: 'col-4' }, | 16 { id: 'name', title: `${nameLabel}`, class: 'col-3' }, |
17 { id: 'time', title: `${dateLabel}`, class: 'col-4' }, | 17 { id: 'time', title: `${dateLabel}`, class: 'col-3' }, |
18 { id: 'type', title: `${typeLabel}`, class: 'col-2' }, | |
18 { id: 'country', title: `${countryLabel}`, class: 'col-2' } | 19 { id: 'country', title: `${countryLabel}`, class: 'col-2' } |
19 ]" | 20 ]" |
20 /> | 21 /> |
21 <UITableBody :data="templates | sortTable(sortColumn, sortDirection)"> | 22 <UITableBody :data="templates | sortTable(sortColumn, sortDirection)"> |
22 <template v-slot:row="{ item: template }"> | 23 <template v-slot:row="{ item: template }"> |
23 <div class="py-1 col-4">{{ template.name }}</div> | 24 <div class="py-1 col-3">{{ template.name }}</div> |
24 <div class="py-1 col-4">{{ template.time }}</div> | 25 <div class="py-1 col-3">{{ template.time }}</div> |
26 <div class="py-1 col-2">{{ template.type }}</div> | |
25 <div class="py-1 col-2" v-if="template.country"> | 27 <div class="py-1 col-2" v-if="template.country"> |
26 {{ template.country }} | 28 {{ template.country }} |
27 </div> | 29 </div> |
28 <div class="py-1 col-2" v-else><i>global</i></div> | 30 <div class="py-1 col-2" v-else><i>global</i></div> |
29 <div class="col py-1 text-right"> | 31 <div class="col py-1 text-right"> |
126 dateLabel() { | 128 dateLabel() { |
127 return this.$gettext("Date"); | 129 return this.$gettext("Date"); |
128 }, | 130 }, |
129 countryLabel() { | 131 countryLabel() { |
130 return this.$gettext("Country"); | 132 return this.$gettext("Country"); |
133 }, | |
134 typeLabel() { | |
135 return this.$gettext("type"); | |
131 } | 136 } |
132 }, | 137 }, |
133 methods: { | 138 methods: { |
134 downloadTemplate(template) { | 139 downloadTemplate(template) { |
135 if (template) { | 140 if (template) { |