core/api/modules/a_tovar_cat/index.html

98 lines
4.9 KiB
HTML
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{include file=$header_admin h1="Все товары" title="Все товары"}
<input type="hidden" id="parent_id" value="{$smarty.get.id}"> {* вышестоящая категория, если она есть *}
<input type="hidden" id="del_id" value="">{* Ид удаляемого контента *}
{if ($catInfo)}
<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">{$catInfo[0].title}</li>
</ol>
</nav>
<h1>{$catInfo[0].title}</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="ibox">
<div class="ibox-head">
<div class="ibox-title">
Товары
</div>
<ul class="nav nav-tabs tabs-line pull-right">
<li class="nav-item">
<a class="nav-link active" href="#tab-8-1" data-toggle="tab"><i class="fa-sharp fa-solid fa-list"></i> Список</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#tab-8-2" data-toggle="tab"><i class="fa-sharp fa-solid fa-list"></i> Свойства категории</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#tab-8-3" data-toggle="tab"><i class="fa-sharp fa-solid fa-list"></i> Изображения</a>
</li>
</ul>
</div>
<div class="ibox-body">
<div class="tab-content">
<div class="tab-pane fade show active" id="tab-8-1">
<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>
<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>
<label class="ui-checkbox ml-3 mt-1"><input type="checkbox" {if $set.showNoPublic=="1"} checked {/if} id="setShowNoPublic"><span class="input-span"></span>Показывать отключенные</label>
</div>
<table class="table">
<!-- Категории -->
{include file=$cat_list massiv=$cats}
<!-- Страницы -->
{include file=$pages_list massiv=$pages}
</table>
</div>
<div class="tab-pane" id="tab-8-2">
<div class="mt-2 mb-2 p-3" style="border: 1px solid lightgray;">
<input type="text" placeholder="Наименование" id="title" class="form-control" value="{$catInfo[0].title}">
<input type="text" placeholder="keywords" id="keywords" class="form-control mt-2" value="{$catInfo[0].keywords}">
<input type="text" placeholder="description" id="description" class="form-control mt-2" value="{$catInfo[0].description}">
<input type="hidden" id="id" value="{$smarty.get.id}">
<select class="form-control mt-2 mb-2" name="category" id="category">
<option value="0">Нет</option>
{section name=customer loop=$catList} {if $catList[customer].id}
<option value="{$catList[customer].id}" {if ($catInfo[0].category==$catList[customer].id)} selected{/if}>{$catList[customer].title}</option>
{/if} {/section}
</select>
<div class="form-check" style="padding-top: 5px; margin-left: 17px;">
<input type="checkbox" class="form-check-input" id="status" name="status" {if $catInfo[0].status==1}checked{/if}>
<label class="form-check-label" for="public">Публиковать</label>
</div>
</div>
</div>
<div class="tab-pane" id="tab-8-3">
</div>
</div>
</div>
</div>
<!-- Модалка удаления -->
{include file=$modal_del_page}
<!-- Футер -->
{include file=$footer_admin}