Changes in trunk/lib/Vote/Controller/Ballot.pm [20:22]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Vote/Controller/Ballot.pm
r20 r22 60 60 my %choices; 61 61 foreach ($vote->vote_choices($id)) { 62 $choices{$ _->{key}} = $_->{label};62 $choices{$vote->choice_info($_)->{key}} = $vote->choice_info($_)->{label}; 63 63 } 64 64 $c->stash->{choices} = { %choices }; … … 98 98 $c->req->address, 99 99 ); # TODO trap error 100 $c->forward('done'); 100 $c->stash->{template} = 'ballot/done.tt'; 101 $c->delete_session('Vote terminé'); 101 102 } 102 }103 104 sub done : Private {105 my ( $self, $c ) = @_;106 $c->response->body('Vote réussi.');107 $c->delete_session('Vote terminé');108 103 } 109 104
Note: See TracChangeset
for help on using the changeset viewer.