From d9d3aac79200ca7d896d753c897e1651517ecf36 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 19 May 2019 10:32:57 +0200 Subject: allow checkin from connections view --- templates/_connections.html.ep | 60 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 templates/_connections.html.ep (limited to 'templates/_connections.html.ep') diff --git a/templates/_connections.html.ep b/templates/_connections.html.ep new file mode 100644 index 0000000..1c7f003 --- /dev/null +++ b/templates/_connections.html.ep @@ -0,0 +1,60 @@ +Verbindungen +% if ($checkin_from) { +

Zug auswählen zum Einchecken mit Zielwahl.

+% } +
+ % for my $res (@{$connections}) { + % my ($train, $via) = @{$res}; + + + + + + % } +
+ % if ($checkin_from) { + <%= $train->line %> + % } + % else { + %= $train->line + % } + + % if ($checkin_from) { + <%= $via %> + % } + % else { + %= $via + % } + <%= $train->departure->strftime('%H:%M') %> + % if ($train->departure_delay) { + %= sprintf('(%+d)', $train->departure_delay) + % } +
Gleis <%= $train->platform %>
+
+ % for my $res (@{$connections}) { + % my ($train, $via) = @{$res}; + + + + + + % } +
+ % if ($checkin_from) { + <%= $train->line %> + % } + % else { + %= $train->line + % } + + % if ($checkin_from) { + <%= $via %> + % } + % else { + %= $via + % } + <%= $train->departure->strftime('%H:%M') %> + % if ($train->departure_delay) { + %= sprintf('(%+d)', $train->departure_delay) + % } + Gleis <%= $train->platform %>
-- cgit v1.2.3