summaryrefslogtreecommitdiff
path: root/templates/departures.html.ep
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2018-10-05 16:33:59 +0200
committerDaniel Friesel <derf@finalrewind.org>2018-10-05 16:33:59 +0200
commitd75351b30c38dc22e0071e18dc68be551eb628a7 (patch)
tree42cf1576b093977f8c0a95cdd49931ec0ad7a8ae /templates/departures.html.ep
parent3198689286984a47d0250712d9928c7a9ff2f7b9 (diff)
Use POST requests to modify data
Diffstat (limited to 'templates/departures.html.ep')
-rw-r--r--templates/departures.html.ep8
1 files changed, 5 insertions, 3 deletions
diff --git a/templates/departures.html.ep b/templates/departures.html.ep
index bbe0149..bd11d15 100644
--- a/templates/departures.html.ep
+++ b/templates/departures.html.ep
@@ -9,7 +9,9 @@
ab <%= $status->{station_name} %></p>
</div>
<div class="card-action">
- <a href="/a/checkout?station=<%= $ds100 %>">Hier auschecken</a>
+ <a class="action-checkout" data-station="<%= $ds100 %>">
+ Hier auschecken
+ </a>
</div>
</div>
% }
@@ -28,12 +30,12 @@
% for my $result (@{$results}) {
<tr>
<td>
- <a href="/a/checkin?station=<%= $ds100 %>&amp;train=<%= $result->train_id %>" title="Check In">
+ <a class="action-checkin" data-station="<%= $ds100 %>" data-train="<%= $result->train_id %>">
<%= $result->line %>
</a>
</td>
<td>
- <a href="/a/checkin?station=<%= $ds100 %>&amp;train=<%= $result->train_id %>" title="Check In">
+ <a class="action-checkin" data-station="<%= $ds100 %>" data-train="<%= $result->train_id %>">
<%= $result->destination %>
</a>
</td>