connections: do not allow checkin while still in transit

fixes bug introduced by f01f108f94
This commit is contained in:
Daniel Friesel 2022-08-17 21:45:43 +02:00
parent e01e6a43d1
commit 5bf1318cf5
No known key found for this signature in database
GPG key ID: 100D5BFB5166E005

View file

@ -7,7 +7,12 @@
% $td_class = 'cancelled';
% $link_class = 'action-cancelled-from';
% }
<tr class="<%= $link_class %>" data-station="<%= $train->station_uic %>" data-train="<%= $train->train_id %>" data-dest="<%= $via %>">
% if ($checkin_from) {
<tr class="<%= $link_class %>" data-station="<%= $train->station_uic %>" data-train="<%= $train->train_id %>" data-dest="<%= $via %>">
% }
% else {
<tr>
% }
<td class="<%= $td_class %>">
% if ($checkin_from) {
<a><%= $train->line %></a>
@ -70,7 +75,12 @@
% $td_class = 'cancelled';
% $link_class = 'action-cancelled-from';
% }
<tr class="<%= $link_class %>" data-station="<%= $train->station_uic %>" data-train="<%= $train->train_id %>" data-dest="<%= $via %>" data-tr="4">
% if ($checkin_from) {
<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 %>">
% if ($checkin_from) {
<a><%= $train->line %></a>