source: trunk/root/templates/default.tt @ 442

Last change on this file since 442 was 428, checked in by nanardon, 14 years ago
  • no link for deleted poll
  • Property svn:keywords set to Id Rev
File size: 952 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">[% l('You don\'t own any polls') %] [% novoting | html %].</p>
8[% END %]
9[% IF sendvoting %]
10[% l('An email has been sent to [_1]', sendvoting) %]
11[% END %]
12
13<p>[% l('Enter your email address to receive a list of your polls') %]</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[% NEXT IF NOT poll.info %]
22[% IF loop.first %]
23<p>[% l('My polls:') %]</p>
24<ul>
25[% END %]
26<li><a href="[% c.uri_for('/vote', poll.uid) %]">[% poll.info.label | html %]</a>
27[% IF c.session.mypoll.$p %]
28    <a href="[% c.uri_for('/admin', poll.uid) %]"><i>[% l('administrate') %]</i></a>
29[% END %]
30</li>
31[% IF loop.last %]
32</ul>
33[% END %]
34
35[% END %]
Note: See TracBrowser for help on using the repository browser.