forked from PrestaShop/hummingbird
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmailalerts-account-line.tpl
More file actions
36 lines (32 loc) · 1.51 KB
/
mailalerts-account-line.tpl
File metadata and controls
36 lines (32 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{**
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*}
<li class="ps-emailalerts__product" data-ps-ref="emailalerts-product">
<a href="{$mailAlert.link}" class="ps-emailalerts__product-image-link" rel="nofollow">
<img class="ps-emailalerts__product-image img-fluid" src="{$mailAlert.cover_url}" alt="{$mailAlert.name}" loading="lazy">
</a>
<div class="ps-emailalerts__product-content">
<a href="{$mailAlert.link}">
<span class="ps-emailalerts__product-name">{$mailAlert.name}</span>
</a>
{if $mailAlert.attributes_small}
<span class="ps-emailalerts__product-attributes">
{l s='Attributes: %attributes%' sprintf=['%attributes%' => $mailAlert.attributes_small] d='Modules.Emailalerts.Shop'}
</span>
{/if}
{capture name='deleteData'}{strip}{ldelim}
"productId": "{$mailAlert.id_product|intval}",
"productAttributeId": "{$mailAlert.id_product_attribute|intval}",
"url": "{url entity='module' name='ps_emailalerts' controller='actions' params=['process' => 'remove']}"
{rdelim}{/strip}{/capture}
<button type="button"
aria-label="{l s='Delete %productName% mail alert' sprintf=['%productName%' => $mailAlert.name] d='Modules.Emailalerts.Shop'}"
class="link-danger ps-emailalerts__product-delete"
data-ps-action="emailalerts-delete"
data-ps-data="{$smarty.capture.deleteData}"
>
{l s='Delete' d='Modules.Emailalerts.Shop'}
</button>
</div>
</li>