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 subject: Colisión de zona detectada
title: "La zona {0} y localización {1} ha sido registrada en más de un sitio" 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"> <div class="grid-block vn-pa-ml">
<table cellspacing="10"> <table cellspacing="10">
<tr> <tr>
<th>C.Postal</th> <th>{{ $t('postalCode') }}</th>
<th>Número de zona</th> <th>{{ $t('zoneFk') }}</th>
<th>Precio</th> <th>{{ $t('price') }}</th>
<th>Zona</th> <th>{{ $t('zone') }}</th>
<th>Almacén</th> <th>{{ $t('warehouse') }}</th>
<th>Salix</th> <th>Salix</th>
</tr> </tr>
<tr> <tr v-for="zone in zoneCollisions">
<td>{{ zn.name }}</td> <td>{{ zone.zn.name }}</td>
<td>{{ zoneFk }}</td> <td>{{ zone.zoneFk }}</td>
<td>{{ z.price }}</td> <td>{{ zone.z.price }}</td>
<td>{{ z.name }}</td> <td>{{ zone.z.name }}</td>
<td>{{ w.name }}</td> <td>{{ zone.w.name }}</td>
<td><a href="https://salix.verdnatura.es/#!/zone/', <td>
zoneFk, <a v-bind:href="'https://salix.verdnatura.es/#!/zone/'+
'/location?q=%7B%22search%22:%22', zone.zoneFk+
zn.name, '/location?q=%7B%22search%22:%22'+
'%22%7D">' zone.zn.name+
'https://salix.verdnatura.es/#!/zone/', '%22%7D'">
zoneFk, 'https://salix.verdnatura.es/#!/zone/'+
'/location?q=%7B%22search%22:%22', {{zone.zoneFk}}+
zn.name, '/location?q=%7B%22search%22:%22'+
{{zone.zn.name}}+
'%22%7D</a></td> '%22%7D</a></td>
</tr> </tr>
</table> </table>

View File

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