source: trunk/root/templates/includes/admin_menu.tt @ 362

Last change on this file since 362 was 362, checked in by nanardon, 14 years ago
  • don't allow change on data once results ae published
  • Property svn:keywords set to Id Rev
File size: 779 bytes
Line 
1<!-- $Id$ -->
2[% poll = c.model('Vote').poll(voteid) %]
3
4<div id="admin_menu">
5<a href="[% c.uri_for('/admin', poll.uid) %]">[% poll.info.label | html %]</a>
6[% IF poll.status == 'BEFORE' %]
7:: <a href="[% c.uri_for('/admin', poll.uid, 'ballot') %]">[% l('Ballot') %]</a>
8[% END %]
9:: <a href="[% c.uri_for('/admin', poll.uid, 'voters') %]">[% l('Voters') %]</a>
10[% IF poll.status == 'BEFORE' %]
11:: <a href="[% c.uri_for('/admin', poll.uid, 'date') %]">[% l('Dates') %]</a>
12[% END %]
13[% IF poll.status == 'AFTER' %]
14[% IF NOT poll.results %]
15:: <a href="[% c.uri_for('/admin', poll.uid, 'validate') %]">[% l('Validate') %]</a>
16[% END %]
17[% END %]
18[% IF poll.status != 'RUNNING' %]
19:: <a href="[% c.uri_for('/admin', poll.uid, 'delete') %]">[% l('Delete') %]</a>
20[% END %]
21</div>
Note: See TracBrowser for help on using the repository browser.