summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-03-08 18:02:18 +0100
committerDaniel Friesel <derf@finalrewind.org>2019-03-08 18:02:18 +0100
commit6e961420aa78b2131d640c6fe00541f9a0b0ebd9 (patch)
tree770089dc70516130c101bd96f9479f568aff5acd /templates
parentda4f532fb3f27cb7eac13ec7bad0c8c63618c3e9 (diff)
departures: Add hint (tap == checkin)
Diffstat (limited to 'templates')
-rw-r--r--templates/departures.html.ep59
1 files changed, 31 insertions, 28 deletions
diff --git a/templates/departures.html.ep b/templates/departures.html.ep
index be2c7cd..6a6f159 100644
--- a/templates/departures.html.ep
+++ b/templates/departures.html.ep
@@ -32,34 +32,37 @@
</div>
</div>
<div class="row">
- <table class="striped">
- <thead>
- <tr>
- <th>Zug</th>
- <th></th>
- <th>Abfahrt</th>
- </tr>
- </thead>
- <tbody>
- % for my $result (@{$results}) {
+ <div class="col s12">
+ Zug auswählen zum Einchecken.<br/>
+ <table class="striped">
+ <thead>
<tr>
- <td>
- <a class="action-checkin" data-station="<%= $ds100 %>" data-train="<%= $result->train_id %>">
- <%= $result->line %>
- </a>
- </td>
- <td>
- <a class="action-checkin" data-station="<%= $ds100 %>" data-train="<%= $result->train_id %>">
- <%= $result->destination %>
- </a>
- </td>
- <td><%= $result->departure->strftime('%H:%M') %>
- % if ($result->departure_delay) {
- (+<%= $result->departure_delay %>)
- % }
- </td>
+ <th>Zug</th>
+ <th></th>
+ <th>Abfahrt</th>
</tr>
- % }
- </tbody>
- </table>
+ </thead>
+ <tbody>
+ % for my $result (@{$results}) {
+ <tr>
+ <td>
+ <a class="action-checkin" data-station="<%= $ds100 %>" data-train="<%= $result->train_id %>">
+ <%= $result->line %>
+ </a>
+ </td>
+ <td>
+ <a class="action-checkin" data-station="<%= $ds100 %>" data-train="<%= $result->train_id %>">
+ <%= $result->destination %>
+ </a>
+ </td>
+ <td><%= $result->departure->strftime('%H:%M') %>
+ % if ($result->departure_delay) {
+ (+<%= $result->departure_delay %>)
+ % }
+ </td>
+ </tr>
+ % }
+ </tbody>
+ </table>
+ </div>
</div>