diff options
author | Daniel Friesel <derf@finalrewind.org> | 2019-09-12 18:07:21 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2019-09-12 18:07:21 +0200 |
commit | 0822cfc993ff44605210b6b771cd4558c1a65aef (patch) | |
tree | f17b3ae7aceddb59ecb913c35c78ef1e9d2f03c5 /templates/journey.html.ep | |
parent | 8c160f68540d4450db97c2dd6dcda05a67189d9f (diff) |
add auto-generated passenger rights forms1.9.0
Diffstat (limited to 'templates/journey.html.ep')
-rw-r--r-- | templates/journey.html.ep | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/templates/journey.html.ep b/templates/journey.html.ep index 343c178..440eec6 100644 --- a/templates/journey.html.ep +++ b/templates/journey.html.ep @@ -31,6 +31,18 @@ ∗ Daten wurden manuell eingetragen </p> % } + % 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 + %= csrf_field + %= hidden_field id => $journey->{id} + <button class="btn waves-effect waves-light grey darken-3" type="submit" name="action" value="generate"> + <i class="material-icons left">file_download</i> + Fahrgastrechte + </button> + %= end + </div> + % } <table class="striped"> <tr> <th scope="row">Zug</th> |