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

Last change on this file since 229 was 229, checked in by nanardon, 15 years ago
  • add a procedure field to not overload description
  • Property svn:keywords set to Id Rev
File size: 1.5 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<!-- $Id$ -->
13[% FOREACH key = poll.choices() %]
14[% "<p>Candidats:</p>" IF loop.first %]
15[% choice = poll.choice(key) %]
16<input type="checkbox" name="sbal" value="[% key %]"[% " checked" IF sbal.$key %]>
17[% choice.info.label | html %]<br>
18[% END %]
19
20<p>Vous devez faire [% poll.info('choice_count') %] choix
21[%- IF poll.info('choice_count') != poll.info('elected_count') -%]
22pour [% poll.info('elected_count') %] élu(s)[%- END -%].</p>
23
24[% count = 0 %]
25[% WHILE count < (poll.info('elected_choice') || 0) %]
26[% "<p>Depuis la liste électorale</p>" IF count == 0 %]
27[% FOREACH vkey = poll.voting_keys %]
28[% voting = poll.voting(vkey) %]
29[% '<select name="esbal"><option value=""></option>' IF loop.first %]
30<option value="[% voting.info.label || voting.info.mail | html %]"
31    [% " selected" IF esbal.$count == (voting.info.label || voting.info.mail) %]>
32    [% voting.info.label || voting.info.mail | html %]
33</option>
34[% '</select>' IF loop.last %]
35[% END %]
36[% count = count + 1 %]
37[% END %]
38
39[% count = 0 %]
40[% WHILE count < poll.info('free_choice') %]
41[% "<p>Choi(x) libre(s)</p>" IF count == 0 %]
42<input type="text" name="fsbal" value="[% fsbal.$count %]"><br>
43[% count = count + 1 %]
44[% END %]
45<hr>
46<input type="submit" name="ballot" value="Voter &gt;&gt;">
Note: See TracBrowser for help on using the repository browser.