Ignore:
Timestamp:
04/16/09 00:16:56 (15 years ago)
Author:
nanardon
Message:
  • kill some old function usage
File:
1 edited

Legend:

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

    r126 r206  
    11[% vote = c.model('Vote') %] 
    2 [% thisvote = vote.vote_info(voteid) %] 
     2[% poll = c.model('Vote').poll(voteid) %] 
    33 
    44<div id="poll_summary" class="box" style="clear: both;"> 
    55<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> au 
    10 <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> 
    1111[% 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) %] 
     12Ont voté: [% poll.signing_count %] / [% poll.voting_count %]<br> 
     13Bulletins: [% poll.ballot_count %] 
     14[% IF poll.signing_count != poll.ballot_count %] 
    1515<p class="alert">Le nombre de bulletins et le nombre de personnes ayant voté divergent, 
    1616suspicion de tricherie</p> 
    1717[% END %] 
    1818</div> 
    19 [% FOREACH item = vote.vote_choices(voteid) %] 
     19[% FOREACH item = poll.choices %] 
    2020[% IF loop.first %] 
    2121<div style="float: right; width: 20%; top: 0px;" class="box"> 
     
    2323<ol style="padding-left:15px; margin:5px;"> 
    2424[% END %] 
    25 <li>[% vote.choice_info(item).label | html %]</li> 
     25<li>[% poll.choice(item).info.label | html %]</li> 
    2626[% IF loop.last %] 
    2727</ol> 
Note: See TracChangeset for help on using the changeset viewer.