Happy New Year !
[platal.git] / templates / events / admin.tpl
CommitLineData
0337d704 1{**************************************************************************}
2{* *}
ba6ae046 3{* Copyright (C) 2003-2013 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
24
25<h1>
e8439508 26 Gestion des événements&nbsp;:
506a46ed 27 [&nbsp;
28 {if $arch || $action eq 'edit'}
a7de4ef7 29 <a href="admin/events">Actualités</a>
0337d704 30 {else}
a7de4ef7 31 Actualités
0337d704 32 {/if}
506a46ed 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;]
0337d704 40</h1>
41
506a46ed 42{if $action eq 'edit'}
0337d704 43
db3bd146 44{include file="events/form.tpl"}
0337d704 45
46{else}
47
0337d704 48<table class="bicol">
49 <tr>
506a46ed 50 <th>Titre</th>
a7de4ef7 51 <th>Péremption</th>
506a46ed 52 <th></th>
0337d704 53 </tr>
506a46ed 54 {iterate from=$evs item=ev}
8b157e5f 55 {cycle values="impair,pair" assign=class}
56 <tr class="{$class}">
3e788ada 57 <td>
9f94a7d4 58 <a id="event{$ev.id}"></a>
3e788ada 59 {if !$ev.fvalide}<strong>{/if}
9f94a7d4 60 <a href="admin/events/preview/{$ev.id}#event{$ev.id}">{$ev.titre}</a><br />
506a46ed 61 {if !$ev.fvalide}</strong>{/if}
62 <small>
f280f651 63 Proposée par {profile user=$ev.uid promo=true sex=false}
506a46ed 64 </small>
0337d704 65 </td>
b58e5ac2 66 <td class="right">{if !$ev.fvalide}<strong>{/if}{$ev.expiration}{if !$ev.fvalide}</strong>{/if}</td>
506a46ed 67 <td class="right" style="width: 42px">
68 {if $arch}
7b642046 69 <a href="admin/events/unarchive/{$ev.id}?token={xsrf_token}">{icon name=package_delete title="Désarchiver"}</a><br />
506a46ed 70 {else}
71 {if $ev.fvalide}
7b642046
VZ
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 />
506a46ed 74 {else}
7b642046 75 <a href="admin/events/valid/{$ev.id}?token={xsrf_token}">{icon name=thumb_up title="Valider"}</a><br />
506a46ed 76 {/if}
77 {/if}
78 <a href="admin/events/edit/{$ev.id}">{icon name=page_edit title="Editer"}</a>
7b642046 79 <a href="admin/events/delete/{$ev.id}?token={xsrf_token}">{icon name=delete title="Supprimer"}</a>
0337d704 80 </td>
81 </tr>
506a46ed 82 {if $ev.preview}
8b157e5f 83 <tr class="{$class}">
84 <td colspan="3" style="border-top: 1px dotted #777">
09e37980 85 {$ev.texte|smarty:nodefaults|nl2br}
0337d704 86 </td>
87 </tr>
506a46ed 88 {/if}
89 {/iterate}
0337d704 90</table>
91
0337d704 92{/if}
93
94
a7de4ef7 95{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}