[% poll = c.model('Vote').poll(voteid) %] [% BLOCK infoip %]

[% l('You are [_1], your IP address ([_2]) will be also recorded (independantly from the ballot)', [ c.session.mail, c.req.address ]) | html %]

[% END %]

Vote: [% poll.info('label') | html %]

[% IF c.req.param('ballot') %]

[% l('Confirm your vote') %]

[% ELSE %] [% IF vote_error %]

[% l('Error:') _ ' ' %][% vote_error %]

[% END %]

[% poll.info('description') | html | html_line_break %]

[% l('[_1] possibles choices', poll.info('choice_count')) %]

[% END %]
[% IF c.req.param('ballot') %] [% FOREACH ch = c.req.param('sbal') %] [% choices.$ch | html %]
[% END %] [% FOREACH ch = c.req.param('fsbal') %] [% ch | html %]
[% END %] [% FOREACH ch = c.req.param('esbal') %] [% ch | html %]
[% END %] [% IF ! c.req.param('fsbal').size && ! c.req.param('sbal').size && ! c.req.param('esbal').size %] Vote blanc
[% END %]

[% l('Your vote will be final after validation') %]

[% INCLUDE infoip %] [% ELSE %] [% INCLUDE 'includes/ballot_form.tt' b_form_url = c.uri_for(poll.uid) %] [% INCLUDE infoip %]

[% l('Your vote will be registered only after validation') %]

[% END %]