{include file="admin/_head.tpl" title="Modifier un compte" current="compta/categories"}
{if $error}
<p class="error">
{$error}
</p>
{/if}
<form method="post" action="{$self_url}">
<fieldset>
<legend>Modifier un compte</legend>
<dl>
<dt><label for="f_libelle">Libellé</label> <b title="(Champ obligatoire)">obligatoire</b></dt>
<dd><input type="text" name="libelle" id="f_libelle" value="{form_field name=libelle data=$compte}" required="required" /></dd>
<dt><label for="f_position_1">Position</label> <b title="(Champ obligatoire)">obligatoire</b></dt>
{foreach from=$positions item="pos" key="id"}
<dd>
<input type="radio" name="position" id="f_position_{$id}" value="{$id}" {if $position == $id}checked="checked"{/if} />
<label for="f_position_{$id}">{$pos}</label>
</dd>
{/foreach}
</dl>
</fieldset>
<p class="submit">
{csrf_field key="compta_edit_compte_%s"|args:$compte.id}
<input type="submit" name="save" value="Enregistrer →" />
</p>
</form>
{include file="admin/_foot.tpl"}