mirror of
https://github.com/derf/travelynx
synced 2024-12-04 18:29:11 +00:00
turn force checkout into a proper button
This commit is contained in:
parent
74f2132c2e
commit
628a5c705b
1 changed files with 10 additions and 4 deletions
|
@ -191,9 +191,7 @@
|
||||||
% if (defined $journey->{arrival_countdown} and $journey->{arrival_countdown} <= 0) {
|
% if (defined $journey->{arrival_countdown} and $journey->{arrival_countdown} <= 0) {
|
||||||
<p style="margin-top: 2ex;">
|
<p style="margin-top: 2ex;">
|
||||||
Der automatische Checkout erfolgt wegen gelegentlich veralteter
|
Der automatische Checkout erfolgt wegen gelegentlich veralteter
|
||||||
IRIS-Daten erst etwa zehn Minuten nach der Ankunft. <a
|
IRIS-Daten erst etwa zehn Minuten nach der Ankunft.
|
||||||
class="action-checkout"
|
|
||||||
data-station="<%= $journey->{arr_name}%>">Jetzt auschecken</a>.
|
|
||||||
</p>
|
</p>
|
||||||
% }
|
% }
|
||||||
% elsif (not $journey->{arr_name}) {
|
% elsif (not $journey->{arr_name}) {
|
||||||
|
@ -217,7 +215,15 @@
|
||||||
<a class="action-undo blue-text" data-id="in_transit">
|
<a class="action-undo blue-text" data-id="in_transit">
|
||||||
<i class="material-icons left">undo</i> Rückgängig
|
<i class="material-icons left">undo</i> Rückgängig
|
||||||
</a>
|
</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';
|
% my $attrib = 'im';
|
||||||
% if ($journey->{train_type} =~ m{ ^ (?: S | RB ) $ }x) {
|
% if ($journey->{train_type} =~ m{ ^ (?: S | RB ) $ }x) {
|
||||||
% $attrib = 'in der';
|
% $attrib = 'in der';
|
||||||
|
|
Loading…
Reference in a new issue