<div id="admin_groups_main">
	<h1>Редактирование группы</h1>
	<div><a href="{url}" title="назад"><img class="icon" src="/skins/default/images/icons/simple_arrow_left.png" alt="назад" /></a></div>
	<form method="post" action="">
		<input type="hidden" name="token" value="{$_user->token}" />
		<div style="margin:10px;">
			Название группы*: <input class="focusPokus" {if $smarty.get.var2 == -1} disable {/if} type="text" name="group_name" value="{$smarty.post.group_name|default:$group_name|escape}" size="60" maxlength="40"/> <br/><br/>
			{if $group_id>2 || $smarty.get.action=='add'}
			Родитель: 
			<select name="parent_id">
			{foreach $select_groups as $a}
				<option value="{$a.group_id}"{if $smarty.post.parent_id==$a.group_id || $parent_id==$a.group_id} selected='selected'{/if}>{textformat indent=$a.indent*10 indent_char='&nbsp;'}&nbsp;{/textformat}{$a.group_name|escape}</option>
			{/foreach}
			</select><br />
			{/if}
			<input type="submit" value="Сохранить" />
		</div>
	</form>
</div>