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

Last change on this file since 296 was 296, checked in by misc, 14 years ago

fix english spelling, will break translation

  • Property svn:keywords set to Id Rev
File size: 2.0 KB
Line 
1<!-- $Id$ -->
2[% INCLUDE 'includes/admin_menu.tt' %]
3
4[% poll = c.model('Vote').poll(voteid) %]
5
6<div style="float: left; width: 55%" class="box">
7<form action="[% c.uri_for(poll.uid, 'ballot') %]" method="POST">
8<table border=1>
9<tr>
10<td>[% l('Number of possible choice:') %]</td>
11<td><input type="text" size="3" name="choice_count" value="[% c.req.param('choice_count') || poll.info('choice_count') | html %]"></td>
12</tr>
13
14<tr>
15<td>[% l('Number of people to elect') %]<br>
16    ([% l('if different of number of choice') %])
17</td>
18<td><input type="text" size="3" name="elected_count" value="[% c.req.param('elected_count') || poll.raw_info('elected_count') | html %]"></td>
19</tr>
20
21<tr>
22<td>[% l('Number of free input fields:') %]</td>
23<td><input type="text" size="3" name="free_choice" value="[% c.req.param('free_choice') || poll.info('free_choice') || 0 | html %]"></td>
24</tr>
25
26<tr>
27<td>[% l('Number of people to elect, taken from voting list') %]</td>
28<td><input type="text" size="3" name="elected_choice" value="[% c.req.param('elected_choice') || poll.info('elected_choice') || 0 | html %]"></td>
29</tr>
30
31</table>
32<input type="submit" name="pollballot" value="[% l('save') %]">
33</form>
34
35<hr>
36
37[% IF ! poll.choices_keys.size %]
38<p class="alert">[% l('No choice are configured') %]</p>
39[% ELSE %]
40[% FOREACH choicek = poll.choices_keys %]
41[% choice = poll.choice(choicek) %]
42<form action="[% c.uri_for(poll.uid, 'ballot') %]" method="POST">
43[% loop.count %] - [% choice.info.label | html %]
44<input type="hidden" name="delch" value="[% choicek %]">
45<input type="submit" name="del" value="[% l('delete') %]">
46</form>
47<br>
48[% END %]
49[% END %]
50<form action="[% c.uri_for(poll.uid, 'ballot') %]" method="POST">
51[% l('Add a choice') %]<br>
52<input type="text" name="addch">
53<input type="submit" value="[% l('Add') %]">
54</form>
55</div>
56
57<div style="float: right; width: 30%" class="ballot">
58<p>[% l('Preview of ballot') %]</p>
59[% INCLUDE 'includes/ballot_form.tt' b_form_url = c.uri_for(poll.uid, 'ballot') %]
60</div>
61
62<div style="clear: both"></div>
Note: See TracBrowser for help on using the repository browser.