Explicitly set passenger rights form filename
This commit is contained in:
parent
0822cfc993
commit
c891da97fb
2 changed files with 3 additions and 2 deletions
|
@ -2906,7 +2906,7 @@ sub startup {
|
||||||
$authed_r->post('/account/insight')->to('account#insight');
|
$authed_r->post('/account/insight')->to('account#insight');
|
||||||
$authed_r->post('/journey/add')->to('traveling#add_journey_form');
|
$authed_r->post('/journey/add')->to('traveling#add_journey_form');
|
||||||
$authed_r->post('/journey/edit')->to('traveling#edit_journey');
|
$authed_r->post('/journey/edit')->to('traveling#edit_journey');
|
||||||
$authed_r->post('/journey/passenger_rights')
|
$authed_r->post('/journey/passenger_rights/*filename')
|
||||||
->to('passengerrights#generate');
|
->to('passengerrights#generate');
|
||||||
$authed_r->post('/account/password')->to('account#change_password');
|
$authed_r->post('/account/password')->to('account#change_password');
|
||||||
$authed_r->post('/account/mail')->to('account#change_mail');
|
$authed_r->post('/account/mail')->to('account#change_mail');
|
||||||
|
|
|
@ -33,7 +33,8 @@
|
||||||
% }
|
% }
|
||||||
% if ($journey->{cancelled} or ($journey->{rt_arrival} and ($journey->{rt_arrival}->epoch - $journey->{sched_arrival}->epoch) >= 3600)) {
|
% if ($journey->{cancelled} or ($journey->{rt_arrival} and ($journey->{rt_arrival}->epoch - $journey->{sched_arrival}->epoch) >= 3600)) {
|
||||||
<div style="text-align: center; margin-bottom: 1em;">
|
<div style="text-align: center; margin-bottom: 1em;">
|
||||||
%= form_for 'journeypassenger_rights' => begin
|
% my $form_target = sprintf('/journey/passenger_rights/FGR %s %s %s.pdf', $journey->{sched_departure}->ymd, $journey->{type}, $journey->{no});
|
||||||
|
%= form_for $form_target => (method => 'POST') => begin
|
||||||
%= csrf_field
|
%= csrf_field
|
||||||
%= hidden_field id => $journey->{id}
|
%= hidden_field id => $journey->{id}
|
||||||
<button class="btn waves-effect waves-light grey darken-3" type="submit" name="action" value="generate">
|
<button class="btn waves-effect waves-light grey darken-3" type="submit" name="action" value="generate">
|
||||||
|
|
Loading…
Reference in a new issue