Changeset 38 for trunk/root
- Timestamp:
- 03/16/09 02:48:55 (15 years ago)
- Location:
- trunk/root
- Files:
-
- 1 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/root/static/vote.css
r37 r38 2 2 border: 0; 3 3 vertical-align: middle; 4 } 5 6 td { 7 padding: 4px; 4 8 } 5 9 … … 11 15 12 16 /* The ID used in epoll */ 17 18 #footer { 19 padding-top: 1em; 20 margin-top: 1em; 21 } 13 22 14 23 #poll_summary { … … 40 49 background-color: Silver; 41 50 } 51 52 #admin_login { 53 border-style: outset; 54 border-width: 5px; 55 margin-left: 30%; 56 margin-right: 30%; 57 margin-top: 20px; 58 margin-bottom: 20px; 59 padding: 10px; 60 } 61 62 #open_poll {} 63 64 #comming_poll {} 65 66 #closed_poll {} 67 68 #ballot_list {} 69 70 #results {} -
trunk/root/templates/admin/login.tt
r33 r38 1 [% vote = c.model('Vote') %] 2 <div id="admin_login"> 1 3 <form action="[% c.uri_for('/admin', voteid) %]"> 4 <p>Veuillez saisir le mot de passe du vote 5 <i>[% vote.vote_info(voteid).label | html %]</i></p> 2 6 <input type="password" name="vpassword"><br> 3 7 <input type="submit"> 4 8 <form> 9 </div> -
trunk/root/templates/ballot/done.tt
r37 r38 1 [% INCLUDE 'includes/poll.tt' %] 1 2 2 3 <div id="ballot"> 3 Vote réussi. 4 <p>Vous venez de voter, le numéro de votre bulletin est le <b>[% ballotid %]</b>.</p> 4 5 5 6 <p>Les résultats seront disponibles ici: -
trunk/root/templates/default.tt
r15 r38 2 2 [% vote = c.model('Vote') %] 3 3 4 <p>Vote en cours</p>5 4 6 5 [% FOREACH id = vote.list_running_vote %] 7 <p><a href="[% c.uri_for( 'vote', id ) %]">[% vote.vote_info(id).label | html %]</a> 8 <a href="[% c.uri_for( 'ballot', id ) %]">Voter</a></p> 6 [% IF loop.first %] 7 <div id="open_poll"> 8 <p>Vote en cours</p> 9 <ul> 10 [% END %] 11 <li><a href="[% c.uri_for( '/vote', id ) %]">[% vote.vote_info(id).label | html %]</a> 12 <a href="[% c.uri_for( '/ballot', id ) %]">> Voter</a></li> 13 [% IF loop.last %] 14 </ul> 15 </div> 16 [% END %] 9 17 [% END %] 10 18 19 [% FOREACH id = vote.list_comming_vote %] 20 [% IF loop.first %] 21 <div id="comming_poll"> 11 22 <p>Vote à venir</p> 12 13 [% FOREACH id = vote.list_comming_vote %] 14 <p><a href="[% c.uri_for( 'vote', id ) %]">[% vote.vote_info(id).label | html %]</a></p> 23 <ul> 24 [% END %] 25 <li><a href="[% c.uri_for( 'vote', id ) %]">[% vote.vote_info(id).label | html %]</a> 26 <a href="[% c.uri_for( '/admin', id ) %]">> Administrer</a></li> 27 [% IF loop.last %] 28 </ul> 29 </div> 30 [% END %] 15 31 [% END %] 16 32 17 <p>Vote Fermé</p>18 33 19 34 [% FOREACH id = vote.list_closed_vote %] 20 <p><a href="[% c.uri_for( 'vote', id ) %]">[% vote.vote_info(id).label | html %]</a></p> 35 [% IF loop.first %] 36 <div id="closed_poll"> 37 <p>Vote Fermé</p> 38 <ul> 21 39 [% END %] 40 <li><a href="[% c.uri_for( 'vote', id ) %]">[% vote.vote_info(id).label | html %]</a></li> 41 [% IF loop.last %] 42 </ul> 43 </div> 44 [% END %] 45 [% END %] -
trunk/root/templates/includes/poll.tt
r36 r38 1 1 [% vote = c.model('Vote') %] 2 2 [% thisvote = vote.vote_info(voteid) %] 3 [% signing = [vote.vote_signing(voteid)] %]4 3 5 4 <div id="poll_summary"> 6 5 <p id="poll_label">[% thisvote.label | html %]</p> 7 6 <p>[% thisvote.description | html %]</p> 8 9 Ont voté: [% vote.signing_count(voteid) %] / [% signing.size %]<br> 10 Bulletins: [% vote.ballot_count(voteid) %] 11 [% IF vote.signing_count(voteid) != vote.ballot_count(voteid) %] 7 Ont voté: [% vote.vote_signing_count(voteid) %] / [% vote.vote_voting_count(voteid) %]<br> 8 Bulletins: [% vote.vote_ballot_count(voteid) %] 9 [% IF vote.vote_signing_count(voteid) != vote.vote_ballot_count(voteid) %] 12 10 <p class="alert">Le nombre de bulletins et le nombre de personnes ayant voté divergent, 13 11 suspicion de tricherie</p> -
trunk/root/templates/includes/signing_list.tt
r36 r38 1 1 [% vote = c.model('Vote') %] 2 2 3 [% signing = [ vote.vote_signing(voteid) ]%]4 [% FOREACH voting = signing%]3 [% FOREACH id = vote.vote_voting(voteid) %] 4 [% voting = vote.voting_info(id) %] 5 5 [% IF loop.first %] 6 6 <div id="voting_list"> 7 Liste des votants: 7 <p>Liste des votants:</p> 8 8 <table border="1"> 9 9 <tr><th>Votant</th><th>Date du vote</th></tr> -
trunk/root/templates/vote/default.tt
r36 r38 9 9 <p>Avant</p> 10 10 [% CASE 'AFTER' %] 11 <p>Resultats:</p> 12 Nombre de vote(s) exprimé(s): [% vote.ballot_count_nonull(voteid) %] 13 [% IF vote.ballot_count(voteid) %] 14 ([% vote.ballot_count_nonull(voteid) * 100 / vote.ballot_count(voteid) %]%) 15 [% END %] 16 <br> 17 18 <table border="1"> 19 <tr><th>choix</th><th>Nb voix</th><th>%</th><th></th></tr> 20 [% FOREACH res = vote.vote_results_nonull(voteid) %] 21 <tr> 22 <td>[% res.value | html %]</td> 23 <td>[% res.count %]</td> 24 <td>[% res.count * 100 / vote.ballot_count_nonull(voteid) %]</td> 25 <td><img src="[% c.uri_for('/static', 'images', 'green-h.png') %]" 26 height="10px" width="[% res.count * 300 / vote.ballot_count_nonull(voteid) %]px"></td> 27 </tr> 28 [% END %] 29 </table> 30 31 Liste des bulletins: 32 <table border="1"> 33 <tr><th>numéro</th><th>Id</th><th>contenu</th></tr> 34 [% FOREACH id = vote.list_vote_ballot(voteid) %] 35 <tr> 36 <td>[% loop.count %]</td> 37 <td>[% id | html %]</td> 38 <td> 39 [% FOREACH item = [ vote.ballot_items(id) ] %] 40 [% item.v %]<br> 41 [% END %] 42 </td> 43 </tr> 44 [% END %] 45 </table> 11 [% INCLUDE 'includes/poll_results.tt' %] 46 12 [% END %] 47 13
Note: See TracChangeset
for help on using the changeset viewer.