- Timestamp:
- 04/06/09 23:59:10 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Vote/Controller/Admin.pm
r167 r169 48 48 $vote->delete_choice($c->req->param('delch')) 49 49 and $vote->db->commit; 50 } elsif ($c->req->param(' label')) {50 } elsif ($c->req->param('pollparam')) { 51 51 if ($c->req->param('dstart')) { 52 52 $c->req->param('start', … … 62 62 $id, 63 63 map { $_ => ($c->req->param($_) || undef) } 64 grep { exists($c->req->params->{$_}) } 64 65 qw(label description start end choice_count free_choice) 65 66 ) and $vote->db->commit; … … 140 141 $c->forward('modify_poll'); 141 142 $c->stash->{page}{title} = $c->model('Vote')->vote_info($id)->{label} . ': Administration'; 142 143 144 143 } 145 144 … … 156 155 $c->forward('auth') or return; 157 156 $c->forward('modify_poll'); 158 $c->stash->{page}{title} = $c->model('Vote')->vote_info($id)->{label} . ': Administration'; 157 $c->stash->{page}{title} = $c->model('Vote')->vote_info( 158 $c->stash->{voteid} 159 )->{label} . ': Administration, liste des electeurs'; 160 } 161 162 sub ballot: LocalRegex('^(\d+)/ballot$') { 163 my ($self, $c, $id, @sub) = @_; 164 ($c->stash->{voteid}) = @{ $c->req->snippets || [] }; 165 my $vote = $c->model('Vote'); 166 167 $vote->vote_info($id) or do { 168 $c->res->redirect($c->uri_for('/')); 169 return; 170 }; 171 172 $c->forward('auth') or return; 173 $c->forward('modify_poll'); 174 $c->stash->{page}{title} = $c->model('Vote')->vote_info( 175 $c->stash->{voteid} 176 )->{label} . ': Administration, bulletin'; 159 177 } 160 178
Note: See TracChangeset
for help on using the changeset viewer.