Changeset 193 for trunk/root


Ignore:
Timestamp:
04/14/09 18:19:40 (15 years ago)
Author:
nanardon
Message:
  • add new objects for poll results
Location:
trunk/root
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/root/latex/poll_report.tt

    r188 r193  
    11[% USE Mail %] 
    2 [%- poll = c.model('Vote').poll(voteid) %] 
     2[%- poll = c.model('Vote').results(voteid) %] 
    33 
    44\maketitle 
     
    5454 
    5555[%- IF loop.count <= poll.info.choice_count -%] 
    56 [%- IF res.count >= poll.ballot_count_nonull / 2 + 1 -%] 
     56[%- IF res.count >= poll.absolute_majority -%] 
    5757[%- comment = 'majorité absolue' -%] 
    5858[%- ELSE -%] 
  • trunk/root/templates/includes/poll_results.tt

    r183 r193  
    4343[% mycount = loop.count %] 
    4444[% IF loop.count <= vote.vote_info(voteid).choice_count %] 
    45 [% IF res.count >= vote.ballot_count_nonull(voteid) / 2 + 1 %] 
     45[% IF res.count >= vote.absolute_majority %] 
    4646[% class = 'majabs' %] 
    4747[% ELSE %] 
Note: See TracChangeset for help on using the changeset viewer.