source: trunk/root/templates/admin/ballot.tt @ 385

Last change on this file since 385 was 385, checked in by misc, 14 years ago
  • fix some strings, proofreading done by Ahmad Samir
  • Property svn:keywords set to Id Rev
File size: 987 bytes
Line 
1<!-- $Id$ -->
2[% INCLUDE 'includes/admin_menu.tt' %]
3
4[% poll = c.model('Vote').poll(voteid) %]
5
6[% INCLUDE 'includes/ballot_settings.tt' %]
7
8<hr>
9
10[% IF ! poll.choices_keys.size %]
11<p class="alert">[% l('No choices were made') %]</p>
12[% ELSE %]
13[% FOREACH choicek = poll.choices_keys %]
14[% choice = poll.choice(choicek) %]
15<form action="[% c.uri_for(poll.uid, 'ballot') %]" method="POST">
16[% loop.count %] - [% choice.info.label | html %]
17<input type="hidden" name="delch" value="[% choicek %]">
18<input type="submit" name="del" value="[% l('Delete') %]">
19</form>
20<br>
21[% END %]
22[% END %]
23<form action="[% c.uri_for(poll.uid, 'ballot') %]" method="POST">
24[% l('Add a choice') %]<br>
25<input type="text" name="addch">
26<input type="submit" value="[% l('Add') %]">
27</form>
28</div>
29
30<div style="float: right; width: 30%" class="ballot">
31<p>[% l('Preview ballot') %]</p>
32[% INCLUDE 'includes/ballot_form.tt' b_form_url = c.uri_for(poll.uid, 'ballot') %]
33</div>
34
35<div style="clear: both"></div>
Note: See TracBrowser for help on using the repository browser.