Merge branch 'xorg/maint'
[platal.git] / templates / xnet / admin.tpl
1 {**************************************************************************}
2 {*                                                                        *}
3 {*  Copyright (C) 2003-2014 Polytechnique.org                             *}
4 {*  http://opensource.polytechnique.org/                                  *}
5 {*                                                                        *}
6 {*  This program is free software; you can redistribute it and/or modify  *}
7 {*  it under the terms of the GNU General Public License as published by  *}
8 {*  the Free Software Foundation; either version 2 of the License, or     *}
9 {*  (at your option) any later version.                                   *}
10 {*                                                                        *}
11 {*  This program is distributed in the hope that it will be useful,       *}
12 {*  but WITHOUT ANY WARRANTY; without even the implied warranty of        *}
13 {*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *}
14 {*  GNU General Public License for more details.                          *}
15 {*                                                                        *}
16 {*  You should have received a copy of the GNU General Public License     *}
17 {*  along with this program; if not, write to the Free Software           *}
18 {*  Foundation, Inc.,                                                     *}
19 {*  59 Temple Place, Suite 330, Boston, MA  02111-1307  USA               *}
20 {*                                                                        *}
21 {**************************************************************************}
22
23 {if $smarty.get.del}
24
25 <h1>Suppression du groupe {$nom}</h1>
26
27 <form action="admin?del={$smarty.request.del}" method="post">
28   {xsrf_token_field}
29   <div class="center">
30     <input type="submit" name="del" value="Oui, je veux supprimer ce groupe" />
31   </div>
32 </form>
33
34 {else}
35
36 <h1>Ajouter un groupe</h1>
37
38 <form action="admin" method="post">
39   {xsrf_token_field}
40   <p class="descr">
41   Pour ajouter un groupe, choisir ici le diminutif qu'il va utiliser,
42   tu seras ensuite redirigé vers une page te permettant d'éditer le groupe&nbsp;:
43   </p>
44   <div class="center">
45     <input type="text" name="diminutif" value="{$smarty.request.diminutif}" />
46     <input type="submit" name="del" value="Ajouter" />
47   </div>
48 </form>
49
50
51 <h1>Administration des groupes X.net</h1>
52
53 <table cellspacing="0" cellpadding="0" class='large'>
54   {foreach from=$assos item=a key=i name=all}
55   {if $i is even}<tr>{/if}
56     <td><a href='admin?del={$a.diminutif}'>{icon name=delete title='delete'}</a></td>
57     <td><a href='{$a.diminutif}/edit'>{$a.nom}</a></td>
58     {if $i is odd || $smarty.foreach.all.last}</tr>{/if}
59   {/foreach}
60 </table>
61
62 {/if}
63
64 {* vim:set et sw=2 sts=2 sws=2 fenc=utf-8: *}