1 {include file="admin/_head.tpl" title="Ajouter une catégorie" current="compta/categories"}
9 <form method="post" action="{$self_url|escape}">
12 <legend>Ajouter une catégorie</legend>
14 <dt><label for="f_type">Type</label> <b title="(Champ obligatoire)">obligatoire</b></dt>
16 <select name="type" id="f_type" required="required">
17 <option value="{Garradin\Compta_Categories::RECETTES}"{if $type == Garradin\Compta_Categories::RECETTES} selected="selected"{/if}>Recette</option>
18 <option value="{Garradin\Compta_Categories::DEPENSES}"{if $type == Garradin\Compta_Categories::DEPENSES} selected="selected"{/if}>Dépense</option>
21 <dt><label for="f_intitule">Intitulé</label> <b title="(Champ obligatoire)">obligatoire</b></dt>
22 <dd><input type="text" name="intitule" id="f_intitule" value="{form_field name=intitule}" required="required" /></dd>
23 <dt><label for="f_description">Description</label></dt>
24 <dd><textarea name="description" id="f_description" rows="4" cols="30">{form_field name=description}</textarea></dd>
25 <dt><label for="f_compte">Compte affecté</label> <b title="(Champ obligatoire)">obligatoire</b></dt>
27 {select_compte comptes=$comptes name="compte"}
33 {csrf_field key="compta_ajout_cat"}
34 <input type="submit" name="add" value="Enregistrer →" />
39 {include file="admin/_foot.tpl"}