declutter Checked In-panel
This commit is contained in:
parent
a40aa1936b
commit
74f2132c2e
1 changed files with 240 additions and 222 deletions
|
@ -1,4 +1,5 @@
|
||||||
<div class="card autorefresh">
|
<div class="autorefresh">
|
||||||
|
<div class="card">
|
||||||
<div class="card-content">
|
<div class="card-content">
|
||||||
<i class="material-icons small right sync-failed-marker grey-text" style="display: none;">sync_problem</i>
|
<i class="material-icons small right sync-failed-marker grey-text" style="display: none;">sync_problem</i>
|
||||||
<span class="card-title">Eingecheckt in <%= $journey->{train_type} %> <%= $journey->{train_no} %></span>
|
<span class="card-title">Eingecheckt in <%= $journey->{train_type} %> <%= $journey->{train_no} %></span>
|
||||||
|
@ -195,12 +196,8 @@
|
||||||
data-station="<%= $journey->{arr_name}%>">Jetzt auschecken</a>.
|
data-station="<%= $journey->{arr_name}%>">Jetzt auschecken</a>.
|
||||||
</p>
|
</p>
|
||||||
% }
|
% }
|
||||||
% elsif ($journey->{arr_name}) {
|
% elsif (not $journey->{arr_name}) {
|
||||||
<p style="margin-top: 2em;">Ziel ändern?</p>
|
|
||||||
% }
|
|
||||||
% else {
|
|
||||||
<p>Ziel wählen:</p>
|
<p>Ziel wählen:</p>
|
||||||
% }
|
|
||||||
<table>
|
<table>
|
||||||
<tbody>
|
<tbody>
|
||||||
% my $is_after = 0;
|
% my $is_after = 0;
|
||||||
|
@ -214,14 +211,6 @@
|
||||||
% }
|
% }
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
% if ($journey->{arr_name}) {
|
|
||||||
<p>
|
|
||||||
Falls das Backend ausgefallen ist oder der Zug aus anderen
|
|
||||||
Gründen verloren ging: <a class="action-checkout"
|
|
||||||
data-force="1" data-station="<%= $journey->{arr_name}
|
|
||||||
%>">Ohne Echtzeitdaten in <%= $journey->{arr_name} %>
|
|
||||||
auschecken</a>.
|
|
||||||
</p>
|
|
||||||
% }
|
% }
|
||||||
</div>
|
</div>
|
||||||
<div class="card-action">
|
<div class="card-action">
|
||||||
|
@ -244,3 +233,32 @@
|
||||||
% }
|
% }
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
% if ($journey->{arr_name}) {
|
||||||
|
<div class="card" style="margin-top: 3em;">
|
||||||
|
<div class="card-content">
|
||||||
|
<i class="material-icons small right sync-failed-marker grey-text" style="display: none;">sync_problem</i>
|
||||||
|
<span class="card-title">Ziel ändern?</span>
|
||||||
|
<table>
|
||||||
|
<tbody>
|
||||||
|
% my $is_after = 0;
|
||||||
|
% for my $station (@{$journey->{route_after}}) {
|
||||||
|
% if ($journey->{arr_name} and $station->[0] eq $journey->{arr_name}) {
|
||||||
|
<tr><td><b><a class="action-checkout" data-station="<%= $station->[0] %>"><%= $station->[0] %></a></b></td></tr>
|
||||||
|
% }
|
||||||
|
% else {
|
||||||
|
<tr><td><a class="action-checkout" data-station="<%= $station->[0] %>"><%= $station->[0] %></a></td></tr>
|
||||||
|
% }
|
||||||
|
% }
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
<p>
|
||||||
|
Falls das Backend ausgefallen ist oder der Zug aus anderen
|
||||||
|
Gründen verloren ging: <a class="action-checkout"
|
||||||
|
data-force="1" data-station="<%= $journey->{arr_name}
|
||||||
|
%>">Ohne Echtzeitdaten in <%= $journey->{arr_name} %>
|
||||||
|
auschecken</a>.
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
% }
|
||||||
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue