summaryrefslogtreecommitdiff
path: root/templates/journey.html.ep
diff options
context:
space:
mode:
Diffstat (limited to 'templates/journey.html.ep')
-rw-r--r--templates/journey.html.ep12
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>