diff options
author | Daniel Friesel <derf@finalrewind.org> | 2019-08-25 09:00:59 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2019-08-25 09:00:59 +0200 |
commit | 628a5c705b94f0cd2cad952082d278fc5e765a0e (patch) | |
tree | e8eef5f9c1faadfc097ed91c8f645e0eca4d974b /templates/_checked_in.html.ep | |
parent | 74f2132c2e5b2637363e3885d71a1d917dbfa746 (diff) |
turn force checkout into a proper button
Diffstat (limited to 'templates/_checked_in.html.ep')
-rw-r--r-- | templates/_checked_in.html.ep | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/templates/_checked_in.html.ep b/templates/_checked_in.html.ep index af9e71a..a1ac08e 100644 --- a/templates/_checked_in.html.ep +++ b/templates/_checked_in.html.ep @@ -191,9 +191,7 @@ % if (defined $journey->{arrival_countdown} and $journey->{arrival_countdown} <= 0) { <p style="margin-top: 2ex;"> Der automatische Checkout erfolgt wegen gelegentlich veralteter - IRIS-Daten erst etwa zehn Minuten nach der Ankunft. <a - class="action-checkout" - data-station="<%= $journey->{arr_name}%>">Jetzt auschecken</a>. + IRIS-Daten erst etwa zehn Minuten nach der Ankunft. </p> % } % elsif (not $journey->{arr_name}) { @@ -217,7 +215,15 @@ <a class="action-undo blue-text" data-id="in_transit"> <i class="material-icons left">undo</i> Rückgängig </a> - % if ($journey->{arr_name}) { + % if (defined $journey->{arrival_countdown} and $journey->{arrival_countdown} <= 0) { + <a + class="action-checkout right" + data-station="<%= $journey->{arr_name}%>"> + <i class="material-icons left">done</i> + Jetzt auschecken + </a> + % } + % elsif ($journey->{arr_name}) { % my $attrib = 'im'; % if ($journey->{train_type} =~ m{ ^ (?: S | RB ) $ }x) { % $attrib = 'in der'; |