refs #5858 feat: update notification template

This commit is contained in:
Javier Segarra 2023-12-19 07:54:12 +01:00
parent 15936ddc55
commit cc88fcbd9d
3 changed files with 44 additions and 28 deletions

View File

@ -1,2 +1,7 @@
subject: Colisión de zona detectada
title: "La zona {0} y localización {1} ha sido registrada en más de un sitio"
postalCode: C. Postal
zoneFk: Número de zona
price: Precio
zone: Zona
warehouse: Almacén

View File

@ -3,28 +3,29 @@
<div class="grid-block vn-pa-ml">
<table cellspacing="10">
<tr>
<th>C.Postal</th>
<th>Número de zona</th>
<th>Precio</th>
<th>Zona</th>
<th>Almacén</th>
<th>{{ $t('postalCode') }}</th>
<th>{{ $t('zoneFk') }}</th>
<th>{{ $t('price') }}</th>
<th>{{ $t('zone') }}</th>
<th>{{ $t('warehouse') }}</th>
<th>Salix</th>
</tr>
<tr>
<td>{{ zn.name }}</td>
<td>{{ zoneFk }}</td>
<td>{{ z.price }}</td>
<td>{{ z.name }}</td>
<td>{{ w.name }}</td>
<td><a href="https://salix.verdnatura.es/#!/zone/',
zoneFk,
'/location?q=%7B%22search%22:%22',
zn.name,
'%22%7D">'
'https://salix.verdnatura.es/#!/zone/',
zoneFk,
'/location?q=%7B%22search%22:%22',
zn.name,
<tr v-for="zone in zoneCollisions">
<td>{{ zone.zn.name }}</td>
<td>{{ zone.zoneFk }}</td>
<td>{{ zone.z.price }}</td>
<td>{{ zone.z.name }}</td>
<td>{{ zone.w.name }}</td>
<td>
<a v-bind:href="'https://salix.verdnatura.es/#!/zone/'+
zone.zoneFk+
'/location?q=%7B%22search%22:%22'+
zone.zn.name+
'%22%7D'">
'https://salix.verdnatura.es/#!/zone/'+
{{zone.zoneFk}}+
'/location?q=%7B%22search%22:%22'+
{{zone.zn.name}}+
'%22%7D</a></td>
</tr>
</table>

View File

@ -6,6 +6,7 @@ module.exports = {
components: {
'email-body': emailBody.build(),
},
computed: {
},
@ -13,13 +14,22 @@ module.exports = {
},
props: {
zoneSelected: {
type: String,
required: true
},
geoSelected: {
type: String,
required: true
}
zoneCollisions: {type: Array, required: true}
// zoneFk: {
// type: String,
// required: true
// },
// z: {
// type: Object,
// required: true
// },
// zn: {
// type: Object,
// required: true
// },
// w: {
// type: Object,
// required: true
// }
}
};