18 lines
705 B
HTML
18 lines
705 B
HTML
|
{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}
|