Changeset 79
- Timestamp:
- 03/19/09 03:12:46 (15 years ago)
- Location:
- trunk/root
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/root/static/vote.css
r68 r79 5 5 6 6 td { 7 padding: 4px; 8 } 9 10 tr { 11 vertical-align: top; 7 12 padding: 4px; 8 13 } … … 20 25 color:#3344FF; 21 26 font-weight:bold; 27 } 28 29 ul { 30 margin: 0px; 22 31 } 23 32 … … 51 60 padding: 5px; 52 61 /* background-color: red; */ 62 } 63 64 div.box { 65 border-style: outset; 66 border-width: 5px; 67 padding: 1em; 68 } 69 70 .majabs { 71 background-color: #FF9933; 72 } 73 74 .selected { 75 background-color: #FF9999; 76 } 77 78 .notselected { 53 79 } 54 80 -
trunk/root/templates/includes/poll.tt
r71 r79 2 2 [% thisvote = vote.vote_info(voteid) %] 3 3 4 <div id="poll_summary" >4 <div id="poll_summary" class="box"> 5 5 <p id="poll_label">[% thisvote.label | html %]</p> 6 6 <p>[% thisvote.description | html %]</p> -
trunk/root/templates/includes/poll_results.tt
r70 r79 1 1 [% vote = c.model('Vote') %] 2 2 3 <div id="results"> 3 <div id="results" class="box"> 4 [% IF vote.list_vote_ballot_needvalid(voteid).size %] 5 <p>Resultats provisoires:</p> 6 <p class="alert">Le gestionnaire doit vérifier la validité de certains bulletins</p> 7 [% ELSE %] 4 8 <p>Resultats:</p> 9 [% END %] 10 <p>Nombre de choix à retenir: [% vote.vote_info(voteid).choice_count %]</p> 5 11 <p>Participations: [% vote.vote_signing_count(voteid) %] / [% vote.vote_voting_count(voteid) %] 6 12 [% IF vote.vote_voting_count(voteid) %] … … 16 22 [% FOREACH res = vote.vote_results_nonull(voteid) %] 17 23 [% IF loop.first %] 24 <p>Score:</p> 25 <table border="1"><tr> 26 <th>Légende:</th> 27 <td class="majabs">Majorité Absolue</td> 28 <td class="selected">Elus</td> 29 <td class="notselected">Non élu</td> 30 </tr></table><br> 18 31 <table border="1"> 19 <tr><th> choix</th><th>Nb voix</th><th>%</th><th></th></tr>32 <tr><th>Score</th><th>choix</th><th>Nb voix</th><th>%</th><th></th></tr> 20 33 [% END %] 34 35 [% IF res.count != loop.prev.count && loop.count > 0 %] 36 [% # If equality, we keep same color, even we are over resullts %] 37 [% mycount = loop.count %] 21 38 [% IF loop.count <= vote.vote_info(voteid).choice_count %] 22 [% IF res.count * 100 / vote.ballot_count_nonull(voteid) > 50%]23 [% c olor = ' bgcolor="#FF9933"' %]39 [% IF res.count > vote.ballot_count_nonull(voteid) / 2 + 1 %] 40 [% class = 'majabs' %] 24 41 [% ELSE %] 25 [% c olor = ' bgcolor="#FF9999"' %]42 [% class = 'selected' %] 26 43 [% END %] 27 44 [% ELSE %] 28 [% c olor = '' %]45 [% class = 'notselected' %] 29 46 [% END %] 30 <tr> 31 <td[% color %]>[% res.value | html %]</td> 32 <td[% color %]>[% res.count %]</td> 33 <td[% color %]>[% res.count * 100 / vote.ballot_count_nonull(voteid) | format('%.2f') %]</td> 34 <td[% color %]><img src="[% c.uri_for('/static', 'images', 'green-v.png') %]" 47 [% END %] 48 <tr class="[% class %]"> 49 <td>[% mycount %]</td> 50 <td>[% res.value | html %]</td> 51 <td>[% res.count %]</td> 52 <td>[% res.count * 100 / vote.ballot_count_nonull(voteid) | format('%.2f') %]</td> 53 <td><img src="[% c.uri_for('/static', 'images', 'green-v.png') %]" 35 54 height="10px" width="[% res.count * 400 / vote.ballot_count_nonull(voteid) | format('%d') %]px"></td> 36 55 </tr> 56 37 57 [% IF loop.last %] 38 58 </table> … … 46 66 [% FOREACH id = vote.list_vote_ballot(voteid) %] 47 67 [% IF loop.first %] 48 <div id="ballot_list" >68 <div id="ballot_list" class="box"> 49 69 <p>Liste des bulletins:</p> 50 70 <table border="1"> -
trunk/root/templates/includes/signing_list.tt
r47 r79 4 4 [% voting = vote.voting_info(id) %] 5 5 [% IF loop.first %] 6 <div id="voting_list" >6 <div id="voting_list" class="box"> 7 7 <p>Liste des votants:</p> 8 8 <table border="1"> 9 <tr><th> Votant</th><th>Date du vote</th></tr>9 <tr><th>Numéro</th><th>Votant</th><th>Date du vote</th></tr> 10 10 [% END %] 11 11 <tr> 12 <td>[% loop.count %]</td> 12 13 <td>[% voting.label | html %] [% voting.mail | html %]</td> 13 14 <td>[% voting.date %]</td>
Note: See TracChangeset
for help on using the changeset viewer.