init
[garradin.git] / templates / admin / compta / categories / ajouter.tpl
1 {include file="admin/_head.tpl" title="Ajouter une catégorie" 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 une catégorie</legend>
13 <dl>
14 <dt><label for="f_type">Type</label> <b title="(Champ obligatoire)">obligatoire</b></dt>
15 <dd>
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>
19 </select>
20 </dd>
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>
26 <dd>
27 {select_compte comptes=$comptes name="compte"}
28 </dd>
29 </dl>
30 </fieldset>
31
32 <p class="submit">
33 {csrf_field key="compta_ajout_cat"}
34 <input type="submit" name="add" value="Enregistrer &rarr;" />
35 </p>
36
37 </form>
38
39 {include file="admin/_foot.tpl"}