2006 => 2007 Happy New Year\!
[platal.git] / templates / xnet / admin.tpl
CommitLineData
0337d704 1{**************************************************************************}
2{* *}
5ddeb07c 3{* Copyright (C) 2003-2007 Polytechnique.org *}
0337d704 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
7b2413f6 27<form action="admin?del={$smarty.request.del}" method="post">
0337d704 28 <div class="center">
29 <input type="submit" name="del" value="Oui, je veux supprimer ce groupe" />
30 </div>
31</form>
32
33{else}
34
35<h1>Ajouter un groupe</h1>
36
7b2413f6 37<form action="admin" method="post">
0337d704 38 <p class="descr">
39 Pour ajouter un groupe, choisir ici le diminutif qu'il va utiliser,
40 tu seras ensuite redirigé vers une page te permettant d'éditer le groupe :
41 </p>
42 <div class="center">
43 <input type="text" name="diminutif" value="{$smarty.request.diminutif}" />
44 <input type="submit" name="del" value="Ajouter" />
45 </div>
46</form>
47
48
49<h1>Administration des groupes X.net</h1>
50
51<table cellspacing="0" cellpadding="0" class='large'>
52 {foreach from=$assos item=a key=i name=all}
53 {if $i is even}<tr>{/if}
a72a67b9 54 <td><a href='admin?del={$a.diminutif}'>{icon name=delete title='delete'}</a></td>
7b2413f6 55 <td><a href='{$a.diminutif}/edit'>{$a.nom}</a></td>
0337d704 56 {if $i is odd || $smarty.foreach.all.last}</tr>{/if}
57 {/foreach}
58</table>
59
60{/if}
61
62{* vim:set et sw=2 sts=2 sws=2: *}