Ignore:
Timestamp:
04/18/09 04:57:22 (15 years ago)
Author:
nanardon
Message:
  • make difference between settings and their raw value
  • simplify template
  • allow to have a different number of elected people than choice in ballot
File:
1 edited

Legend:

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

    r214 r217  
    88\section{Description du vote} 
    99 
    10 [%- poll.info.description -%] 
     10[%- poll.info('description') -%] 
    1111 
    1212 
    13 [% poll.info.choice_count %] choix étaient à retenir. 
     13[% poll.info('choice_count') %] choix étaient à retenir. 
    1414 
    1515Etait candidats: 
     
    4949[%- IF poll.ballot_count_nonull -%] 
    5050[%- FOREACH res = poll.results -%] 
    51 [%- IF res.count != loop.prev.count && loop.count > 0 -%] 
    52 [%- mycount = loop.count -%] 
    53 [%- END -%] 
    5451 
    55 [%- IF loop.count <= poll.info.choice_count -%] 
    56 [%- IF res.count >= poll.absolute_majority -%] 
    57 [%- comment = 'majorité absolue' -%] 
     52[% IF res.elected %] 
     53[% IF res.abs_maj %] 
     54[%- comment = 'Elu, majorité absolue' -%] 
    5855[%- ELSE -%] 
    5956[%- comment = 'Elu' -%] 
     
    7067\hline 
    7168[% END %] 
    72 [% mycount %]& [% res.value %]& [% res.count %]& [% res.count * 100 / poll.ballot_count_nonull | format('%.2f') %]& [% comment %]\\ 
     69[% res.order %]& [% res.value %]& [% res.count %]& [% res.count * 100 / poll.ballot_count_nonull | format('%.2f') %]& [% comment %]\\ 
    7370\hline 
    7471 
Note: See TracChangeset for help on using the changeset viewer.