Add mailing list headers to newsletters
[platal.git] / templates / survey / admin.tpl
1 {**************************************************************************}
2 {*                                                                        *}
3 {*  Copyright (C) 2003-2013 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 <h1>Sondages</h1>
24
25 <table class="bicol">
26   <tr>
27     <th>
28       Sondages en cours
29     </th>
30   </tr>
31   {iterate item=s from=$survey_current}
32   <tr class="{cycle name=cs_cycle values="impair,pair"}">
33     <td class="half">
34       &bull;
35       <a href="survey/admin/{$s.id}">
36         {$s.title} [{$s.end|date_format:"%x"} - {$survey_modes[$s.mode]}]
37       </a>
38     </td>
39   </tr>
40   {assign var="has_cs" value="true"}
41   {/iterate}
42   {if !$has_cs}
43   <tr>
44     <td class="half">Aucun sondage en cours</td>
45   </tr>
46   {/if}
47 </table>
48
49 <br />
50
51 <table class="bicol">
52   <tr>
53     <th>
54       Anciens sondages
55     </th>
56   </tr>
57   {iterate item=s from=$survey_old}
58   <tr class="{cycle name=os_cycle values="impair,pair"}">
59     <td class="half">
60       &bull;
61       <a href="survey/admin/{$s.id}">
62         {$s.title} [{$s.end|date_format:"%x"} - {$survey_modes[$s.mode]}]
63       </a>
64     </td>
65   </tr>
66   {assign var="has_os" value="true"}
67   {/iterate}
68   {if !$has_os}
69   <tr>
70     <td class="half">Aucun ancien sondage</td>
71   </tr>
72   {/if}
73 </table>
74
75 {* vim:set et sw=2 sts=2 ts=8 enc=utf-8: *}