Changeset 229
- Timestamp:
- 04/21/09 01:43:15 (15 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Vote/Controller/Admin.pm
r226 r229 74 74 map { $_ => ($c->req->param($_) || undef) } 75 75 grep { exists($c->req->params->{$_}) } 76 qw(label description start end choice_count free_choice elected_count elected_choice) 76 qw(label description start end choice_count 77 free_choice elected_count elected_choice procedure) 77 78 ) and $poll->commit; 78 79 } elsif ($c->req->param('encrypted')) { -
trunk/root/latex/includes/info.tt
r227 r229 5 5 \section{Description du vote} 6 6 7 [%- poll.info('description') -%] 7 [% IF poll.info('description') -%] 8 \paragraph{Description:} 8 9 10 [% poll.info('description') %] 11 [%- END -%] 9 12 10 [% poll.info('choice_count') %] choix étaient à retenir. 13 [% IF poll.info('procedure') -%] 14 \paragraph{RÚglement:} 15 16 [% poll.info('procedure') %] 17 [%- END -%] 18 19 [% poll.info('choice_count') %] choix à faire 20 [%- IF poll.info('choice_count') != poll.info('elected_count') -%] 21 pour [% poll.info('elected_count') %] élu(s)[%- END -%]. 11 22 12 23 Etait candidats: … … 23 34 [%- END -%] 24 35 [%- END -%] 36 25 37 26 38 Nombre d'électeurs: [% poll.voting_count %]. -
trunk/root/mail/voting_passwd.tt
r227 r229 2 2 Vous êtes convié à participer a ce vote: 3 3 4 [% poll.info.label %] 5 6 -- 7 à l'url: [% c.uri_for('/ballot', poll.uid) %] 8 Votre identifiant est: [% mail %] 9 Votre mot de passe est: [% passwd %] 10 11 [% IF poll.info.dstart && poll.info.dstart -%] 12 Vous pourrez voter entre le [% poll.info.dstart %] [% poll.info.hstart %] 13 et le [% poll.info.dend %] [% poll.info.hend %] 14 [%- END %] 15 16 Conservez précieusement ces identifiants, il ne vous seront pas retransmits. 17 18 Information concernant le vote: 19 20 [% IF poll.info('description') %] 21 [% poll.info('description') %] 4 22 -------- 5 [% poll.info.label %] 6 -------- 7 [% IF poll.info.description %] 8 [% poll.info.description %] 23 [%- END %] 24 [% IF poll.info('procedure') %] 25 [% poll.info('procedure') %] 9 26 -------- 10 27 [%- END %] 11 28 12 Vous pourrez voter13 [% IF poll.info.dstart && poll.info.dstart -%]14 entre le [% poll.info.dstart %] [% poll.info.hstart %]15 et le [% poll.info.dend %] [% poll.info.hend %]16 [%- END %]17 à l'adresse:18 19 [% c.uri_for('/ballot', poll.uid) %]20 21 --22 Votre identifiant est: [% mail %]23 Votre mot de passe est: [% passwd %]24 25 Conservez précieusement ces identifiants, il ne vous seront pas retransmits.26 29 27 30 Cordialement. 28 EOF -
trunk/root/templates/admin/includes/poll_settings.tt
r227 r229 7 7 <form action="[% c.uri_for(poll.uid) %]" method="POST"> 8 8 9 Label:<input type="text" name="label" value="[% c.req.param('label') || poll.info('label') | html %]">9 Nom:<br><input type="text" name="label" value="[% c.req.param('label') || poll.info('label') | html %]"> 10 10 <br> 11 11 Description:<br> 12 12 <textarea name="description" cols="60" rows="4">[% c.req.param('description') || poll.info('description') | html %]</textarea> 13 <br> 14 RÚglement:<br> 15 <textarea name="procedure" cols="60" rows="4">[% c.req.param('procedure') || poll.info('procedure') | html %]</textarea> 13 16 <br> 14 17 <hr> -
trunk/root/templates/ballot/default.tt
r227 r229 40 40 [% ELSE %] 41 41 42 43 42 [% INCLUDE 'includes/ballot_form.tt' %] 44 43 -
trunk/root/templates/includes/ballot_form.tt
r227 r229 1 1 <!-- $Id$ --> 2 2 [% poll = c.model('Vote').poll(voteid) %] 3 4 [% IF poll.info('procedure') %] 5 [% poll.info('procedure') | html %] 6 <hr> 7 [% ELSIF poll.info('description') %] 8 [% poll.info('description') | html %] 9 <hr> 10 [% END %] 3 11 4 12 <!-- $Id$ --> … … 9 17 [% choice.info.label | html %]<br> 10 18 [% END %] 19 20 <p>Vous devez faire [% poll.info('choice_count') %] choix 21 [%- IF poll.info('choice_count') != poll.info('elected_count') -%] 22 pour [% poll.info('elected_count') %] élu(s)[%- END -%].</p> 11 23 12 24 [% count = 0 %] … … 27 39 [% count = 0 %] 28 40 [% WHILE count < poll.info('free_choice') %] 41 [% "<p>Choi(x) libre(s)</p>" IF count == 0 %] 29 42 <input type="text" name="fsbal" value="[% fsbal.$count %]"><br> 30 43 [% count = count + 1 %] -
trunk/root/templates/includes/poll.tt
r227 r229 5 5 <div style="float: left; width: 70%;"> 6 6 <p id="poll_label">[% poll.info('label') | html %]</p> 7 [% IF poll.info('description') %] 7 8 <p>[% poll.info('description') | html | html_line_break %]</p> 9 [% END %] 10 [% IF poll.info('procedure') %] 11 <p>[% poll.info('procedure') | html | html_line_break %]</p> 12 [% END %] 13 <p>[% poll.info('choice_count') %] choix est/sont à faire 14 [%- IF poll.info('choice_count') != poll.info('elected_count') -%] 15 pour [% poll.info('elected_count') %] élu(s)[%- END -%].</p> 8 16 [% IF poll.info('dstart') && poll.info('dend') %] 9 17 <p>Scrutin ouvert du <b>[% poll.info('dstart') _ ' ' _ poll.info('hstart') | html %]</b> au
Note: See TracChangeset
for help on using the changeset viewer.