Mercurial > gemma
comparison client/src/components/Pdftool.vue @ 2754:d0f6c222f4f9
client:correct a set of strings marking
author | Fadi Abbud <fadi.abbud@intevation.de> |
---|---|
date | Thu, 21 Mar 2019 13:24:49 +0100 |
parents | 4a5c0e7cb75b |
children | 3063f1485ad6 |
comparison
equal
deleted
inserted
replaced
2753:2aa1620ffd9e | 2754:d0f6c222f4f9 |
---|---|
6 ]" | 6 ]" |
7 > | 7 > |
8 <div style="width: 18rem"> | 8 <div style="width: 18rem"> |
9 <UIBoxHeader | 9 <UIBoxHeader |
10 icon="file-pdf" | 10 icon="file-pdf" |
11 title="Generate PDF" | 11 :title="generatePdfLable" |
12 :closeCallback="close" | 12 :closeCallback="close" |
13 /> | 13 /> |
14 <div class="box-body"> | 14 <div class="box-body"> |
15 <select | 15 <select |
16 @change="applyTemplateToForm" | 16 @change="applyTemplateToForm" |
20 <option | 20 <option |
21 v-for="template in templates" | 21 v-for="template in templates" |
22 :value="template" | 22 :value="template" |
23 :key="template.name" | 23 :key="template.name" |
24 > | 24 > |
25 <translate>{{ template.name }}</translate> | 25 {{ template.name }} |
26 </option> | 26 </option> |
27 </select> | 27 </select> |
28 <select | 28 <select |
29 v-model="form.format" | 29 v-model="form.format" |
30 class="form-control form-control-sm d-block mb-2 w-100" | 30 class="form-control form-control-sm d-block mb-2 w-100" |
167 ...mapState("application", ["showPdfTool", "logoForPDF"]), | 167 ...mapState("application", ["showPdfTool", "logoForPDF"]), |
168 ...mapState("bottlenecks", ["selectedBottleneck", "selectedSurvey"]), | 168 ...mapState("bottlenecks", ["selectedBottleneck", "selectedSurvey"]), |
169 ...mapState("map", ["openLayersMap", "isolinesLegendImgDataURL"]), | 169 ...mapState("map", ["openLayersMap", "isolinesLegendImgDataURL"]), |
170 ...mapGetters("map", ["getLayerByName"]), | 170 ...mapGetters("map", ["getLayerByName"]), |
171 ...mapState("user", ["user"]), | 171 ...mapState("user", ["user"]), |
172 generatePdfLable() { | |
173 return this.$gettext("Generate PDF"); | |
174 }, | |
172 filename() { | 175 filename() { |
173 let date = new Date() | 176 let date = new Date() |
174 .toISOString() | 177 .toISOString() |
175 .slice(0, 10) | 178 .slice(0, 10) |
176 .replace(/-/g, ""); | 179 .replace(/-/g, ""); |