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