mirror of
https://github.com/openvk/openvk
synced 2024-12-23 17:12:01 +03:00
9336a91623
Signed-off-by: Celestora <kitsuruko@gmail.com>
56 lines
2.2 KiB
XML
56 lines
2.2 KiB
XML
{extends "@layout.xml"}
|
|
|
|
{block title}
|
|
Наборы подарков
|
|
{/block}
|
|
|
|
{block headingWrap}
|
|
<a style="float: right;" class="aui-button aui-button-primary" href="/admin/gifts/new.0.meta">
|
|
{_create}
|
|
</a>
|
|
|
|
<h1>Наборы подарков</h1>
|
|
{/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">
|
|
<span class="aui-icon aui-icon-small aui-iconfont-new-edit">Редактировать</span>
|
|
</a>
|
|
|
|
<a class="aui-button" href="/admin/gifts/{$cat->getSlug()}.{$cat->getId()}/">
|
|
<span class="aui-icon aui-icon-small aui-iconfont-gallery">Открыть</span>
|
|
Открыть
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
{else}
|
|
<center>
|
|
<p>Наборов подарков нету. Чтобы создать подарок, создайте набор.</p>
|
|
</center>
|
|
{/if}
|
|
|
|
<div align="right">
|
|
{var isLast = ((20 * (($_GET['p'] ?? 1) - 1)) + sizeof($categories)) < $count}
|
|
<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>
|
|
</div>
|
|
{/block}
|