1 {**************************************************************************}
3 {* Copyright (C) 2003-2010 Polytechnique.org *}
4 {* http://opensource.polytechnique.org/ *}
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. *}
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. *}
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 *}
21 {**************************************************************************}
26 Gestion des événements :
28 {if $arch || $action eq 'edit'}
29 <a href="admin/events">Actualités</a>
34 {if !$arch || $action eq 'edit'}
35 <a href="admin/events/archives">Archives</a>
42 {if $action eq 'edit'}
44 {include file="events/form.tpl"}
54 {iterate from=$evs item=ev}
55 {cycle values="impair,pair" assign=class}
58 <a id="event{$ev.id}"></a>
59 {if !$ev.fvalide}<strong>{/if}
60 <a href="admin/events/preview/{$ev.id}#event{$ev.id}">{$ev.titre}</a><br />
61 {if !$ev.fvalide}</strong>{/if}
63 Proposée par {profile user=$ev.user_id promo=true sex=false}
66 <td class="right">{if !$ev.fvalide}<strong>{/if}{$ev.peremption}{if !$ev.fvalide}</strong>{/if}</td>
67 <td class="right" style="width: 42px">
69 <a href="admin/events/unarchive/{$ev.id}?token={xsrf_token}">{icon name=package_delete title="Désarchiver"}</a><br />
72 <a href="admin/events/unvalid/{$ev.id}?token={xsrf_token}">{icon name=thumb_down title="Invalider"}</a>
73 <a href="admin/events/archive/{$ev.id}?token={xsrf_token}">{icon name=package_add title="Archiver"}</a><br />
75 <a href="admin/events/valid/{$ev.id}?token={xsrf_token}">{icon name=thumb_up title="Valider"}</a><br />
78 <a href="admin/events/edit/{$ev.id}">{icon name=page_edit title="Editer"}</a>
79 <a href="admin/events/delete/{$ev.id}?token={xsrf_token}">{icon name=delete title="Supprimer"}</a>
84 <td colspan="3" style="border-top: 1px dotted #777">
85 {$ev.texte|smarty:nodefaults|nl2br}
95 {* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}