Files
kupshop/web/templates/koza/orders.tpl
2025-08-02 16:30:27 +02:00

50 lines
2.2 KiB
Smarty

{extends "index.tpl"}
{block content}
<div class="page-orders">
<h1>{t}Moje objednávky{/t}</h1>
<p>{t}Zde máte k dispozici historii všech Vašich objednávek.{/t}</p>
<table class="table table-striped table-orders" data-orders>
<tr>
<th>{t}Objednávka{/t}</th>
<th>{t}Stav{/t}</th>
<th>{t}Cena{/t}</th>
<th class="hidden-sm-down">{t}Datum{/t}</th>
<th>{t}Zobrazit{/t}</th>
</tr>
{foreach $body.orders as $order}
<tr>
<td>{t}č.{/t} {$order.number}</td>
<td>{$order.status}</td>
<td><strong>{$order.price}</strong></td>
<td class="hidden-sm-down">{$order.date|date_format:"%d. %m. %Y"}<span class="hidden-sm-down"> {$order.date|date_format:"%H:%M"}</span></td>
<td>
<a title="{t}Zobrazit{/t}" href="{url s=orderView IDo=$order.id}" class="btn btn-primary btn-sm">{t}Detail{/t}</a>
{ifmodule RECLAMATIONS}
{if (!$cfg.Modules.reclamations.admin_only && !$dbcfg.reclamations.adminOnly) || getAdminUser() || $dbcfg.reclamations.adminOnly != 'Y'}
<a title="{t}Reklamovat{/t}" href="{path('kupshop_reclamationselnino_reclamations_createreclamationorder', ['id_order' => $order.id])}" class="btn btn-primary btn-sm">{t}Reklamovat{/t}</a>
{/if}
{/ifmodule}
{ifmodule RETURNS}
{if (!$cfg.Modules.returns.admin_only && !$dbcfg.returns.adminOnly) || getAdminUser() || $dbcfg.returns.adminOnly != 'Y'}
<a title="{t}Vratka{/t}" href="{path('kupshop_returnselnino_returns_createreturnorder', ['id_order' => $order.id])}" class="btn btn-primary btn-sm">{t}Odstoupení od smlouvy{/t}</a> <br>
{/if}
{/ifmodule}
</td>
</tr>
{/foreach}
{if !$body.orders}
<tr>
<td colspan="5">{t}Prozatím nemáte žádnou objednávku{/t}</td>
</tr>
{/if}
</table>
{if $body.pager.count > 1}
{include "block.pager.tpl" pager=$body.pager}
{/if}
</div>
{/block}