init
[garradin.git] / templates / admin / compta / comptes / modifier.tpl
1 {include file="admin/_head.tpl" title="Modifier 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>Modifier un compte</legend>
13 <dl>
14 <dt><label for="f_libelle">Libellé</label> <b title="(Champ obligatoire)">obligatoire</b></dt>
15 <dd><input type="text" name="libelle" id="f_libelle" value="{form_field name=libelle data=$compte}" required="required" /></dd>
16 <dt><label for="f_position_1">Position</label> <b title="(Champ obligatoire)">obligatoire</b></dt>
17 {foreach from=$positions item="pos" key="id"}
18 <dd>
19 <input type="radio" name="position" id="f_position_{$id|escape}" value="{$id|escape}" {if $position == $id}checked="checked"{/if} />
20 <label for="f_position_{$id|escape}">{$pos|escape}</label>
21 </dd>
22 {/foreach}
23 </dl>
24 </fieldset>
25
26 <p class="submit">
27 {csrf_field key="compta_edit_compte_`$compte.id`"}
28 <input type="submit" name="save" value="Enregistrer &rarr;" />
29 </p>
30
31 </form>
32
33 {include file="admin/_foot.tpl"}