2021-10-07 11:48:55 +03:00
|
|
|
{extends "@layout.xml"}
|
|
|
|
|
|
|
|
{block title}
|
2022-04-24 09:02:23 +03:00
|
|
|
{_admin_giftsets}
|
2021-10-07 11:48:55 +03:00
|
|
|
{/block}
|
|
|
|
|
|
|
|
{block headingWrap}
|
|
|
|
<a style="float: right;" class="aui-button aui-button-primary" href="/admin/gifts/new.0.meta">
|
|
|
|
{_create}
|
|
|
|
</a>
|
|
|
|
|
2022-04-24 09:02:23 +03:00
|
|
|
<h1>{_admin_giftsets}</h1>
|
2021-10-07 11:48:55 +03:00
|
|
|
{/block}
|
|
|
|
|
|
|
|
{block content}
|
|
|
|
<div id="spacer" style="height: 8px;"></div>
|
|
|
|
{if sizeof($categories) > 0}
|
|
|
|
<table class="aui aui-table-list">
|
|
|
|
<tbody>
|
|
|
|
<tr n:foreach="$categories as $cat">
|
|
|
|
<td style="vertical-align: middle;">
|
|
|
|
<span class="aui-icon aui-icon-small aui-iconfont-folder-filled">{$cat->getName()}</span>
|
|
|
|
{$cat->getName()}
|
|
|
|
</td>
|
|
|
|
<td style="vertical-align: middle;">
|
|
|
|
{ovk_proc_strtr($cat->getDescription(), 128)}
|
|
|
|
</td>
|
|
|
|
<td style="vertical-align: middle; text-align: right;">
|
|
|
|
<a class="aui-button aui-button-primary" href="/admin/gifts/{$cat->getSlug()}.{$cat->getId()}.meta">
|
2022-04-24 09:02:23 +03:00
|
|
|
<span class="aui-icon aui-icon-small aui-iconfont-new-edit">{_edit}</span>
|
2021-10-07 11:48:55 +03:00
|
|
|
</a>
|
|
|
|
|
|
|
|
<a class="aui-button" href="/admin/gifts/{$cat->getSlug()}.{$cat->getId()}/">
|
2022-04-24 09:02:23 +03:00
|
|
|
<span class="aui-icon aui-icon-small aui-iconfont-gallery">{_admin_open}</span>
|
2021-10-07 11:48:55 +03:00
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
{else}
|
|
|
|
<center>
|
2022-04-24 09:02:23 +03:00
|
|
|
<p>{_admin_giftsets_none}</p>
|
2021-10-07 11:48:55 +03:00
|
|
|
</center>
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
<div align="right">
|
2022-04-24 08:06:45 +03:00
|
|
|
{var $isLast = ((20 * (($_GET['p'] ?? 1) - 1)) + sizeof($categories)) < $count}
|
2022-04-24 09:02:23 +03:00
|
|
|
<a n:if="($_GET['p'] ?? 1) > 1" class="aui-button" href="?act={$act}&p={($_GET['p'] ?? 1) - 1}">«</a>
|
|
|
|
<a n:if="$isLast" class="aui-button" href="?act={$act}&p={($_GET['p'] ?? 1) + 1}">»</a>
|
2021-10-07 11:48:55 +03:00
|
|
|
</div>
|
|
|
|
{/block}
|