Changeset 162 for trunk/root


Ignore:
Timestamp:
04/06/09 00:22:17 (15 years ago)
Author:
nanardon
Message:
  • get back voting list during vote, but hide who has already voted
Location:
trunk/root/templates
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/root/templates/includes/signing_list.tt

    r111 r162  
    11[% USE Mail %] 
    22 
    3 [% vote = c.model('Vote') %] 
     3[% poll = c.model('Vote').poll(voteid) %] 
     4[% poll_status = poll.status %] 
    45 
    5 [% FOREACH id = vote.vote_voting(voteid) %] 
    6 [% voting = vote.voting_info(id) %] 
     6[% FOREACH id = poll.voting_keys() %] 
     7[% voting = poll.voting(id).info %] 
    78[% IF loop.first %] 
    89<div id="voting_list" class="box"> 
    910<p>Liste des votants:</p> 
    1011<table border="1"> 
    11 <tr><th>Numéro</th><th>Electeur</th><th>Emargement</th></tr> 
     12<tr><th>Numéro</th><th>Electeur</th> 
     13[% IF poll_status != 'RUNNING' %]<th>Emargement</th>[% END %] 
     14</tr> 
    1215[% END %] 
    1316<tr> 
     
    1720    [% "&lt;" IF voting.label %][% voting.mail | mail | html %][% "&gt;" IF voting.label %] 
    1821</td> 
    19 <td>[% "A voté" IF voting.date %]</td> 
     22[% IF poll_status != 'RUNNING' %]<td>[% "A voté" IF voting.date %]</td>[% END %] 
    2023</tr> 
    2124[% IF loop.last %] 
  • trunk/root/templates/vote/default.tt

    r112 r162  
    22 
    33[% vote = c.model('Vote') %] 
     4[% poll = c.model('Vote').poll(voteid) %] 
    45 
    56[% INCLUDE 'includes/poll.tt' %] 
    67 
    7 [% SWITCH vote.vote_status(voteid) %] 
     8[% SWITCH poll.status() %] 
     9 
    810[% CASE 'RUNNING' %] 
    911[% INCLUDE 'includes/poll_running.tt' %] 
     12[% INCLUDE 'includes/signing_list.tt' %] 
     13 
    1014[% CASE 'BEFORE' %] 
    1115<div class="page_box"> 
     
    1317</div> 
    1418[% INCLUDE 'includes/signing_list.tt' %] 
     19 
    1520[% CASE 'AFTER' %] 
    1621[% INCLUDE 'includes/poll_results.tt' %] 
    1722[% INCLUDE 'includes/signing_list.tt' %] 
     23 
    1824[% END %] 
    1925 
    20  
Note: See TracChangeset for help on using the changeset viewer.