Last change
on this file since 267 was
259,
checked in by nanardon, 15 years ago
|
- use session to remember poll of visitor as admin or voting
|
-
Property svn:keywords set to
Id Rev
|
File size:
893 bytes
|
Line | |
---|
1 | <!-- $Id$ --> |
---|
2 | [% vote = c.model('Vote') %] |
---|
3 | |
---|
4 | <div style="float: right; width: 33%;" class="reminder"> |
---|
5 | <form action="[% c.uri_for %]" method="POST"> |
---|
6 | [% IF novoting %] |
---|
7 | <p class="warning">Aucun vote en cours ne concerne [% novoting | html %].</p> |
---|
8 | [% END %] |
---|
9 | [% IF sendvoting %] |
---|
10 | Un mail a été envoyé à [% sendvoting %] |
---|
11 | [% END %] |
---|
12 | |
---|
13 | <p>Pour retrouver les votes qui vous concerne, indiquez votre adresse mail:</p> |
---|
14 | <input type="text" name="mailvoting" class="reminder"> |
---|
15 | <input type="submit" class="reminder" value=">"> |
---|
16 | </form> |
---|
17 | </div> |
---|
18 | |
---|
19 | [% FOREACH p = c.session.mypoll.keys %] |
---|
20 | [% poll = vote.poll(p) %] |
---|
21 | [% IF loop.first %] |
---|
22 | <p>Mes votes:</p> |
---|
23 | <ul> |
---|
24 | [% END %] |
---|
25 | <li><a href="[% c.uri_for('/vote', poll.uid) %]">[% poll.info.label | html %]</a> |
---|
26 | [% IF c.session.mypoll.$p %] |
---|
27 | <a href="[% c.uri_for('/admin', poll.uid) %]"><i>administrer</i></a> |
---|
28 | [% END %] |
---|
29 | </li> |
---|
30 | [% IF loop.last %] |
---|
31 | </ul> |
---|
32 | [% END %] |
---|
33 | |
---|
34 | [% END %] |
---|
Note: See
TracBrowser
for help on using the repository browser.