Last change
on this file since 227 was
227,
checked in by nanardon, 15 years ago
|
- remove useless declaration, add $ marker in all template
|
-
Property svn:keywords set to
Id Rev
|
File size:
1.1 KB
|
Line | |
---|
1 | <!-- $Id$ --> |
---|
2 | [% poll = c.model('Vote').poll(voteid) %] |
---|
3 | |
---|
4 | <!-- $Id$ --> |
---|
5 | [% FOREACH key = poll.choices() %] |
---|
6 | [% "<p>Candidats:</p>" IF loop.first %] |
---|
7 | [% choice = poll.choice(key) %] |
---|
8 | <input type="checkbox" name="sbal" value="[% key %]"[% " checked" IF sbal.$key %]> |
---|
9 | [% choice.info.label | html %]<br> |
---|
10 | [% END %] |
---|
11 | |
---|
12 | [% count = 0 %] |
---|
13 | [% WHILE count < (poll.info('elected_choice') || 0) %] |
---|
14 | [% "<p>Depuis la liste électorale</p>" IF count == 0 %] |
---|
15 | [% FOREACH vkey = poll.voting_keys %] |
---|
16 | [% voting = poll.voting(vkey) %] |
---|
17 | [% '<select name="esbal"><option value=""></option>' IF loop.first %] |
---|
18 | <option value="[% voting.info.label || voting.info.mail | html %]" |
---|
19 | [% " selected" IF esbal.$count == (voting.info.label || voting.info.mail) %]> |
---|
20 | [% voting.info.label || voting.info.mail | html %] |
---|
21 | </option> |
---|
22 | [% '</select>' IF loop.last %] |
---|
23 | [% END %] |
---|
24 | [% count = count + 1 %] |
---|
25 | [% END %] |
---|
26 | |
---|
27 | [% count = 0 %] |
---|
28 | [% WHILE count < poll.info('free_choice') %] |
---|
29 | <input type="text" name="fsbal" value="[% fsbal.$count %]"><br> |
---|
30 | [% count = count + 1 %] |
---|
31 | [% END %] |
---|
32 | <hr> |
---|
33 | <input type="submit" name="ballot" value="Voter >>"> |
---|
Note: See
TracBrowser
for help on using the repository browser.