Files
kupshop/web/templates/x/bonus-program/bonus-program.exchange-list.tpl
2025-08-02 16:30:27 +02:00

42 lines
1.1 KiB
Smarty

{extends "account/account-wrapper.tpl"}
{block "title"}
<h1>{$view->getTitle()}</h1>
{/block}
{block "account-content"}
<table class="table orders-list">
<thead>
<tr>
<th>{t}Název{/t}</th>
<th>&nbsp;</th>
<th>{t}Počet bodů{/t}</th>
<th>{t}Vyměnit{/t}</th>
</tr>
</thead>
<tbody>
{ifmodule BONUS_PROGRAM}
{get_active_points_amount assign="points"}
{/ifmodule}
{foreach $body.exchangeList as $item}
<tr>
<td>{$item.name}</td>
<td>{$item.description nofilter}</td>
<td>{$item.points} b.</td>
<td>
{if $points >= $item.points}
<a href="{path('kupshop_bonusprogram_bonusprogramexchange_exchangelist', ['id' => $item.id])}">{t}Vyměnit za body{/t}</a>
{else}
{t}Nedostatek bodů{/t}
{/if}
</td>
</tr>
{foreachelse}
<tr>
<td colspan="4">{t}Žádné poukazy k výměně za body{/t}</td>
</tr>
{/foreach}
</tbody>
</table>
{/block}