Update changelog
[platal.git] / templates / admin / evenements.tpl
1 {**************************************************************************}
2 {*                                                                        *}
3 {*  Copyright (C) 2003-2006 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
24
25 <h1>
26   Gestion des événements :
27   [&nbsp;
28   {if $arch || $action eq 'edit'}
29   <a href="admin/events">Actualités</a>
30   {else}
31   Actualités
32   {/if}
33   &nbsp;|&nbsp;
34   {if !$arch || $action eq 'edit'}
35   <a href="admin/events/archives">Archives</a>
36   {else}
37   Archives
38   {/if}
39   &nbsp;]
40 </h1>
41
42 {if $action eq 'edit'}
43
44 {include file="include/form.evenement.tpl"}
45
46 {else}
47
48 <table class="bicol">
49   <tr>
50     <th>Titre</th>
51     <th>Péremption</th>
52     <th></th>
53   </tr>
54   {iterate from=$evs item=ev}
55   <tr class="{cycle values="impair,pair"}">
56     <td>
57       <a id="{$ev.id}"></a>
58       {if !$ev.fvalide}<strong>{/if}
59       <a href="admin/events/preview/{$ev.id}#{$ev.id}">{$ev.titre}</a><br />
60       {if !$ev.fvalide}</strong>{/if}
61       <small>
62         Proposée par <a href="profile/{$ev.forlife}" class='popup2'>{$ev.prenom} {$ev.nom} (X{$ev.promo})</a>
63       </small>
64     </td>
65     <td class="right">{if !$ev.fvalide}<strong>{/if}{$ev.peremption}{if !$ev.fvalide}</strong>{/if}</td>
66     <td class="right" style="width: 42px">
67       {if $arch}
68         <a href="admin/events/unarchive/{$ev.id}">{icon name=package_delete title="Désarchiver"}</a><br />
69       {else}
70         {if $ev.fvalide}
71         <a href="admin/events/unvalid/{$ev.id}">{icon name=thumb_down title="Invalider"}</a>
72         <a href="admin/events/archive/{$ev.id}">{icon name=package_add title="Archiver"}</a><br />
73         {else}
74         <a href="admin/events/valid/{$ev.id}">{icon name=thumb_up title="Valider"}</a><br />
75         {/if}
76       {/if}
77       <a href="admin/events/edit/{$ev.id}">{icon name=page_edit title="Editer"}</a>
78       <a href="admin/events/delete/{$ev.id}">{icon name=delete title="Supprimer"}</a>
79     </td>
80   </tr>
81   {if $ev.preview}
82   <tr class="{cycle value="impair,pair"}">
83     <td colspan="3">
84       {$ev.texte|hde|nl2br}
85     </td>
86   </tr>
87   {/if}
88   {/iterate}
89 </table>
90
91 {/if}
92
93
94 {* vim:set et sw=2 sts=2 sws=2: *}