diff options
author | Daniel Friesel <derf@finalrewind.org> | 2019-09-12 18:23:23 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2019-09-12 18:23:23 +0200 |
commit | c891da97fbb185e42121a0ca533282fc7c028573 (patch) | |
tree | 876c2cc51f13dfe357d24b1c238f088d4c74761b /templates/journey.html.ep | |
parent | 0822cfc993ff44605210b6b771cd4558c1a65aef (diff) |
Explicitly set passenger rights form filename1.9.1
Diffstat (limited to 'templates/journey.html.ep')
-rw-r--r-- | templates/journey.html.ep | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/journey.html.ep b/templates/journey.html.ep index 440eec6..9b7ad9c 100644 --- a/templates/journey.html.ep +++ b/templates/journey.html.ep @@ -33,7 +33,8 @@ % } % 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;"> - %= 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 %= hidden_field id => $journey->{id} <button class="btn waves-effect waves-light grey darken-3" type="submit" name="action" value="generate"> |