Changes in trunk/root/templates/vote/default.tt [15:21]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/root/templates/vote/default.tt
r15 r21 11 11 <p>Resultats:</p> 12 12 Nombre de bulletin exprimés: [% vote.ballot_count_nonull(voteid) %] 13 [% IF vote.ballot_count(voteid) %] 13 14 ([% vote.ballot_count_nonull(voteid) * 100 / vote.ballot_count(voteid) %]%) 15 [% END %] 14 16 <br> 15 17 … … 20 22 <td>[% res.value | html %]</td> 21 23 <td>[% res.count %]</td> 22 <td>[% res.count * 100 / vote.ballot_count (voteid) %]</td>24 <td>[% res.count * 100 / vote.ballot_count_nonull(voteid) %]</td> 23 25 <td><img src="[% c.uri_for('/static', 'images', 'green-h.png') %]" 24 height="10px" width="[% res.count * 300 / vote.ballot_count(voteid) %]px"></td> 26 height="10px" width="[% res.count * 300 / vote.ballot_count_nonull(voteid) %]px"></td> 27 </tr> 28 [% END %] 29 </table> 30 31 Liste des bulletins: 32 <table border="1"> 33 <tr><th>numéro</th><th>Id</th><th>contenu</th></tr> 34 [% FOREACH id = vote.list_vote_ballot(voteid) %] 35 <tr> 36 <td>[% loop.count %]</td> 37 <td>[% id | html %]</td> 38 <td> 39 [% FOREACH item = [ vote.ballot_items(id) ] %] 40 [% item.v %]<br> 41 [% END %] 42 </td> 25 43 </tr> 26 44 [% END %]
Note: See TracChangeset
for help on using the changeset viewer.