Changeset 15 for trunk/root/templates/vote
- Timestamp:
- 03/07/09 16:30:29 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/root/templates/vote/default.tt
r12 r15 1 1 [% vote = c.model('Vote') %] 2 2 3 [% thisvote = vote.vote_info(voteid) %] 4 [% thisvote.label | html %]<br> 3 [% INCLUDE 'includes/poll.tt' %] 4 5 [% SWITCH vote.vote_status(voteid) %] 6 [% CASE 'RUNNING' %] 7 <p>en cours</p> 8 [% CASE 'BEFORE' %] 9 <p>Avant</p> 10 [% CASE 'AFTER' %] 11 <p>Resultats:</p> 12 Nombre de bulletin exprimés: [% vote.ballot_count_nonull(voteid) %] 13 ([% vote.ballot_count_nonull(voteid) * 100 / vote.ballot_count(voteid) %]%) 14 <br> 15 16 <table border="1"> 17 <tr><th>choix</th><th>Nb voix</th><th>%</th><th></th></tr> 18 [% FOREACH res = vote.vote_results_nonull(voteid) %] 19 <tr> 20 <td>[% res.value | html %]</td> 21 <td>[% res.count %]</td> 22 <td>[% res.count * 100 / vote.ballot_count(voteid) %]</td> 23 <td><img src="[% c.uri_for('/static', 'images', 'green-h.png') %]" 24 height="10px" width="[% res.count * 300 / vote.ballot_count(voteid) %]px"></td> 25 </tr> 26 [% END %] 27 </table> 28 [% END %] 29 5 30 [% signing = [ vote.vote_signing(voteid) ] %] 6 Ont voté: [% vote.signing_count(voteid) %] / [% signing.size %]<br>7 Bulletins: [% vote.ballot_count(voteid) %]<br>8 9 31 [% FOREACH voting = signing %] 10 32 [% voting.id | html %] [% voting.date %]<br>
Note: See TracChangeset
for help on using the changeset viewer.