Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/root/templates/vote/default.tt

    r15 r21  
    1111<p>Resultats:</p> 
    1212Nombre de bulletin exprimés: [% vote.ballot_count_nonull(voteid) %] 
     13[% IF vote.ballot_count(voteid) %] 
    1314([% vote.ballot_count_nonull(voteid) * 100 / vote.ballot_count(voteid) %]%) 
     15[% END %] 
    1416<br> 
    1517 
     
    2022<td>[% res.value | html %]</td> 
    2123<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> 
    2325<td><img src="[% c.uri_for('/static', 'images', 'green-h.png') %]"  
    24 height="10px" width="[% res.count * 300 / vote.ballot_count(voteid) %]px"></td> 
     26height="10px" width="[% res.count * 300 / vote.ballot_count_nonull(voteid) %]px"></td> 
     27</tr> 
     28[% END %] 
     29</table> 
     30 
     31Liste 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> 
    2543</tr> 
    2644[% END %] 
Note: See TracChangeset for help on using the changeset viewer.