24 lines
1.4 KiB
HTML
Executable File
24 lines
1.4 KiB
HTML
Executable File
{include file=$header_admin title="Редактирование категорий" h1="Редактирование категорий"}
|
||
<div class="btn-group">
|
||
<button type="button" data-link="/page_all/" class="btn btn-dark">Все страницы</button>
|
||
<button type="button" data-link="/page_cat/" class="btn btn-dark">Все категории</button>
|
||
</div>
|
||
<form action="" method="post" style="margin-top: 20px;">
|
||
<input placeholder="Название категории" type="text" value="{$cats[0].txt}" class="form-control" name="txt">
|
||
<select name="parent" class="form-control">
|
||
<option value="0">Без категории</option>
|
||
{section name=customer loop=$all_cats}
|
||
{if $all_cats[customer].id}
|
||
<option value="{$all_cats[customer].id}" {if ($all_cats[customer].id==$cats[0].parent)}selected{/if}>{$all_cats[customer].txt}</option>
|
||
{/if}
|
||
{/section}
|
||
</select>
|
||
<select name="public" class="form-control">
|
||
<option value="1">Публиковать</option>
|
||
<option value="0" {if ($cats[0].public==0)}selected{/if}>Не публиковать</option>
|
||
</select>
|
||
<input placeholder="description" type="text" value="{$cats[0].description}" class="form-control" name="description">
|
||
<input placeholder="keywords" type="text" value="{$cats[0].keywords}" class="form-control" name="keywords">
|
||
<input type="submit" value="Сохранить" name="ok" class="btn btn-success">
|
||
</form>
|
||
{include file=$footer_admin} |