Changeset 49


Ignore:
Timestamp:
03/17/09 02:24:39 (15 years ago)
Author:
nanardon
Message:
  • add pages titles
Location:
trunk
Files:
7 edited

Legend:

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

    r43 r49  
    2525    my ( $self, $c ) = @_; 
    2626 
     27    $c->res->redirect($c->uri_for('/')); 
    2728} 
    2829 
     
    3536 
    3637    if (!$c->model('Vote')->auth_poll($id, $password)) { 
     38        $c->stash->{page}{title} = $c->model('Vote')->vote_info($id)->{label} . ': Login d\'administration'; 
    3739        $c->session->{vpassword} = undef; 
    3840        $c->stash->{template} = 'admin/login.tt'; 
     
    4143 
    4244    $c->session->{vpassword} = $password; 
     45 
     46    $c->stash->{page}{title} = $c->model('Vote')->vote_info($id)->{label} . ': Administration'; 
    4347 
    4448    if ($vote->vote_status($id) eq 'BEFORE') { 
  • trunk/lib/Vote/Controller/Ballot.pm

    r38 r49  
    2424sub index : Private { 
    2525    my ( $self, $c ) = @_; 
     26 
     27    $c->res->redirect($c->uri_for('/')); 
    2628} 
    2729 
     
    4042 
    4143    if (!$c->model('Vote')->auth_voting($id, $mail, $password)) { 
     44        $c->stash->{page}{title} = $c->model('Vote')->vote_info($id)->{label} . ': Login'; 
    4245        $c->delete_session('invalid user/pass'); 
    4346        $c->stash->{template} = 'ballot/login.tt'; 
     
    4750    $c->session->{mail} = $mail; 
    4851    $c->session->{password} = $password; 
     52 
     53    $c->stash->{page}{title} = $c->model('Vote')->vote_info($id)->{label} . ': Bulletin'; 
    4954 
    5055    # login succeed, but those this user has already voted 
  • trunk/lib/Vote/Controller/Newpoll.pm

    r44 r49  
    2525    my ( $self, $c ) = @_; 
    2626 
     27    $c->stash->{page}{title} = 'Créer un nouveau vote'; 
    2728    if ($c->req->param('mail')) { 
    2829        $c->model('Vote')->create_poll_request( 
     
    4142    $c->stash->{reqid} = $id; 
    4243 
     44    $c->stash->{page}{title} = 'Confirmer la création d\'un nouveau vote'; 
    4345    if ($c->req->param('passwd')) { 
    4446        my $pid = $c->model('Vote')->poll_from_request($id, $c->req->param('passwd')); 
  • trunk/lib/Vote/Controller/Vote.pm

    r3 r49  
    3232 
    3333    $c->stash->{voteid} = $id; 
     34    $c->stash->{page}{title} = 'Vote: ' . $c->model('Vote')->vote_info($id)->{label}; 
    3435} 
    3536 
  • trunk/root/templates/newpoll/default.tt

    r47 r49  
    1 <div id="poll_confirm"> 
     1<div id="poll_confirm" class="page_box"> 
    22<form action="[% c.uri_for(reqid) %]"> 
    33[% c.model('Vote').poll_request_info(reqid).label | html %]<br> 
  • trunk/root/templates/newpoll/index.tt

    r47 r49  
    1 <div id="poll_request"> 
     1<div id="poll_request" class="page_box"> 
    22<p>Créer un nouveau vote:</p> 
    33 
  • trunk/root/templates/vote/default.tt

    r47 r49  
    77[% INCLUDE 'includes/poll_running.tt' %] 
    88[% CASE 'BEFORE' %] 
    9 <p>Avant</p> 
     9<div class="page_box"> 
     10<p>Ce scrutin n'est pas encore ouvert.</p> 
     11</div> 
    1012[% CASE 'AFTER' %] 
    1113[% INCLUDE 'includes/poll_results.tt' %] 
Note: See TracChangeset for help on using the changeset viewer.