source: trunk/root/templates/ballot/default.tt

Last change on this file was 461, checked in by misc, 13 years ago
  • fix from nanar for missing information in the template when voting
  • Property svn:keywords set to Id Rev
File size: 1.6 KB
Line 
1<!-- $Id$ -->
2[% poll = c.model('Vote').poll(voteid) %]
3
4[% BLOCK infoip %]
5<p>[% l('You are [_1], your IP address ([_2]) will be also recorded
6(independantly from the ballot)', [ c.session.mail, c.req.address ]) | html %]
7</p>
8[% END %]
9
10<div id="ballot" class="ballot">
11<form action="[% c.uri_for(poll.uid) %]" method="POST">
12<p><b>Vote: [% poll.info('label') | html %]</b></p>
13[% IF c.req.param('ballot') %]
14<p>[% l('Confirm your vote') %]</p>
15[% ELSE %]
16[% IF vote_error %]<p class="alert">[% l('Error:') _ ' ' %][% vote_error %]</p>[% END %]
17<p>[% poll.info('description') | html | html_line_break %]</p>
18<p>[% l('[_1] possibles choices', poll.info('choice_count')) %] </p>
19[% END %]
20<hr>
21[% IF c.req.param('ballot') %]
22
23[% FOREACH ch = c.req.param('sbal') %]
24[% choices.$ch | html %]
25<input type="hidden" name="sbal" value="[% ch %]">
26<br>
27[% END %]
28[% FOREACH ch = c.req.param('fsbal') %]
29[% ch | html %]<br>
30<input type="hidden" name="fsbal" value="[% ch %]">
31[% END %]
32[% FOREACH ch = c.req.param('esbal') %]
33[% ch | html %]<br>
34<input type="hidden" name="esbal" value="[% ch %]">
35[% END %]
36[% IF ! c.req.param('fsbal').size && ! c.req.param('sbal').size && ! c.req.param('esbal').size %]
37<i>Vote blanc</i><br>
38[% END %]
39
40<hr>
41
42<p class="warning">[% l('Your vote will be final after validation') %]</p>
43<p><input type="submit" name="confirm" value="[% l('Validate') %]">
44<input type="submit" name="Modify" value="[% l('Modify my vote') %]"></p>
45</form>
46
47[% INCLUDE infoip %]
48
49[% ELSE %]
50
51[% INCLUDE 'includes/ballot_form.tt' b_form_url = c.uri_for(poll.uid) %]
52
53[% INCLUDE infoip %]
54
55<p>[% l('Your vote will be registered only after validation') %]</p>
56[% END %]
57</div>
Note: See TracBrowser for help on using the repository browser.