source: trunk/root/templates/default.tt @ 55

Last change on this file since 55 was 51, checked in by delcambre, 15 years ago
  • Align list of poll
  • Property svn:keywords set to Id
File size: 1.0 KB
Line 
1
2[% vote = c.model('Vote') %]
3
4
5[% FOREACH id = vote.list_running_vote %]
6[% IF loop.first %]
7<div id="open_poll">
8<p>Vote en cours</p>
9<table>
10<tbody>
11[% END %]
12<tr>
13<td><a href="[% c.uri_for( '/vote', id ) %]">[% vote.vote_info(id).label | html %]</a></td>
14<td><a href="[% c.uri_for( '/ballot', id ) %]">&gt; Voter</a></td>
15</tr>
16[% IF loop.last %]
17</tbody>
18</table>
19</div>
20[% END %]
21[% END %]
22
23[% FOREACH id = vote.list_comming_vote %]
24[% IF loop.first %]
25<div id="comming_poll">
26<p>Vote à venir</p>
27<table>
28<tbody>
29[% END %]
30<tr>
31<td><a href="[% c.uri_for( 'vote', id ) %]">[% vote.vote_info(id).label | html %]</a></td>
32<td><a href="[% c.uri_for( '/admin', id ) %]">&gt; Administrer</a></td>
33</tr>
34[% IF loop.last %]
35</tbody>
36</table>
37</div>
38[% END %]
39[% END %]
40
41
42[% FOREACH id = vote.list_closed_vote %]
43[% IF loop.first %]
44<div id="closed_poll">
45<p>Vote Fermé</p>
46<table>
47<tbody>
48[% END %]
49<tr>
50<td><a href="[% c.uri_for( 'vote', id ) %]">[% vote.vote_info(id).label | html %]</a></td>
51</tr>
52[% IF loop.last %]
53</tbody>
54</table>
55</div>
56[% END %]
57[% END %]
Note: See TracBrowser for help on using the repository browser.