summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-09-12 18:07:21 +0200
committerDaniel Friesel <derf@finalrewind.org>2019-09-12 18:07:21 +0200
commit0822cfc993ff44605210b6b771cd4558c1a65aef (patch)
treef17b3ae7aceddb59ecb913c35c78ef1e9d2f03c5 /templates
parent8c160f68540d4450db97c2dd6dcda05a67189d9f (diff)
add auto-generated passenger rights forms1.9.0
Diffstat (limited to 'templates')
-rw-r--r--templates/changelog.html.ep13
-rw-r--r--templates/journey.html.ep12
2 files changed, 25 insertions, 0 deletions
diff --git a/templates/changelog.html.ep b/templates/changelog.html.ep
index e511100..aa7c6e6 100644
--- a/templates/changelog.html.ep
+++ b/templates/changelog.html.ep
@@ -2,6 +2,19 @@
<div class="row">
<div class="col s12 m1 l1">
+ 1.9
+ </div>
+ <div class="col s12 m11 l11">
+ <p>
+ <i class="material-icons left">add</i> Generierung vorausgefüllter
+ Fahrgastrechteformulare bei Zugausfällen und Verspätungen ab 60
+ Minuten.
+ </p>
+ </div>
+</div>
+
+<div class="row">
+ <div class="col s12 m1 l1">
1.8
</div>
<div class="col s12 m11 l11">
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>