Changeset 284 for trunk/root/templates
- Timestamp:
- 12/19/09 15:19:12 (14 years ago)
- Location:
- trunk/root/templates/includes
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/root/templates/includes/admin_menu.tt
r269 r284 5 5 <a href="[% c.uri_for('/admin', poll.uid) %]">[% poll.info.label | html %]</a> 6 6 [% IF poll.status == 'BEFORE' %] 7 :: <a href="[% c.uri_for('/admin', poll.uid, 'ballot') %]"> Bulletins</a>7 :: <a href="[% c.uri_for('/admin', poll.uid, 'ballot') %]">[% l('Ballot') %]</a> 8 8 [% END %] 9 :: <a href="[% c.uri_for('/admin', poll.uid, 'voting') %]"> Electeurs</a>9 :: <a href="[% c.uri_for('/admin', poll.uid, 'voting') %]">[% l('Voting') %]</a> 10 10 [% IF poll.status == 'BEFORE' %] 11 :: <a href="[% c.uri_for('/admin', poll.uid, 'date') %]"> Dates</a>11 :: <a href="[% c.uri_for('/admin', poll.uid, 'date') %]">[% l('Dates') %]</a> 12 12 [% END %] 13 13 [% IF poll.status == 'AFTER' %] 14 :: <a href="[% c.uri_for('/admin', poll.uid, 'validate') %]"> Validation</a>14 :: <a href="[% c.uri_for('/admin', poll.uid, 'validate') %]">[% l('Validate') %]</a> 15 15 [% END %] 16 16 [% IF poll.status != 'RUNNING' %] 17 :: <a href="[% c.uri_for('/admin', poll.uid, 'delete') %]"> Effacer</a>17 :: <a href="[% c.uri_for('/admin', poll.uid, 'delete') %]">[% l('Delete') %]</a> 18 18 [% END %] 19 19 </div> -
trunk/root/templates/includes/ballot_form.tt
r267 r284 23 23 24 24 [% count = 0 %] 25 [% "<p> Depuis la liste électorale:</p>" IF count == 0 %]25 [% "<p>[% l('From voting list') %]</p>" IF count == 0 %] 26 26 [% IF poll.voting_keys.size %] 27 27 [% WHILE count < (poll.info('elected_choice') || 0) %] … … 38 38 [% END %] 39 39 [% ELSE %] 40 <p> Pas de votant à afficher</p>40 <p>[% l('No voting to show') %]</p> 41 41 [% END %] 42 42 … … 44 44 [% count = 0 %] 45 45 [% WHILE count < poll.info('free_choice') %] 46 [% "<p> Choi(x) libre(s):</p>" IF count == 0 %]46 [% "<p>[% l('Free choice') %]</p>" IF count == 0 %] 47 47 <input type="text" name="fsbal" value="[% fsbal.$count %]"><br> 48 48 [% count = count + 1 %] 49 49 [% END %] 50 50 <br> 51 <input type="submit" name="ballot" value=" Voter>>">51 <input type="submit" name="ballot" value="[% l('Voter') _ ' ' %] >>"> 52 52 </form> 53 53 <hr> 54 54 <form action="[% b_form_url %]" method="POST"> 55 <input type="submit" name="ballot" value=" Voter blanc>>">55 <input type="submit" name="ballot" value="[% l('Empty ballot') _ ' ' %] >>"> 56 56 </form> -
trunk/root/templates/includes/header.tt
r280 r284 32 32 <option>C</option> 33 33 [% FOREACH lang = [ 'fr' ] %] 34 <option[% " selected" IF locale == l %]>[% lang | html %]</option>34 <option[% " selected" IF locale == lang %]>[% lang | html %]</option> 35 35 [% END %] 36 36 </select><input type="submit"> 37 37 </form> 38 38 <p id="menu" style="clear: both;"> 39 <a href="[% c.uri_for('/') %]"> Acceuil</a> ::40 <a href="[% c.uri_for('/newpoll') %]"> Créer un nouveau vote</a>39 <a href="[% c.uri_for('/') %]">[% l('Welcome') %]</a> :: 40 <a href="[% c.uri_for('/newpoll') %]">[% l('Create a new poll') %]</a> 41 41 [% IF voteid %] 42 42 :: <a href="[% c.uri_for('/vote', c.model('Vote').poll(voteid).uid) %]"> 43 Votre vote:[% c.model('Vote').poll(voteid).info('label') | truncate(40) | html %]43 [% l('Your poll:') _ ' ' %][% c.model('Vote').poll(voteid).info('label') | truncate(40) | html %] 44 44 </a> 45 45 [% END %] -
trunk/root/templates/includes/poll.tt
r269 r284 11 11 <p>[% poll.info('procedure') | html | html_line_break %]</p> 12 12 [% END %] 13 <p>[% poll.info('choice_count') %] choix est/sont à faire13 <p>[% l('[_1] choice have to be done', poll.info('choice_count') %] 14 14 [%- IF poll.info('choice_count') != poll.info('elected_count') -%] 15 pour [% poll.info('elected_count') %] élu(s)[%- END -%].</p>15 [% l('for [_1] elected', poll.info('elected_count')) %][%- END -%].</p> 16 16 [% IF poll.info('dstart') && poll.info('dend') %] 17 <p>Scrutin ouvert du <b>[% poll.info('dstart') _ ' ' _ poll.info('hstart') | html %]</b> au 18 <b>[% poll.info('dend') _ ' ' _ poll.info('hend') | html %]</b></p> 17 <p>[% l('Poll open from <b>[_1] [_2]</b> to <b>[_3] [_4]</b>', 18 poll.info('dstart'), poll.info('hstart'), 19 poll.info('dend'), poll.info('hend') %]</p> 19 20 [% END %] 20 Ont voté:[% poll.signing_count %] / [% poll.voting_count %]<br>21 Bulletins:[% poll.ballot_count %]21 [% l('Participated') _ ' ' %] [% poll.signing_count %] / [% poll.voting_count %]<br> 22 [% l('Ballot:') _ ' ' %] [% poll.ballot_count %] 22 23 [% IF poll.signing_count != poll.ballot_count %] 23 <p class="alert">Le nombre de bulletins et le nombre de personnes ayant voté divergent, 24 suspicion de tricherie</p> 24 <p class="alert"> 25 [% l('The number of ballot and people having voted differ') %] 26 </p> 25 27 [% END %] 26 28 </div> … … 28 30 [% IF loop.first %] 29 31 <div style="float: right; width: 20%; top: 0px;" class="box"> 30 <p> Bulletin:</p>32 <p>[% l('Ballot:') %]</p> 31 33 <ol style="padding-left:15px; margin:5px;"> 32 34 [% END %] -
trunk/root/templates/includes/poll_results.tt
r227 r284 10 10 </div> 11 11 [% IF poll.list_ballot_needvalid.size %] 12 <p> Resultats provisoires:</p>13 <p class="alert"> Le gestionnaire doit vérifier la validité de certains bulletins</p>12 <p>[% l('Temporary results') %]</p> 13 <p class="alert">[% l('Poll administrator must validate some ballot') %]</p> 14 14 [% ELSE %] 15 <p> Resultats:</p>15 <p>[% l('Results:') %]</p> 16 16 [% END %] 17 <p> Nombre de choix à retenir:[% poll.info('choice_count') %]</p>17 <p>[% l('Number of choice to retain:') _ ' ' %][% poll.info('choice_count') %]</p> 18 18 19 19 <table border="1"> 20 <tr><td> Participation</td><td>[% poll.signing_count %]</td><td>[% poll.signing_count / poll.voting_count * 100 | format('%.2f %%') IF poll.voting_count %]</td></tr>21 <tr><td> Nombre de bulltetins</td><td>[% poll.ballot_count %]</td><td></td></tr>22 <tr><td> Nombre de bulltetins blanc</td><td>[% poll.empty_ballot_count %]</td><td>[% poll.empty_ballot_count / poll.ballot_count * 100 | format('%.2f %%') IF poll.ballot_count %]</td></tr>23 <tr><td> Nombre de bulltetins nuls</td><td>[% poll.invalid_ballot_count %]</td><td>[% poll.invalid_ballot_count / poll.ballot_count * 100 | format('%.2f %%') IF poll.ballot_count %]</td></tr>24 <tr><td> Nombre de voix exprimées</td><td>[% poll.voices_ballot_count %]</td><td>[% poll.voices_ballot_count / poll.ballot_count * 100 | format('%.2f %%') IF poll.ballot_count %]</td></tr>20 <tr><td>[% l('Participation' %]</td><td>[% poll.signing_count %]</td><td>[% poll.signing_count / poll.voting_count * 100 | format('%.2f %%') IF poll.voting_count %]</td></tr> 21 <tr><td>[% l('Ballot Number') %]</td><td>[% poll.ballot_count %]</td><td></td></tr> 22 <tr><td>[% l('Number of empty ballot') %]</td><td>[% poll.empty_ballot_count %]</td><td>[% poll.empty_ballot_count / poll.ballot_count * 100 | format('%.2f %%') IF poll.ballot_count %]</td></tr> 23 <tr><td>[% l('Number of nul ballot') %]</td><td>[% poll.invalid_ballot_count %]</td><td>[% poll.invalid_ballot_count / poll.ballot_count * 100 | format('%.2f %%') IF poll.ballot_count %]</td></tr> 24 <tr><td>[% l('Number of voices') %]</td><td>[% poll.voices_ballot_count %]</td><td>[% poll.voices_ballot_count / poll.ballot_count * 100 | format('%.2f %%') IF poll.ballot_count %]</td></tr> 25 25 </table> 26 26 … … 28 28 [% FOREACH res = poll.results %] 29 29 [% IF loop.first %] 30 <p> Score:</p>30 <p>[% l('Score:') %]</p> 31 31 <table border="1"><tr> 32 <th> Légende:</th>33 <td class="majabs"> Majorité Absolue</td>34 <td class="selected"> Elus</td>35 <td class="notselected"> Non élu</td>32 <th>[% l('Legend:') %]</th> 33 <td class="majabs">[% l('Absolute Majority') %]</td> 34 <td class="selected">[% l('Elected') %]</td> 35 <td class="notselected">l('Not elected') %]</td> 36 36 </tr></table><br> 37 37 <table border="1"> 38 <tr><th>Score</th><th>Ligne N°</th><th>choix</th><th>Nb voix</th><th>%</th><th></th></tr> 38 <tr><th>Score</th><th>[% l('Line n°') %]</th><th>[% l('choice') %]</th><th>[% 39 l('Number of voice') %]</th><th>[% l('%') %]</th><th></th></tr> 39 40 [% END %] 40 41 … … 63 64 [% END %] 64 65 [% ELSE %] 65 <p class="alert"> Aucun suffrage exprimé.</p>66 <p class="alert">[% l('No results') %]</p> 66 67 [% END %] 67 68 </div> … … 70 71 [% IF loop.first %] 71 72 <div id="ballot_list" class="box"> 72 <p> Liste des bulletins:</p>73 <p>[% l('Ballot list:') %]</p> 73 74 <table border="1"> 74 <tr><th> numéro</th><th>Id</th>75 <th> contenu (=> corrigé en)75 <tr><th>[% l('number') %]</th><th>[% l('Id') %]</th> 76 <th>[% l('date (=> view as)') | html %] 76 77 [% IF poll.info('free_choice') %] 77 <br>(*: hors liste)78 <br>(*: [% l('not from list') %]) 78 79 [% END %] 79 </th><th> remarque</th></tr>80 </th><th>[% l('comment') %]</th></tr> 80 81 [% END %] 81 82 <tr> … … 99 100 [% invalid = '#' _ poll.ballot(id).info.invalid %] 100 101 [% IF invalid == '#1' %] 101 <span class="alert"> Invalidé</span>102 <span class="alert">[% l('invalided') %]</span> 102 103 [% ELSIF invalid == '#' %] 103 <i> doit être validé</i>104 <i>[% l('must be validated') %]</i> 104 105 [% END %] 105 106 </td> … … 113 114 [% ELSE %][% # can show result %] 114 115 <div class="page_box"> 115 <p> Les résultats ne sont pas encore publiés<p>116 <p>[% l('Results are not yet published') %]<p> 116 117 </div> 117 118 [% END %] -
trunk/root/templates/includes/poll_running.tt
r227 r284 1 1 <!-- $Id$ --> 2 2 <div id="poll_running"> 3 <p>Le vote est actuellement en cours</p> 4 <p>Vous pouvez: <a href="[% c.uri_for('/ballot', c.model('Vote').poll(voteid).uid) %]">Voter ici</a></li></p> 3 <p>[% l('Poll is currently running') %]</p> 4 <p>[% l('You can') _ ' ' %]<a href="[% c.uri_for('/ballot', 5 c.model('Vote').poll(voteid).uid) %]">[% l('vote here') %]</a></li></p> 5 6 </div> -
trunk/root/templates/includes/signing_list.tt
r227 r284 9 9 [% IF loop.first %] 10 10 <div id="voting_list" class="box"> 11 <p> Liste des votants:</p>11 <p>[% l('Voting list') %]</p> 12 12 <table border="1"> 13 <tr><th> Numéro</th><th>Electeur</th>14 [% IF poll_status != 'RUNNING' %]<th> Emargement</th>[% END %]13 <tr><th>[% l('Number') %]</th><th>[% l('voting') %]</th> 14 [% IF poll_status != 'RUNNING' %]<th>[% l('sign') %]</th>[% END %] 15 15 </tr> 16 16 [% END %] … … 21 21 [% "<" IF voting.label %][% voting.mail | mail | html %][% ">" IF voting.label %] 22 22 </td> 23 [% IF poll_status != 'RUNNING' %]<td>[% "A voté"IF voting.date %]</td>[% END %]23 [% IF poll_status != 'RUNNING' %]<td>[% l('has vote') IF voting.date %]</td>[% END %] 24 24 </tr> 25 25 [% IF loop.last %]
Note: See TracChangeset
for help on using the changeset viewer.