source: trunk/root/templates/pollinc/binary/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: 1.4 KB
Line 
1<!-- $Id$ -->
2[% poll = c.model('Vote').poll(voteid) %]
3
4<p>[% l('You need to select') _ ' ' _ poll.info('choice_count') _ ' ' _ l('choices') %]
5[%- IF poll.info('choice_count') != poll.info('elected_count') -%]
6[% l('for') _ ' ' _ poll.info('elected_count') _ ' ' _ l('elected') %] [%- END -%]</p>
7
8[% FOREACH key = poll.choices() %]
9[% "<p>Candidates:</p>" IF loop.first %]
10[% choice = poll.choice(key) %]
11<input type="checkbox" name="sbal" value="[% key %]"[% " checked" IF sbal.$key %]>
12[% choice.info.label | html %]<br>
13[% END %]
14
15[% count = 0 %]
16[% IF poll.voting_keys.size %]
17[% WHILE count < (poll.info('elected_choice') || 0) %]
18[% IF count == 0 %]
19<p>[% l('From the list of voters') %]</p>
20[% END %]
21[% FOREACH vkey = poll.voting_keys %]
22[% voting = poll.voting(vkey) %]
23[% '<select name="esbal"><option value=""></option>' IF loop.first %]
24<option value="[% voting.info.label || voting.info.mail | html %]"
25    [% " selected" IF esbal.$count == (voting.info.label || voting.info.mail) %]>
26    [% voting.info.label || voting.info.mail | html %]
27</option>
28[% '</select><br>' IF loop.last %]
29[% END %]
30[% count = count + 1 %]
31[% END %]
32[% ELSE %]
33<p>[% l('No voters to show') %]</p>
34[% END %]
35
36[% count = 0 %]
37[% WHILE count < poll.info('free_choice') %]
38[% IF count == 0 %]
39<p>[% l('Free choice') %]</p>
40[% END %]
41<input type="text" name="fsbal" value="[% fsbal.$count %]"><br>
42[% count = count + 1 %]
43[% END %]
Note: See TracBrowser for help on using the repository browser.