39 |
show('/edit'); |
show('/edit'); |
40 |
}; |
}; |
41 |
|
|
42 |
|
=head2 /import/42 |
43 |
|
|
44 |
|
import transport with request number C<42> |
45 |
|
|
46 |
|
=cut |
47 |
|
|
48 |
|
on qr'^/import/(\d+)', run { |
49 |
|
my $id = $1; |
50 |
|
my $t = Transports::Model::Transport->new(); |
51 |
|
$t->load_by_cols( id => $id ); |
52 |
|
Jifty->web->redirect( '/transports' ) unless ( $t->id ); |
53 |
|
|
54 |
|
set transport => Jifty->web->new_action( class => 'UpdateTransport', record => $t ); |
55 |
|
show('/import'); |
56 |
|
}; |
57 |
|
|
58 |
=head1 User operations |
=head1 User operations |
59 |
|
|
60 |
=head2 /user/42 |
=head2 /user/42 |