1 | <!-- $Id$ --> |
---|
2 | [% vote = c.model('Vote') %] |
---|
3 | [% poll = c.model('Vote').poll(voteid) %] |
---|
4 | <DIV ID="testdiv1" STYLE="position:absolute;visibility:hidden;background-color:white;layer-background-color:white;"></DIV> |
---|
5 | |
---|
6 | [% IF poll.status == 'BEFORE' %] |
---|
7 | <div class="box" style="float: left; width: 55%;"> |
---|
8 | <form action="[% c.uri_for(voteid) %]" method="POST"> |
---|
9 | |
---|
10 | [% thisvote = vote.vote_info(voteid) %] |
---|
11 | |
---|
12 | Label: <input type="text" name="label" value="[% c.req.param('label') || thisvote.label | html %]"> |
---|
13 | <br> |
---|
14 | Description:<br> |
---|
15 | <textarea name="description" cols="60" rows="4">[% c.req.param('description') || thisvote.description | html %]</textarea> |
---|
16 | <br> |
---|
17 | <hr> |
---|
18 | <!-- http://www.mattkruse.com/javascript/calendarpopup/ --> |
---|
19 | <i>Les dates sont au format JJ/MM/AAAA HH:MM:SS</i><br> |
---|
20 | [% IF dateerror %]<p class="alert">[% dateerror | html %]</p>[% END %] |
---|
21 | |
---|
22 | <SCRIPT LANGUAGE="JavaScript" ID="js13"> |
---|
23 | var cal13 = new CalendarPopup(); |
---|
24 | </SCRIPT> |
---|
25 | |
---|
26 | Debut du vote:<br> |
---|
27 | Date: <input type="text" name="dstart" value="[% c.req.param('dstart') || thisvote.dstart | html %]"> |
---|
28 | <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 %]"> |
---|
30 | <br> |
---|
31 | Fin du vote:<br> |
---|
32 | Date: <input type="text" name="dend" value="[% c.req.param('dend') || thisvote.dend | html %]"> |
---|
33 | <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 %]"> |
---|
35 | <br> |
---|
36 | <hr> |
---|
37 | <input type="submit" name="pollparam" value="Enregistrer"> |
---|
38 | </form> |
---|
39 | </div> |
---|
40 | <div class="box" style="float:right; width: 35%"> |
---|
41 | [% IF poll.is_crypted %] |
---|
42 | <p><a href="[% c.uri_for(voteid, 'privatekey') %]">Télécharger la clef privée</a></p> |
---|
43 | <hr> |
---|
44 | <form action="[% c.uri_for(voteid) %]" method="POST"> |
---|
45 | <input type="submit" name="notcrypted" value="Ne pas chiffer le vote"> |
---|
46 | </form> |
---|
47 | [% ELSE %] |
---|
48 | <form action="[% c.uri_for(voteid) %]" method="POST"> |
---|
49 | Vous pouvez choisir un passphrase pour la clef du vote:<br> |
---|
50 | <input type="password" name="passphrase"><br> |
---|
51 | <input type="submit" name="encrypted" value="Chiffrer le vote"> |
---|
52 | </form> |
---|
53 | [% END %] |
---|
54 | </div> |
---|
55 | [% END %] |
---|