Changeset 175 for trunk/root
- Timestamp:
- 04/08/09 04:07:58 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/root/templates/admin/default.tt
r173 r175 7 7 8 8 [% 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%;"> 13 10 <form action="[% c.uri_for(voteid) %]" method="POST"> 14 11 … … 20 17 <textarea name="description" cols="60" rows="4">[% c.req.param('description') || thisvote.description | html %]</textarea> 21 18 <br> 22 < br>19 <hr> 23 20 <!-- http://www.mattkruse.com/javascript/calendarpopup/ --> 24 21 <i>Les dates sont au format JJ/MM/AAAA HH:MM:SS</i><br> … … 31 28 Date: <input type="text" name="dstart" value="[% c.req.param('dstart') || thisvote.dstart | html %]"> 32 29 <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 %]">30 Heure: <input type="text" size=9 name="hstart" value="[% c.req.param('hstart') || thisvote.hstart | html %]"> 34 31 <br> 35 32 Fin du vote:<br> 36 33 Date: <input type="text" name="dend" value="[% c.req.param('dend') || thisvote.dend | html %]"> 37 34 <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 %]">35 Heure: <input type="text" size=9 name="hend" value="[% c.req.param('hend') || thisvote.hend | html %]"> 39 36 <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> 47 38 <input type="submit" name="pollparam" value="Enregistrer"> 48 39 </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> 53 48 [% ELSE %] 54 [% FOREACH choice = vote.vote_choices(voteid) %]55 49 <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"> 59 51 </form> 60 <br>61 52 [% 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> 71 54 [% ELSE %] 72 55 [% INCLUDE 'includes/poll.tt' %] 73 56 [% END %] 74 75 [% # INCLUDE 'includes/poll.tt' %]76 57 77 58 [% IF poll.status == 'AFTER' %] … … 132 113 [% END %] 133 114 [% END %] 115 116 <div style="clear: both"></div>
Note: See TracChangeset
for help on using the changeset viewer.