Changeset 206 for trunk/root/templates/includes/poll.tt
- Timestamp:
- 04/16/09 00:16:56 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/root/templates/includes/poll.tt
r126 r206 1 1 [% vote = c.model('Vote') %] 2 [% thisvote = vote.vote_info(voteid) %]2 [% poll = c.model('Vote').poll(voteid) %] 3 3 4 4 <div id="poll_summary" class="box" style="clear: both;"> 5 5 <div style="float: left; width: 70%;"> 6 <p id="poll_label">[% thisvote.label| html %]</p>7 <p>[% thisvote.description| html | html_line_break %]</p>8 [% IF thisvote.dstart && thisvote.dend%]9 <p>Scrutin ouvert du <b>[% thisvote.dstart _ ' ' _ thisvote.hstart| html %]</b> au10 <b>[% thisvote.dend _ ' ' _ thisvote.hend| html %]</b></p>6 <p id="poll_label">[% poll.info('label') | html %]</p> 7 <p>[% poll.info('description') | html | html_line_break %]</p> 8 [% IF poll.info('dstart') && poll.info('dend') %] 9 <p>Scrutin ouvert du <b>[% poll.info('dstart') _ ' ' _ poll.info('hstart') | html %]</b> au 10 <b>[% poll.info('dend') _ ' ' _ poll.info('hend') | html %]</b></p> 11 11 [% END %] 12 Ont voté: [% vote.vote_signing_count(voteid) %] / [% vote.vote_voting_count(voteid)%]<br>13 Bulletins: [% vote.vote_ballot_count(voteid)%]14 [% IF vote.vote_signing_count(voteid) != vote.vote_ballot_count(voteid)%]12 Ont voté: [% poll.signing_count %] / [% poll.voting_count %]<br> 13 Bulletins: [% poll.ballot_count %] 14 [% IF poll.signing_count != poll.ballot_count %] 15 15 <p class="alert">Le nombre de bulletins et le nombre de personnes ayant voté divergent, 16 16 suspicion de tricherie</p> 17 17 [% END %] 18 18 </div> 19 [% FOREACH item = vote.vote_choices(voteid)%]19 [% FOREACH item = poll.choices %] 20 20 [% IF loop.first %] 21 21 <div style="float: right; width: 20%; top: 0px;" class="box"> … … 23 23 <ol style="padding-left:15px; margin:5px;"> 24 24 [% END %] 25 <li>[% vote.choice_info(item).label | html %]</li>25 <li>[% poll.choice(item).info.label | html %]</li> 26 26 [% IF loop.last %] 27 27 </ol>
Note: See TracChangeset
for help on using the changeset viewer.