- Timestamp:
- 03/17/09 02:24:39 (15 years ago)
- Location:
- trunk/lib/Vote/Controller
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Vote/Controller/Admin.pm
r43 r49 25 25 my ( $self, $c ) = @_; 26 26 27 $c->res->redirect($c->uri_for('/')); 27 28 } 28 29 … … 35 36 36 37 if (!$c->model('Vote')->auth_poll($id, $password)) { 38 $c->stash->{page}{title} = $c->model('Vote')->vote_info($id)->{label} . ': Login d\'administration'; 37 39 $c->session->{vpassword} = undef; 38 40 $c->stash->{template} = 'admin/login.tt'; … … 41 43 42 44 $c->session->{vpassword} = $password; 45 46 $c->stash->{page}{title} = $c->model('Vote')->vote_info($id)->{label} . ': Administration'; 43 47 44 48 if ($vote->vote_status($id) eq 'BEFORE') { -
trunk/lib/Vote/Controller/Ballot.pm
r38 r49 24 24 sub index : Private { 25 25 my ( $self, $c ) = @_; 26 27 $c->res->redirect($c->uri_for('/')); 26 28 } 27 29 … … 40 42 41 43 if (!$c->model('Vote')->auth_voting($id, $mail, $password)) { 44 $c->stash->{page}{title} = $c->model('Vote')->vote_info($id)->{label} . ': Login'; 42 45 $c->delete_session('invalid user/pass'); 43 46 $c->stash->{template} = 'ballot/login.tt'; … … 47 50 $c->session->{mail} = $mail; 48 51 $c->session->{password} = $password; 52 53 $c->stash->{page}{title} = $c->model('Vote')->vote_info($id)->{label} . ': Bulletin'; 49 54 50 55 # login succeed, but those this user has already voted -
trunk/lib/Vote/Controller/Newpoll.pm
r44 r49 25 25 my ( $self, $c ) = @_; 26 26 27 $c->stash->{page}{title} = 'Créer un nouveau vote'; 27 28 if ($c->req->param('mail')) { 28 29 $c->model('Vote')->create_poll_request( … … 41 42 $c->stash->{reqid} = $id; 42 43 44 $c->stash->{page}{title} = 'Confirmer la création d\'un nouveau vote'; 43 45 if ($c->req->param('passwd')) { 44 46 my $pid = $c->model('Vote')->poll_from_request($id, $c->req->param('passwd')); -
trunk/lib/Vote/Controller/Vote.pm
r3 r49 32 32 33 33 $c->stash->{voteid} = $id; 34 $c->stash->{page}{title} = 'Vote: ' . $c->model('Vote')->vote_info($id)->{label}; 34 35 } 35 36
Note: See TracChangeset
for help on using the changeset viewer.