Changeset 206 for trunk/root
- Timestamp:
- 04/16/09 00:16:56 (15 years ago)
- Location:
- trunk/root/templates
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/root/templates/admin/includes/poll_settings.tt
r205 r206 8 8 <form action="[% c.uri_for(voteid) %]" method="POST"> 9 9 10 [% thisvote = vote.vote_info(voteid) %] 11 12 Label: <input type="text" name="label" value="[% c.req.param('label') || thisvote.label | html %]"> 10 Label: <input type="text" name="label" value="[% c.req.param('label') || poll.info('label') | html %]"> 13 11 <br> 14 12 Description:<br> 15 <textarea name="description" cols="60" rows="4">[% c.req.param('description') || thisvote.description| html %]</textarea>13 <textarea name="description" cols="60" rows="4">[% c.req.param('description') || poll.info('description') | html %]</textarea> 16 14 <br> 17 15 <hr> … … 25 23 26 24 Debut du vote:<br> 27 Date: <input type="text" name="dstart" value="[% c.req.param('dstart') || thisvote.dstart| html %]">25 Date: <input type="text" name="dstart" value="[% c.req.param('dstart') || poll.info('dstart') | html %]"> 28 26 <A HREF="#" onClick="cal13.select(document.forms[0].dstart,'anchor13','dd/MM/yyyy'); return false;" TITLE="cal13.select(document.forms[0].dstart,'anchor13','dd/MM/yyyy'); return false;" NAME="anchor13" ID="anchor13">select</A> 29 Heure: <input type="text" size=9 name="hstart" value="[% c.req.param('hstart') || thisvote.hstart| html %]">27 Heure: <input type="text" size=9 name="hstart" value="[% c.req.param('hstart') || poll.info('hstart') | html %]"> 30 28 <br> 31 29 Fin du vote:<br> 32 Date: <input type="text" name="dend" value="[% c.req.param('dend') || thisvote.dend| html %]">30 Date: <input type="text" name="dend" value="[% c.req.param('dend') || poll.info('dend') | html %]"> 33 31 <A HREF="#" onClick="cal13.select(document.forms[0].dend,'anchor14','dd/MM/yyyy',(document.forms[0].dend.value=='')?document.forms[0].dstart.value:null); return false;" TITLE="cal13.select(document.forms[0].dend,'anchor14','dd/MM/yyyy',(document.forms[0].dend.value=='')?document.forms[0].dstart.value:null); return false;" NAME="anchor14" ID="anchor14">select</A> 34 Heure: <input type="text" size=9 name="hend" value="[% c.req.param('hend') || thisvote.hend| html %]">32 Heure: <input type="text" size=9 name="hend" value="[% c.req.param('hend') || poll.info('hend') | html %]"> 35 33 <br> 36 34 <hr> -
trunk/root/templates/admin/index.tt
r47 r206 1 1 [% vote = c.model('Vote') %] 2 [% poll = c.model('Vote').poll('voteid') %] 2 3 3 [% FOREACH voteid = vote.list_comming_vote %]4 <a href="[% c.uri_for('/admin', voteid) %]">[% vote.vote_info(voteid).label| html %]</a>4 [% FOREACH voteid = c.model('Vote').list_comming_vote %] 5 <a href="[% c.uri_for('/admin', voteid) %]">[% c.model('Vote').poll('voteid').info('label') | html %]</a> 5 6 <br> 6 7 [% END %] -
trunk/root/templates/admin/login.tt
r186 r206 1 1 <!-- $Id$ --> 2 2 [% vote = c.model('Vote') %] 3 [% poll = c.model('Vote').poll(voteid) %] 3 4 4 5 <div id="admin_login" class="login_box"> 5 6 <form action="[% c.uri_for('/admin', voteid) %]" method="POST"> 6 <p>Accès à l'interface d'administration du vote <b><i>[% vote.vote_info(voteid).label| html %]</i></b></p>7 <p>Accès à l'interface d'administration du vote <b><i>[% poll.info('label') | html %]</i></b></p> 7 8 <p>Veuillez saisir le mot de passe : <input type="password" name="[% 'vpass' _ voteid %]"> 8 9 <input type="submit"></p> -
trunk/root/templates/ballot/default.tt
r192 r206 1 1 [% vote = c.model('Vote') %] 2 3 [% thisvote = vote.vote_info(voteid) %] 2 [% poll = c.model('Vote').poll(voteid) %] 4 3 5 4 <div id="ballot" class="ballot"> 6 5 <form action="[% c.uri_for(voteid) %]" method="POST"> 7 <p><b>Vote: [% thisvote.label| html %]</b></p>6 <p><b>Vote: [% poll.info('label') | html %]</b></p> 8 7 [% IF c.req.param('ballot') %] 9 8 <p>Confirmez votre vote:</p> 10 9 [% ELSE %] 11 10 [% IF vote_error %]<p class="alert">Erreur: [% vote_error %]</p>[% END %] 12 <p>[% thisvote.description| html | html_line_break %]</p>13 <p>[% thisvote.choice_count%] choix possibles:</p>11 <p>[% poll.info('description') | html | html_line_break %]</p> 12 <p>[% poll.info('choice_count') %] choix possibles:</p> 14 13 [% END %] 15 14 <hr> -
trunk/root/templates/ballot/index.tt
r47 r206 1 1 [% vote = c.model('Vote') %] 2 [% poll = c.model('Vote').poll(voteid) %] 2 3 3 4 [% voteids = vote.list_running_vote %] … … 6 7 7 8 [% FOREACH voteid = voteids %] 8 <a href="[% c.uri_for('/ballot', voteid) %]">[% vote.vote_info(voteid).label| html %]</a>9 <a href="[% c.uri_for('/ballot', voteid) %]">[% poll.info('label') | html %]</a> 9 10 <br> 10 11 [% END %] -
trunk/root/templates/default.tt
r167 r206 10 10 [% END %] 11 11 <tr> 12 <td><lu><li><a href="[% c.uri_for( '/vote', id ) %]">[% vote.vote_info(id).label| html %]</a></lu></td></td>12 <td><lu><li><a href="[% c.uri_for( '/vote', id ) %]">[% c.model('Vote').poll(id).info('label') | html %]</a></lu></td></td> 13 13 <td>><a href="[% c.uri_for( '/ballot', id ) %]"> Voter</a></td> 14 14 </tr> … … 28 28 [% END %] 29 29 <tr> 30 <td><lu><li><a href="[% c.uri_for( 'vote', id ) %]">[% vote.vote_info(id).label| html %]</a></li></lu></td>30 <td><lu><li><a href="[% c.uri_for( 'vote', id ) %]">[% c.model('Vote').poll(id).info('label') | html %]</a></li></lu></td> 31 31 <td>><a href="[% c.uri_for( '/admin', id ) %]"> Administrer</a></td> 32 32 </tr> … … 47 47 [% END %] 48 48 <tr> 49 <td><lu><li><a href="[% c.uri_for( 'vote', id ) %]">[% vote.vote_info(id).label| html %]</a></lu></td></td>49 <td><lu><li><a href="[% c.uri_for( 'vote', id ) %]">[% c.model('Vote').poll(id).info('label') | html %]</a></lu></td></td> 50 50 </tr> 51 51 [% IF loop.last %] -
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.