Mercurial > gemma
changeset 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 | 2dab20bed284 |
children | 9a02b770c2e6 |
files | client/src/components/systemconfiguration/PDFTemplates.vue |
diffstat | 1 files changed, 9 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/components/systemconfiguration/PDFTemplates.vue Fri May 10 10:28:37 2019 +0200 +++ b/client/src/components/systemconfiguration/PDFTemplates.vue Fri May 10 10:32:39 2019 +0200 @@ -13,15 +13,17 @@ <div class="mt-1 border-bottom pb-4"> <UITableHeader :columns="[ - { id: 'name', title: `${nameLabel}`, class: 'col-4' }, - { id: 'time', title: `${dateLabel}`, class: 'col-4' }, + { id: 'name', title: `${nameLabel}`, class: 'col-3' }, + { id: 'time', title: `${dateLabel}`, class: 'col-3' }, + { id: 'type', title: `${typeLabel}`, class: 'col-2' }, { id: 'country', title: `${countryLabel}`, class: 'col-2' } ]" /> <UITableBody :data="templates | sortTable(sortColumn, sortDirection)"> <template v-slot:row="{ item: template }"> - <div class="py-1 col-4">{{ template.name }}</div> - <div class="py-1 col-4">{{ template.time }}</div> + <div class="py-1 col-3">{{ template.name }}</div> + <div class="py-1 col-3">{{ template.time }}</div> + <div class="py-1 col-2">{{ template.type }}</div> <div class="py-1 col-2" v-if="template.country"> {{ template.country }} </div> @@ -128,6 +130,9 @@ }, countryLabel() { return this.$gettext("Country"); + }, + typeLabel() { + return this.$gettext("type"); } }, methods: {