39 lines
1.8 KiB
Plaintext
39 lines
1.8 KiB
Plaintext
{include file=$header_admin title="Категории товара"}
|
|
<div class="btn-group" role="group" aria-label="Basic example">
|
|
<button type="button" class="btn btn-info" data-link="/t_cats/">Категории</button>
|
|
<button type="button" class="btn btn-info" data-link="/t_cats_edit/">Создать категорию</button>
|
|
<button type="button" class="btn btn-info" data-link="/t_tovar_edit/">Создать товар</button>
|
|
</div>
|
|
<table class="table">
|
|
<tr><td>Название</td><td>Публикация</td><td>Меню</td><td>Действия</td></tr>
|
|
{if ($smarty.get.id)}
|
|
{if ($list[0].parent==0)}
|
|
<tr><td><a href="/t_cats/">Назад</a></td><td></td><td></td><td></td></tr>
|
|
{else}
|
|
<tr><td><a href="/t_cats/{$list[0].parent-1}">Назад</a></td><td></td><td></td><td></td></tr>
|
|
{/if}
|
|
{/if}
|
|
{section name=customer loop=$list}
|
|
{if $list[customer].id}
|
|
<tr>
|
|
<td><a href="/t_cats/{$list[customer].id}"><i class="far fa-folder"></i> {$list[customer].naim}</a></td>
|
|
<td>
|
|
{if ($list[customer].public==1)}
|
|
<i class="fas fa-genderless" style="color: green;font-size: 20pt;"></i>
|
|
{/if}
|
|
</td>
|
|
<td>
|
|
{if ($list[customer].show_mnu==1)}
|
|
<i class="fas fa-genderless" style="color: green;font-size: 20pt;"></i>
|
|
{/if}
|
|
</td>
|
|
<td>
|
|
<i class="far fa-file-alt" title="Информация" style="margin-right: 8px;"></i>
|
|
<a href="/t_cats_edit/{$list[customer].id}"><i class="far fa-edit" title="Изменить категорию" style="margin-right: 8px;"></i></a>
|
|
<i class="fas fa-times" title="Удалить категорию"></i>
|
|
</td>
|
|
</tr>
|
|
{/if}
|
|
{/section}
|
|
</table>
|
|
{include file=$footer_admin} |