init
[garradin.git] / templates / admin / compta / comptes / ajouter.tpl
1 {include file="admin/_head.tpl" title="Ajouter un compte" current="compta/categories"}
2
3 {if $error}
4 <p class="error">
5 {$error|escape}
6 </p>
7 {/if}
8
9 <form method="post" action="{$self_url|escape}">
10
11 <fieldset>
12 <legend>Ajouter un compte</legend>
13 <dl>
14 <dt><label for="f_parent">Compte parent</label> <b title="(Champ obligatoire)">obligatoire</b></dt>
15 <dd>
16 {select_compte comptes=$comptes name="parent" create=true}
17 </dd>
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"}
24 <dd>
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>
27 </dd>
28 {/foreach}
29 </dl>
30 </fieldset>
31
32 <p class="submit">
33 {csrf_field key="compta_ajout_compte"}
34 <input type="submit" name="add" value="Enregistrer &rarr;" />
35 </p>
36
37 </form>
38
39 {include file="admin/_foot.tpl"}