Changeset 229


Ignore:
Timestamp:
04/21/09 01:43:15 (15 years ago)
Author:
nanardon
Message:
  • add a procedure field to not overload description
Location:
trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Vote/Controller/Admin.pm

    r226 r229  
    7474                map { $_ => ($c->req->param($_) || undef) } 
    7575                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) 
    7778            ) and $poll->commit; 
    7879        } elsif ($c->req->param('encrypted')) { 
  • trunk/root/latex/includes/info.tt

    r227 r229  
    55\section{Description du vote} 
    66 
    7 [%- poll.info('description') -%] 
     7[% IF poll.info('description') -%] 
     8\paragraph{Description:} 
    89 
     10[% poll.info('description') %] 
     11[%- END -%] 
    912 
    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') -%] 
     21pour [% poll.info('elected_count') %] élu(s)[%- END -%]. 
    1122 
    1223Etait candidats: 
     
    2334[%- END -%] 
    2435[%- END -%] 
     36 
    2537 
    2638Nombre d'électeurs: [% poll.voting_count %]. 
  • trunk/root/mail/voting_passwd.tt

    r227 r229  
    22Vous êtes convié à participer a ce vote: 
    33 
     4[% poll.info.label %] 
     5 
     6-- 
     7À l'url: [% c.uri_for('/ballot', poll.uid) %] 
     8Votre identifiant est: [% mail %] 
     9Votre mot de passe est: [% passwd %] 
     10 
     11[% IF poll.info.dstart && poll.info.dstart -%] 
     12Vous pourrez voter entre le [% poll.info.dstart %] [% poll.info.hstart %] 
     13et le [% poll.info.dend %] [% poll.info.hend %] 
     14[%- END %] 
     15 
     16Conservez précieusement ces identifiants, il ne vous seront pas retransmits. 
     17 
     18Information concernant le vote: 
     19 
     20[% IF poll.info('description') %] 
     21[% poll.info('description') %] 
    422-------- 
    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') %] 
    926-------- 
    1027[%- END %] 
    1128 
    12 Vous pourrez voter 
    13 [% 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. 
    2629 
    2730Cordialement. 
    28 EOF 
  • trunk/root/templates/admin/includes/poll_settings.tt

    r227 r229  
    77<form action="[% c.uri_for(poll.uid) %]" method="POST"> 
    88 
    9 Label: <input type="text" name="label" value="[% c.req.param('label') || poll.info('label') | html %]"> 
     9Nom:<br><input type="text" name="label" value="[% c.req.param('label') || poll.info('label') | html %]"> 
    1010<br> 
    1111Description:<br> 
    1212<textarea name="description" cols="60" rows="4">[% c.req.param('description') || poll.info('description') | html %]</textarea> 
     13<br> 
     14RÚglement:<br> 
     15<textarea name="procedure" cols="60" rows="4">[% c.req.param('procedure') || poll.info('procedure') | html %]</textarea> 
    1316<br> 
    1417<hr> 
  • trunk/root/templates/ballot/default.tt

    r227 r229  
    4040[% ELSE %] 
    4141 
    42  
    4342[% INCLUDE 'includes/ballot_form.tt' %] 
    4443 
  • trunk/root/templates/includes/ballot_form.tt

    r227 r229  
    11<!-- $Id$ --> 
    22[% 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 %] 
    311 
    412<!-- $Id$ --> 
     
    917[% choice.info.label | html %]<br> 
    1018[% END %] 
     19 
     20<p>Vous devez faire [% poll.info('choice_count') %] choix 
     21[%- IF poll.info('choice_count') != poll.info('elected_count') -%] 
     22pour [% poll.info('elected_count') %] élu(s)[%- END -%].</p> 
    1123 
    1224[% count = 0 %] 
     
    2739[% count = 0 %] 
    2840[% WHILE count < poll.info('free_choice') %] 
     41[% "<p>Choi(x) libre(s)</p>" IF count == 0 %] 
    2942<input type="text" name="fsbal" value="[% fsbal.$count %]"><br> 
    3043[% count = count + 1 %] 
  • trunk/root/templates/includes/poll.tt

    r227 r229  
    55<div style="float: left; width: 70%;"> 
    66<p id="poll_label">[% poll.info('label') | html %]</p> 
     7[% IF poll.info('description') %] 
    78<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') -%] 
     15pour [% poll.info('elected_count') %] élu(s)[%- END -%].</p> 
    816[% IF poll.info('dstart') && poll.info('dend') %] 
    917<p>Scrutin ouvert du <b>[% poll.info('dstart') _ ' ' _ poll.info('hstart') | html %]</b> au 
Note: See TracChangeset for help on using the changeset viewer.