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
|
Rev | Line | |
---|
[227] | 1 | <!-- $Id$ --> |
---|
[164] | 2 | [% poll = c.model('Vote').poll(voteid) %] |
---|
| 3 | |
---|
[385] | 4 | <p>[% l('You need to select') _ ' ' _ poll.info('choice_count') _ ' ' _ l('choices') %] |
---|
[235] | 5 | [%- IF poll.info('choice_count') != poll.info('elected_count') -%] |
---|
[385] | 6 | [% l('for') _ ' ' _ poll.info('elected_count') _ ' ' _ l('elected') %] [%- END -%]</p> |
---|
[234] | 7 | |
---|
[165] | 8 | [% FOREACH key = poll.choices() %] |
---|
[323] | 9 | [% "<p>Candidates:</p>" IF loop.first %] |
---|
[165] | 10 | [% choice = poll.choice(key) %] |
---|
[164] | 11 | <input type="checkbox" name="sbal" value="[% key %]"[% " checked" IF sbal.$key %]> |
---|
[165] | 12 | [% choice.info.label | html %]<br> |
---|
[164] | 13 | [% END %] |
---|
| 14 | |
---|
| 15 | [% count = 0 %] |
---|
[267] | 16 | [% IF poll.voting_keys.size %] |
---|
[219] | 17 | [% WHILE count < (poll.info('elected_choice') || 0) %] |
---|
[290] | 18 | [% IF count == 0 %] |
---|
[323] | 19 | <p>[% l('From the list of voters') %]</p> |
---|
[290] | 20 | [% END %] |
---|
[219] | 21 | [% FOREACH vkey = poll.voting_keys %] |
---|
| 22 | [% voting = poll.voting(vkey) %] |
---|
| 23 | [% '<select name="esbal"><option value=""></option>' IF loop.first %] |
---|
[221] | 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 %] |
---|
[219] | 27 | </option> |
---|
[267] | 28 | [% '</select><br>' IF loop.last %] |
---|
[219] | 29 | [% END %] |
---|
| 30 | [% count = count + 1 %] |
---|
| 31 | [% END %] |
---|
[267] | 32 | [% ELSE %] |
---|
[323] | 33 | <p>[% l('No voters to show') %]</p> |
---|
[267] | 34 | [% END %] |
---|
[219] | 35 | |
---|
| 36 | [% count = 0 %] |
---|
[207] | 37 | [% WHILE count < poll.info('free_choice') %] |
---|
[290] | 38 | [% IF count == 0 %] |
---|
| 39 | <p>[% l('Free choice') %]</p> |
---|
| 40 | [% END %] |
---|
[164] | 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.