source: trunk/root/templates/includes/ballot_form.tt @ 298

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

fix some spelling

  • Property svn:keywords set to Id Rev
File size: 1.8 KB
Line 
1<!-- $Id$ -->
2[% poll = c.model('Vote').poll(voteid) %]
3
4[% IF poll.info('procedure') %]
5[% poll.info('procedure') | html %]
6<hr>
7[% ELSIF poll.info('description') %]
8[% poll.info('description') | html %]
9<hr>
10[% END %]
11
12<form action="[% b_form_url %]" method="POST">
13<p>Vous devez faire [% poll.info('choice_count') %] choix
14[%- IF poll.info('choice_count') != poll.info('elected_count') -%]
15pour [% poll.info('elected_count') %] élu(s)[%- END -%].</p>
16
17[% FOREACH key = poll.choices() %]
18[% "<p>Candidats:</p>" IF loop.first %]
19[% choice = poll.choice(key) %]
20<input type="checkbox" name="sbal" value="[% key %]"[% " checked" IF sbal.$key %]>
21[% choice.info.label | html %]<br>
22[% END %]
23
24[% count = 0 %]
25[% IF poll.voting_keys.size %]
26[% WHILE count < (poll.info('elected_choice') || 0) %]
27[% IF count == 0 %]
28<p>[% l('From voting list') %]</p>
29[% END %]
30[% FOREACH vkey = poll.voting_keys %]
31[% voting = poll.voting(vkey) %]
32[% '<select name="esbal"><option value=""></option>' IF loop.first %]
33<option value="[% voting.info.label || voting.info.mail | html %]"
34    [% " selected" IF esbal.$count == (voting.info.label || voting.info.mail) %]>
35    [% voting.info.label || voting.info.mail | html %]
36</option>
37[% '</select><br>' IF loop.last %]
38[% END %]
39[% count = count + 1 %]
40[% END %]
41[% ELSE %]
42<p>[% l('No voter to show') %]</p>
43[% END %]
44
45
46[% count = 0 %]
47[% WHILE count < poll.info('free_choice') %]
48[% IF count == 0 %]
49<p>[% l('Free choice') %]</p>
50[% END %]
51<input type="text" name="fsbal" value="[% fsbal.$count %]"><br>
52[% count = count + 1 %]
53[% END %]
54<br>
55<input type="submit" name="ballot" value="[% l('Vote') _ ' ' %] &gt;&gt;">
56</form>
57<hr>
58<form action="[% b_form_url %]" method="POST">
59<input type="submit" name="ballot" value="[% l('Empty ballot') _ ' ' %] &gt;&gt;">
60</form>
Note: See TracBrowser for help on using the repository browser.