Changeset 206 for trunk/root/templates/includes
- Timestamp:
- 04/16/09 00:16:56 (15 years ago)
- Location:
- trunk/root/templates/includes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/root/templates/includes/header.tt
r109 r206 19 19 [% IF voteid %] 20 20 :: <a href="[% c.uri_for('/vote', voteid) %]"> 21 Votre vote: [% c.model('Vote'). vote_info(voteid).label| truncate(40) | html %]21 Votre vote: [% c.model('Vote').poll(voteid).info('label') | truncate(40) | html %] 22 22 </a> 23 23 [% END %] -
trunk/root/templates/includes/poll.tt
r126 r206 1 1 [% vote = c.model('Vote') %] 2 [% thisvote = vote.vote_info(voteid) %]2 [% poll = c.model('Vote').poll(voteid) %] 3 3 4 4 <div id="poll_summary" class="box" style="clear: both;"> 5 5 <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> au10 <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> 11 11 [% 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)%]12 Ont voté: [% poll.signing_count %] / [% poll.voting_count %]<br> 13 Bulletins: [% poll.ballot_count %] 14 [% IF poll.signing_count != poll.ballot_count %] 15 15 <p class="alert">Le nombre de bulletins et le nombre de personnes ayant voté divergent, 16 16 suspicion de tricherie</p> 17 17 [% END %] 18 18 </div> 19 [% FOREACH item = vote.vote_choices(voteid)%]19 [% FOREACH item = poll.choices %] 20 20 [% IF loop.first %] 21 21 <div style="float: right; width: 20%; top: 0px;" class="box"> … … 23 23 <ol style="padding-left:15px; margin:5px;"> 24 24 [% END %] 25 <li>[% vote.choice_info(item).label | html %]</li>25 <li>[% poll.choice(item).info.label | html %]</li> 26 26 [% IF loop.last %] 27 27 </ol> -
trunk/root/templates/includes/poll_results.tt
r193 r206 14 14 <p>Resultats:</p> 15 15 [% END %] 16 <p>Nombre de choix à retenir: [% vote.vote_info(voteid).choice_count%]</p>16 <p>Nombre de choix à retenir: [% poll.info('choice_count') %]</p> 17 17 <p>Participations: [% vote.vote_signing_count(voteid) %] / [% vote.vote_voting_count(voteid) %] 18 18 [% IF vote.vote_voting_count(voteid) %] … … 42 42 [% # If equality, we keep same color, even we are over resullts %] 43 43 [% mycount = loop.count %] 44 [% IF loop.count <= vote.vote_info(voteid).choice_count%]44 [% IF loop.count <= poll.info('choice_count') %] 45 45 [% IF res.count >= vote.absolute_majority %] 46 46 [% class = 'majabs' %] … … 78 78 <tr><th>numéro</th><th>Id</th> 79 79 <th>contenu (=> corrigé en) 80 [% IF vote.vote_info(voteid).free_choice%]80 [% IF poll.info('free_choice') %] 81 81 <br>(*: hors liste) 82 82 [% END %]
Note: See TracChangeset
for help on using the changeset viewer.