init
[garradin.git] / templates / admin / membres / categories.tpl
1 {include file="admin/_head.tpl" title="Catégories de membres" current="membres/categories"}
2
3 <table class="list">
4 <thead>
5 <th>Nom</th>
6 <td>Membres</td>
7 <td>Droits</td>
8 <td></td>
9 </thead>
10 <tbody>
11 {foreach from=$liste item="cat"}
12 <tr>
13 <th>{$cat.nom|escape}</th>
14 <td class="num">{$cat.nombre|escape}</td>
15 <td class="droits">
16 {format_droits droits=$cat}
17 </td>
18 <td class="actions">
19 <a href="cat_modifier.php?id={$cat.id|escape}">Modifier</a>
20 | <a href="cat_supprimer.php?id={$cat.id|escape}">Supprimer</a>
21 </td>
22 </tr>
23 {/foreach}
24 </tbody>
25 </table>
26
27 {if $error}
28 <p class="error">
29 {$error|escape}
30 </p>
31 {/if}
32
33 <form method="post" action="{$self_url|escape}">
34
35 <fieldset>
36 <legend>Ajouter une catégorie</legend>
37 <dl>
38 <dt><label for="f_nom">Nom</label> <b title="(Champ obligatoire)">obligatoire</b></dt>
39 <dd><input type="text" name="nom" id="f_nom" value="{form_field name=nom}" required="required" /></dd>
40 </dl>
41 </fieldset>
42
43 <p class="submit">
44 {csrf_field key="new_cat"}
45 <input type="submit" name="save" value="Enregistrer &rarr;" />
46 </p>
47
48 </form>
49
50
51 {include file="admin/_foot.tpl"}