connections: do not allow checkin while still in transit
fixes bug introduced by f01f108f94
This commit is contained in:
parent
e01e6a43d1
commit
5bf1318cf5
1 changed files with 12 additions and 2 deletions
|
@ -7,7 +7,12 @@
|
||||||
% $td_class = 'cancelled';
|
% $td_class = 'cancelled';
|
||||||
% $link_class = 'action-cancelled-from';
|
% $link_class = 'action-cancelled-from';
|
||||||
% }
|
% }
|
||||||
|
% if ($checkin_from) {
|
||||||
<tr class="<%= $link_class %>" data-station="<%= $train->station_uic %>" data-train="<%= $train->train_id %>" data-dest="<%= $via %>">
|
<tr class="<%= $link_class %>" data-station="<%= $train->station_uic %>" data-train="<%= $train->train_id %>" data-dest="<%= $via %>">
|
||||||
|
% }
|
||||||
|
% else {
|
||||||
|
<tr>
|
||||||
|
% }
|
||||||
<td class="<%= $td_class %>">
|
<td class="<%= $td_class %>">
|
||||||
% if ($checkin_from) {
|
% if ($checkin_from) {
|
||||||
<a><%= $train->line %></a>
|
<a><%= $train->line %></a>
|
||||||
|
@ -70,7 +75,12 @@
|
||||||
% $td_class = 'cancelled';
|
% $td_class = 'cancelled';
|
||||||
% $link_class = 'action-cancelled-from';
|
% $link_class = 'action-cancelled-from';
|
||||||
% }
|
% }
|
||||||
|
% if ($checkin_from) {
|
||||||
<tr class="<%= $link_class %>" data-station="<%= $train->station_uic %>" data-train="<%= $train->train_id %>" data-dest="<%= $via %>" data-tr="4">
|
<tr class="<%= $link_class %>" data-station="<%= $train->station_uic %>" data-train="<%= $train->train_id %>" data-dest="<%= $via %>" data-tr="4">
|
||||||
|
% }
|
||||||
|
% else {
|
||||||
|
<tr>
|
||||||
|
% }
|
||||||
<td class="<%= $td_class %>">
|
<td class="<%= $td_class %>">
|
||||||
% if ($checkin_from) {
|
% if ($checkin_from) {
|
||||||
<a><%= $train->line %></a>
|
<a><%= $train->line %></a>
|
||||||
|
|
Loading…
Reference in a new issue