refs #5858 perf: html
gitea/salix/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
Javier Segarra 2024-03-13 15:44:16 +01:00
parent 4012b1756d
commit f09283b9c9
2 changed files with 33 additions and 25 deletions

View File

@ -1,16 +1,24 @@
<email-body v-bind="$props">
<div class="grid-row">
<div class="grid-block vn-pa-ml">
<table cellspacing="10">
<tr>
<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 v-for="zone in zoneCollisions">
<!DOCTYPE html>
<html v-bind:lang="$i18n.locale">
<head>
<meta name="viewport" content="width=device-width" />
<meta name="format-detection" content="telephone=no" />
</head>
<body>
<table class="grid column-oriented">
<thead>
<tr>
<th>{{ $t('postalCode') }}</th>
<th>{{ $t('zoneFk') }}</th>
<th>{{ $t('price') }}</th>
<th>{{ $t('zone') }}</th>
<th>{{ $t('warehouse') }}</th>
<th></th>
</tr>
</thead>
<tbody>
<tr v-for="zone in zoneCollisions">
<td>{{ zone.zn.name }}</td>
<td>{{ zone.zoneFk }}</td>
<td>{{ zone.z.price }}</td>
@ -22,13 +30,13 @@
'/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>
</div>
</div>
</email-body>
https://salix.verdnatura.es/#!/zone/
{{zone.zoneFk}}
/location?q=%7B%22search%22:%22
{{zone.zn.name}}
%22%7D</a></td>
</tr>
</tbody>
</table>
</body>
</html>

View File

@ -1,10 +1,10 @@
const Component = require(`vn-print/core/component`);
const emailBody = new Component('email-body');
const emailHeader = new Component('email-header');
module.exports = {
name: 'zone-included',
components: {
'email-body': emailBody.build(),
'email-header': emailHeader.build(),
},
props: {
zoneCollisions: {type: Array, required: true}