[% poll = c.model('Vote').poll(voteid) %] [% INCLUDE 'includes/admin_menu.tt' %] [% IF poll.status() != 'AFTER' %]

[% l('add a vote') %]

[% l('Name:') _ ' ' %]
[% l('Email address:') _ ' ' %]

Import voters list...

[% IF poll.status == 'BEFORE' %] [% l('delete the list of voters') %]
[% END %]

[% l('Send password to voters') %]

[% IF poll.info.hend %]
[% l('Email language') %]: [% INCLUDE 'includes/locale_select.tt' %]
[% ELSE %] [% l('Poll date must be setup before announcing poll to voters') %] [% END %]
[% END %]
[% IF NOT poll.voting_count %]

[% l('No subscribed voters') %]

[% ELSE %] [% FOREACH votingkey = poll.voting_keys %] [% voting = poll.voting(votingkey) %] [% IF loop.first %] [% END %] [% IF NOT voting.info.date %] [% IF poll.status != 'AFTER' %] [% END %] [% END %] [% IF NOT voting.info.date %] [% ELSE %] [% END %] [% IF loop.last %]
[% voting.label | html %] [% voting.info.mail | html %] [% IF voting.info.passwd %][% l('password sent') %][% END %] [% IF poll.status != 'AFTER' %] [% END %] [% voting.info.date %]
[% END %] [% END %][% # FOREACH %] [% END %][% # IF NOT voting %]