Changeset 229 for trunk/root/templates


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

Legend:

Unmodified
Added
Removed
  • 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.