big-moving.ru/api/mod/mod_cat.html

18 lines
705 B
HTML
Raw Normal View History

2022-06-24 15:29:23 +05:00
{include file=$header_admin h1="Изменение категории"}
<form method="post" action="">
<div class="input-group">
<input type="text" name="txt" value="{$cats[$smarty.get.id].txt}" placeholder="Имя категории" class="form-control">
<select name="parent" class="form-control">
<option value="0">Нет</option>
{section name=customer loop=$cats}
{if $cats[customer].id}
<option value="{$cats[customer].id}" {if $cats[0].parent==$cats[customer].id}selected{/if}>{$cats[customer].txt}</option>
{/if}
{/section}
</select>
<input type="submit" class="btn btn-success" name="ok" value="Сохранить">
</div>
</form>
{include file=$footer_admin}