49 lines
1.2 KiB
Text
49 lines
1.2 KiB
Text
<div class="row">
|
|
<div class="col s12">
|
|
% if (@{$station_coordinates}) {
|
|
Alle bisherigen Zugfahrten
|
|
% }
|
|
% else {
|
|
Keine Zugfahrten gefunden.
|
|
% }
|
|
</div>
|
|
</div>
|
|
|
|
%= include '_map', station_coordinates => $station_coordinates, polyline_groups => $polyline_groups
|
|
|
|
%= form_for '/history/map' => (method => 'POST') => begin
|
|
%= csrf_field
|
|
<div class="row">
|
|
<div class="input-field col s12">
|
|
<label>
|
|
%= check_box include_manual => 1
|
|
<span>Manuelle Einträge ohne Unterwegshalte mitberücksichtigen</span>
|
|
</label>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col s12 center-align">
|
|
<button class="btn wave-effect waves-light" type="submit" name="action" value="go">
|
|
Anzeigen
|
|
</button>
|
|
</div>
|
|
</div>
|
|
%= end
|
|
|
|
% if (@{$skipped_journeys // []}) {
|
|
<div class="row">
|
|
<div class="col s12">
|
|
<p>
|
|
Die folgenden Zugfahrten wurden nicht eingezeichnet:
|
|
</p>
|
|
<p>
|
|
<ul>
|
|
% for my $pair (@{$skipped_journeys}) {
|
|
% my ($journey, $reason) = @{$pair};
|
|
<li><a href="/journey/<%= $journey->{id} %>"><%= $journey->{type} %> <%= $journey->{no} %> <%= $journey->{from_name} %> → <%= $journey->{to_name} %></a>: <%= $reason %></li>
|
|
% }
|
|
</ul>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
% }
|