48 lines
1.9 KiB
HTML
48 lines
1.9 KiB
HTML
|
{include file=$header_admin h1="Все товары" title="Все товары"}
|
|||
|
<input type="hidden" id="parent_id" value="{$smarty.get.id}"> {* вышестоящая категория, если она есть *}
|
|||
|
<input type="hidden" id="del_id" value="">{* Ид удаляемого контента *}
|
|||
|
|
|||
|
{if ($this_cat)}
|
|||
|
|
|||
|
<nav aria-label="breadcrumb">
|
|||
|
<ol class="breadcrumb">
|
|||
|
<li class="breadcrumb-item"><a href="/admin/">Главная</a></li>
|
|||
|
<li class="breadcrumb-item"><a href="/a_tovar_cat/">Товары</a></li>
|
|||
|
<li class="breadcrumb-item active" aria-current="page">{$this_cat}</li>
|
|||
|
</ol>
|
|||
|
</nav>
|
|||
|
<h1>{$this_cat}</h1>
|
|||
|
|
|||
|
{else}
|
|||
|
|
|||
|
<nav aria-label="breadcrumb">
|
|||
|
<ol class="breadcrumb">
|
|||
|
<li class="breadcrumb-item"><a href="/admin/">Главная</a></li>
|
|||
|
<li class="breadcrumb-item active" aria-current="page">Товары</li>
|
|||
|
</ol>
|
|||
|
</nav>
|
|||
|
|
|||
|
{/if}
|
|||
|
|
|||
|
<div class="btn-group" role="group" aria-label="Basic example">
|
|||
|
<button type="button" data-link="/a_new_tovar/" class="btn btn-primary"><i class="far fa-file" style="margin-right: 7px;"></i>Создать товар</button>
|
|||
|
<button type="button" class="btn btn-primary" data-link="/a_edit_cat/"><i class="fas fa-plus" style="margin-right: 7px;"></i> Новая категория</button>
|
|||
|
<button type="button" class="btn btn-primary" data-link="/a_edit_cat/"><i class="fa-solid fa-circle-up" style="margin-right: 7px;"></i> Выше</button>
|
|||
|
|
|||
|
|
|||
|
</div>
|
|||
|
|
|||
|
<table class="table">
|
|||
|
<!-- Категории -->
|
|||
|
{include file=$cat_list massiv=$cats}
|
|||
|
<!-- Страницы -->
|
|||
|
{include file=$pages_list massiv=$pages}
|
|||
|
</table>
|
|||
|
|
|||
|
<!-- Модалка новой категории -->
|
|||
|
{* include file=$modal_new_cat *}
|
|||
|
|
|||
|
<!-- Модалка удаления -->
|
|||
|
{include file=$modal_del_page}
|
|||
|
<!-- Футер -->
|
|||
|
{include file=$footer_admin}
|