1 {include file="admin/_head.tpl" title="Ajouter un compte" current="compta/categories"}
9 <form method="post" action="{$self_url|escape}">
12 <legend>Ajouter un compte</legend>
14 <dt><label for="f_parent">Compte parent</label> <b title="(Champ obligatoire)">obligatoire</b></dt>
16 {select_compte comptes=$comptes name="parent" create=true}
18 <dt><label for="f_numero">Numéro de compte</label> <b title="(Champ obligatoire)">obligatoire</b></dt>
19 <dd><input type="text" size="10" name="numero" id="f_numero" value="{form_field name=numero}" required="required" /></dd>
20 <dt><label for="f_libelle">Libellé</label> <b title="(Champ obligatoire)">obligatoire</b></dt>
21 <dd><input type="text" name="libelle" id="f_libelle" value="{form_field name=libelle}" required="required" /></dd>
22 <dt><label for="f_position_1">Position</label> <b title="(Champ obligatoire)">obligatoire</b></dt>
23 {foreach from=$positions item="pos" key="id"}
25 <input type="radio" name="position" id="f_position_{$id|escape}" value="{$id|escape}" {if $position == $id}checked="checked"{/if} />
26 <label for="f_position_{$id|escape}">{$pos|escape}</label>
33 {csrf_field key="compta_ajout_compte"}
34 <input type="submit" name="add" value="Enregistrer →" />
39 {include file="admin/_foot.tpl"}