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

Last change on this file since 459 was 324, checked in by nanardon, 14 years ago
  • avoid i18n bug
  • Property svn:keywords set to Id Rev
File size: 1.5 KB
Line 
1<!-- $Id$ -->
2[% poll = c.model('Vote').results(voteid) %]
3
4<div id="poll_summary" class="box" style="clear: both;">
5<div style="float: left; width: 70%;">
6<p id="poll_label">[% poll.info('label') | html %]</p>
7[% IF poll.info('description') %]
8<p>[% poll.info('description') | html | html_line_break %]</p>
9[% END %]
10[% IF poll.info('procedure') %]
11<p>[% poll.info('procedure') | html | html_line_break %]</p>
12[% END %]
13<p>[% l('[_1] choice have to be done', poll.info('choice_count')) %]
14[%- IF poll.info('choice_count') != poll.info('elected_count') -%]
15[% l('for [_1] elected', poll.info('elected_count')) %][%- END -%].</p>
16[% IF poll.info('dstart') && poll.info('dend') %]
17<p>[% l('Poll open from') %]
18    <b>[% poll.info('dstart') _ ' ' _ poll.info('hstart') %]</b>
19[% l('to') %] <b>[% poll.info('dend') _ ' ' _ poll.info('hend') %]</b>.</p>
20[% END %]
21[% l('Participated') _ ' ' %] [% poll.signing_count %] / [% poll.voting_count %]<br>
22[% l('Ballots:') _ ' ' %] [% poll.ballot_count %]
23[% IF poll.signing_count != poll.ballot_count %]
24<p class="alert">
25[% l('The number of ballots doesn\'t match the number of voters') %]
26</p>
27[% END %]
28</div>
29[% FOREACH item = poll.choices %]
30[% IF loop.first %]
31<div style="float: right; width: 20%; top: 0px;" class="box">
32<p>[% l('Ballots:') %]</p>
33<ol style="padding-left:15px; margin:5px;">
34[% END %]
35<li>[% poll.choice(item).info.label | html %]</li>
36[% IF loop.last %]
37</ol>
38</div>
39[% END %]
40[% END %]
41<div style="clear: both;"></div>
42</div>
43
Note: See TracBrowser for help on using the repository browser.