summaryrefslogtreecommitdiff
path: root/templates/_cancelled.html.ep
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-04-23 22:27:13 +0200
committerDaniel Friesel <derf@finalrewind.org>2019-04-23 22:27:13 +0200
commit6c1cae86f4fa343b4f165f80a4e42eba37fa917c (patch)
tree273fcc63fd249a766b39855f5dc3f60b4dcecb26 /templates/_cancelled.html.ep
parentffaa0c44a78bb4bab632fcb76b668215da4c0a82 (diff)
Primitive auto-refresh of current journey status
Todo: Redirect user to destination station upon arrival
Diffstat (limited to 'templates/_cancelled.html.ep')
-rw-r--r--templates/_cancelled.html.ep27
1 files changed, 27 insertions, 0 deletions
diff --git a/templates/_cancelled.html.ep b/templates/_cancelled.html.ep
new file mode 100644
index 0000000..d35c849
--- /dev/null
+++ b/templates/_cancelled.html.ep
@@ -0,0 +1,27 @@
+<div class="card yellow lighten-4">
+ <div class="card-content">
+ <span class="card-title">Zugausfall dokumentieren</span>
+ <p>Prinzipiell wärest du nun eingecheckt in
+ <%= $status->{train_type} %> <%= $status->{train_no} %>
+ ab <%= $status->{station_name} %>, doch dieser Zug fällt aus.
+ </p>
+ <p>Falls du den Zugausfall z.B. für ein Fahrgastrechteformular
+ dokumentieren möchtest, wähle bitte jetzt deine geplante
+ Zielstation aus. Achtung: Momentan wird dabei keine
+ Soll-Ankunftszeit gespeichert, das zu beheben steht auf
+ der Todoliste.</p>
+ <table>
+ <tbody>
+ % my $is_after = 0;
+ % for my $station (@{$status->{route_after}}) {
+ <tr><td><a class="action-cancelled-to" data-station="<%= $station %>"><%= $station %></a></td></tr>
+ % }
+ </tbody>
+ </table>
+ </div>
+ <div class="card-action">
+ <a class="action-undo" data-id="in_transit">
+ <i class="material-icons">undo</i> Checkinversuch Rückgängig?
+ </a>
+ </div>
+</div>