summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
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>