Changeset 175 for trunk/root


Ignore:
Timestamp:
04/08/09 04:07:58 (15 years ago)
Author:
nanardon
Message:
  • start user interface for encypted polls
File:
1 edited

Legend:

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

    r173 r175  
    77 
    88[% IF vote.vote_status(voteid) == 'BEFORE' %] 
    9 <table border="1"> 
    10 <tr><th>Vote</th><th>Possibilité de vote</th></tr> 
    11 <tr> 
    12 <td valign="TOP"> 
     9<div class="box" style="float: left; width: 55%;"> 
    1310<form action="[% c.uri_for(voteid) %]" method="POST"> 
    1411 
     
    2017<textarea name="description" cols="60" rows="4">[% c.req.param('description') || thisvote.description | html %]</textarea> 
    2118<br> 
    22 <br> 
     19<hr> 
    2320<!-- http://www.mattkruse.com/javascript/calendarpopup/ --> 
    2421<i>Les dates sont au format JJ/MM/AAAA HH:MM:SS</i><br> 
     
    3128Date: <input type="text" name="dstart" value="[% c.req.param('dstart') || thisvote.dstart | html %]"> 
    3229<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> 
    33 Heure: <input type="text" name="hstart" value="[% c.req.param('hstart') || thisvote.hstart | html %]"> 
     30Heure: <input type="text" size=9 name="hstart" value="[% c.req.param('hstart') || thisvote.hstart | html %]"> 
    3431<br> 
    3532Fin du vote:<br> 
    3633Date: <input type="text" name="dend" value="[% c.req.param('dend') || thisvote.dend | html %]"> 
    3734<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> 
    38 Heure: <input type="text" name="hend" value="[% c.req.param('hend') || thisvote.hend | html %]"> 
     35Heure: <input type="text" size=9 name="hend" value="[% c.req.param('hend') || thisvote.hend | html %]"> 
    3936<br> 
    40 <br> 
    41 Nombre de choix possible: 
    42 <input type="text" name="choice_count" value="[% c.req.param('choice_count') || thisvote.choice_count | html %]"> 
    43 <br> 
    44 Nombre de choix libres: 
    45 <input type="text" name="free_choice" value="[% c.req.param('free_choice') || thisvote.free_choice || 0 | html %]"> 
    46 <br> 
     37<hr> 
    4738<input type="submit" name="pollparam" value="Enregistrer"> 
    4839</form> 
    49 </td> 
    50 <td valign="TOP"> 
    51 [% IF ! vote.vote_choices(voteid).size %] 
    52 <p class="alert">Aucun choix configuré</p> 
     40</div> 
     41<div class="box" style="float:right; width: 35%"> 
     42[% IF poll.is_crypted %] 
     43<p><a href="[% c.uri_for(voteid, 'privatekey') %]">Télécharger la clef privée</a></p> 
     44<hr> 
     45<form action="[% c.uri_for(voteid) %]" method="POST"> 
     46<input type="submit" name="notcrypted" value="Ne pas chiffer le vote"> 
     47</form> 
    5348[% ELSE %] 
    54 [% FOREACH choice = vote.vote_choices(voteid) %] 
    5549<form action="[% c.uri_for(voteid) %]" method="POST"> 
    56 [% loop.count %] - [% vote.choice_info(choice).label | html %] 
    57 <input type="hidden" name="delch" value="[% vote.choice_info(choice).key %]"> 
    58 <input type="submit" name="del" value="Effacer"> 
     50<input type="submit" name="encrypted" value="Chiffrer le vote"> 
    5951</form> 
    60 <br> 
    6152[% END %] 
    62 [% END %] 
    63 <form action="[% c.uri_for(voteid) %]" method="POST"> 
    64 Ajouter un choix:<br> 
    65 <input type="text" name="addch"> 
    66 <input type="submit" value="Ajouter"> 
    67 </form> 
    68 </td> 
    69 </tr> 
    70 </table> 
     53</div> 
    7154[% ELSE %] 
    7255[% INCLUDE 'includes/poll.tt' %] 
    7356[% END %] 
    74  
    75 [% # INCLUDE 'includes/poll.tt' %] 
    7657 
    7758[% IF poll.status == 'AFTER' %] 
     
    132113[% END %] 
    133114[% END %] 
     115 
     116<div style="clear: both"></div> 
Note: See TracChangeset for help on using the changeset viewer.