Changeset 22 for trunk/root


Ignore:
Timestamp:
03/09/09 03:59:15 (15 years ago)
Author:
nanardon
Message:
  • admin page
Location:
trunk/root/templates
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/root/templates/admin/default.tt

    r16 r22  
    11[% vote = c.model('Vote') %] 
    22 
     3<table border="1"> 
     4<tr><th>Vote</th><th>Possibilité de vote</th></tr> 
     5<tr> 
     6<td valign="TOP"> 
    37<form action="[% c.uri_for(voteid) %]"> 
    48 
     
    1115Debut du vote: 
    1216<input type="text" name="start" value="[% c.req.param('start') || thisvote.start | html %]"> 
     17<br> 
    1318Fin du vote: 
    1419<input type="text" name="end" value="[% c.req.param('end') || thisvote.end | html %]"> 
     
    2025<input type="text" name="free_choice" value="[% c.req.param('free_choice') || thisvote.free_choice | html %]"> 
    2126<br> 
    22  
    23  
    2427<input type="submit"> 
    2528</form> 
     29</td> 
     30<td valign="TOP"> 
     31[% FOREACH choice = vote.vote_choices(voteid) %] 
     32<form action="[% c.uri_for(voteid) %]"> 
     33[% loop.count %] - [% vote.choice_info(choice).label | html %] 
     34<input type="hidden" name="delch" value="[% vote.choice_info(choice).key %]"> 
     35<input type="submit" name="del" value="Effacer"> 
     36</form> 
     37<br> 
     38[% END %] 
     39<form action="[% c.uri_for(voteid) %]"> 
     40Ajouter un choix:<br> 
     41<input type="text" name="addch"> 
     42<input type="submit"> 
     43</form> 
     44</td> 
     45</tr> 
     46</table> 
     47 
     48<hr> 
     49 
     50<table border="1"> 
     51<tr> 
     52<td valign="TOP"> 
     53[% signing = [ vote.vote_signing(voteid) ] %] 
     54[% FOREACH voting = signing %] 
     55[% voting.id | html %] [% voting.mail | html %]<br> 
     56[% END %] 
     57</td> 
     58<td valign="TOP"> 
     59<form action="[% c.uri_for(voteid) %]"> 
     60Login: <input type="text" name="id"><br> 
     61Mail: <input type="text" name="mail"><br> 
     62<input type="submit"> 
     63</form> 
     64<hr> 
     65<form method="POST" ENCTYPE="multipart/form-data" action="[% c.uri_for(voteid) %]"> 
     66<input type="file" name="votinglist"><br> 
     67<input type="checkbox" name="delete">Effacer la liste des votants<br> 
     68<input type="submit"> 
     69</form> 
     70</td> 
     71</tr> 
     72</table> 
     73</t 
  • trunk/root/templates/ballot/default.tt

    r17 r22  
    2727<form action="[% c.uri_for(voteid) %]"> 
    2828[% FOREACH choice = vote.vote_choices(voteid) %] 
    29 [% key = choice.key %] 
    30 <input type="checkbox" name="sbal" value="[% choice.key %]"[% " checked" IF sbal.$key %]> 
    31 [% choice.label | html %]<br> 
     29[% key = vote.choice_info(choice).key %] 
     30<input type="checkbox" name="sbal" value="[% key %]"[% " checked" IF sbal.$key %]> 
     31[% vote.choice_info(choice).label | html %]<br> 
    3232[% END %] 
    3333 
  • trunk/root/templates/ballot/done.tt

    r20 r22  
    11Vote réussi. 
     2 
     3Les résultats seront disponibles ici: 
     4<a href="[% c.uri_for('/vote', voteid) %]">Ici</a>. 
Note: See TracChangeset for help on using the changeset viewer.