source: trunk/root/templates/includes/poll.tt @ 111

Last change on this file since 111 was 100, checked in by nanardon, 15 years ago
  • show choice in poll summary
  • Property svn:keywords set to Id
File size: 1.1 KB
Line 
1[% vote = c.model('Vote') %]
2[% thisvote = vote.vote_info(voteid) %]
3
4<div id="poll_summary" class="box" style="clear: both;">
5<div style="float: left; width: 70%;">
6<p id="poll_label">[% thisvote.label | html %]</p>
7<p>[% thisvote.description | html %]</p>
8[% IF thisvote.dstart && thisvote.dend %]
9<p>Scrutin ouvert du <b>[% thisvote.dstart _ ' ' _ thisvote.hstart | html %]</b> au
10<b>[% thisvote.dend _ ' ' _ thisvote.hend | html %]</b></p>
11[% END %]
12Ont voté: [% vote.vote_signing_count(voteid) %] / [% vote.vote_voting_count(voteid) %]<br>
13Bulletins: [% vote.vote_ballot_count(voteid) %]
14[% IF vote.vote_signing_count(voteid) != vote.vote_ballot_count(voteid) %]
15<p class="alert">Le nombre de bulletins et le nombre de personnes ayant voté divergent,
16suspicion de tricherie</p>
17[% END %]
18</div>
19[% FOREACH item = vote.vote_choices(voteid) %]
20[% IF loop.first %]
21<div style="float: right; width: 20%; top: 0px;" class="box">
22<p>Bulletin:</p>
23<ol style="padding-left:15px; margin:5px;">
24[% END %]
25<li>[% vote.choice_info(item).label | html %]</li>
26[% IF loop.last %]
27</ol>
28</div>
29[% END %]
30[% END %]
31<div style="clear: both;"></div>
32</div>
33
Note: See TracBrowser for help on using the repository browser.