2019-11-16 14:57:09 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="col s12">
|
2024-01-02 08:27:17 +00:00
|
|
|
% if (@{$station_coordinates}) {
|
|
|
|
Fahrten
|
|
|
|
% }
|
|
|
|
% else {
|
|
|
|
Keine Fahrten
|
|
|
|
% }
|
|
|
|
% if (param('filter_type')) {
|
|
|
|
mit <strong><%= param('filter_type') %></strong>
|
|
|
|
% }
|
2024-01-01 11:58:59 +00:00
|
|
|
% if (stash('year')) {
|
2024-01-02 08:27:17 +00:00
|
|
|
im Jahr <strong><%= stash('year') %></strong>
|
2024-01-01 12:00:13 +00:00
|
|
|
% }
|
2024-01-02 08:12:24 +00:00
|
|
|
% elsif (param('filter_from') and param('filter_to')) {
|
2024-01-02 08:27:17 +00:00
|
|
|
zwischen dem <strong><%= param('filter_from') %></strong> und dem <strong><%= param('filter_to') %></strong>
|
2024-01-01 11:58:59 +00:00
|
|
|
% }
|
2024-01-02 08:14:55 +00:00
|
|
|
% elsif (param('filter_from')) {
|
2024-01-02 08:27:17 +00:00
|
|
|
ab dem <strong><%= param('filter_from') %></strong>
|
2024-01-02 08:14:55 +00:00
|
|
|
% }
|
|
|
|
% elsif (param('filter_to')) {
|
2024-01-02 08:27:17 +00:00
|
|
|
bis einschließlich <strong><%= param('filter_to') %></strong>
|
2024-01-02 08:14:55 +00:00
|
|
|
% }
|
2024-01-01 11:58:59 +00:00
|
|
|
% elsif (@{$station_coordinates}) {
|
2024-01-02 08:27:17 +00:00
|
|
|
in travelynx
|
2019-11-16 22:47:18 +00:00
|
|
|
% }
|
2024-01-02 08:27:17 +00:00
|
|
|
% if (not @{$station_coordinates}) {
|
|
|
|
gefunden
|
2019-11-16 22:47:18 +00:00
|
|
|
% }
|
2019-11-16 14:57:09 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2020-01-25 13:41:33 +00:00
|
|
|
%= include '_map', station_coordinates => $station_coordinates, polyline_groups => $polyline_groups
|
2019-11-27 17:26:15 +00:00
|
|
|
|
2020-01-31 17:16:00 +00:00
|
|
|
%= form_for '/history/map' => begin
|
|
|
|
<p>
|
2022-04-02 13:24:39 +00:00
|
|
|
Detailgrad:
|
2020-01-31 17:16:00 +00:00
|
|
|
</p>
|
|
|
|
<div class="row">
|
|
|
|
<div class="input-field col s12">
|
2023-03-11 10:51:42 +00:00
|
|
|
<div>
|
|
|
|
<label>
|
|
|
|
%= radio_button route_type => 'polyline'
|
2023-08-14 10:24:26 +00:00
|
|
|
<span>Nur Fahrten mit bekanntem Streckenverlauf eintragen</span>
|
2023-03-11 10:51:42 +00:00
|
|
|
</label>
|
|
|
|
</div>
|
2020-01-31 17:16:00 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="input-field col s12">
|
2023-03-11 10:51:42 +00:00
|
|
|
<div>
|
|
|
|
<label>
|
|
|
|
%= radio_button route_type => 'polybee'
|
|
|
|
<span>Streckenverlauf wenn bekannt, sonst Luftlinie zwischen Unterweghalten</span>
|
|
|
|
</label>
|
|
|
|
</div>
|
2020-01-31 17:16:00 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="input-field col s12">
|
2023-03-11 10:51:42 +00:00
|
|
|
<div>
|
|
|
|
<label>
|
|
|
|
%= radio_button route_type => 'beeline'
|
|
|
|
<span>Immer Luftlinie zwischen Unterwegshalten zeigen</span>
|
|
|
|
</label>
|
|
|
|
</div>
|
2020-01-31 17:16:00 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2019-11-27 17:26:15 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="input-field col s12">
|
2023-03-11 10:51:42 +00:00
|
|
|
<div>
|
|
|
|
<label>
|
|
|
|
%= check_box include_manual => 1
|
|
|
|
<span>Manuelle Einträge ohne Unterwegshalte mitberücksichtigen</span>
|
|
|
|
</label>
|
|
|
|
</div>
|
2019-11-27 17:26:15 +00:00
|
|
|
</div>
|
2019-11-18 16:33:15 +00:00
|
|
|
</div>
|
2019-11-27 17:26:15 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="col s12 center-align">
|
2020-01-31 17:16:00 +00:00
|
|
|
<button class="btn wave-effect waves-light" type="submit">
|
2019-11-27 17:26:15 +00:00
|
|
|
Anzeigen
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-04-02 13:24:39 +00:00
|
|
|
<p>
|
|
|
|
Weitere Filter:
|
|
|
|
</p>
|
|
|
|
<div class="row">
|
|
|
|
<div class="input-field col s12">
|
2024-01-02 08:12:24 +00:00
|
|
|
%= text_field 'filter_from', id => 'filter_from', class => 'validate', pattern => '[0-9][0-9]?[.][0-9][0-9]?[.][0-9][0-9][0-9][0-9]( +[0-9][0-9]:[0-9][0-9])?'
|
|
|
|
<label for="filter_from">Abfahrt ab (DD.MM.YYYY)</label>
|
2022-04-02 13:24:39 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="input-field col s12">
|
2024-01-02 08:12:24 +00:00
|
|
|
%= text_field 'filter_to', id => 'filter_to', class => 'validate', pattern => '[0-9][0-9]?[.][0-9][0-9]?[.][0-9][0-9][0-9][0-9]( +[0-9][0-9]:[0-9][0-9])?'
|
|
|
|
<label for="filter_to">Abfahrt bis (DD.MM.YYYY)</label>
|
2022-04-02 13:24:39 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-04-02 16:14:21 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="input-field col s12">
|
|
|
|
%= text_field 'filter_type', id => 'filter_type'
|
2024-01-02 08:27:17 +00:00
|
|
|
<label for="filter_tpye">Verkehrsmittel</label>
|
2022-04-02 16:14:21 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-04-02 13:24:39 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="col s12 center-align">
|
|
|
|
<button class="btn wave-effect waves-light" type="submit">
|
|
|
|
Anzeigen
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-11-27 17:26:15 +00:00
|
|
|
%= end
|
2020-01-25 13:55:51 +00:00
|
|
|
|
2020-02-04 17:20:25 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="col s12">
|
|
|
|
<p>
|
|
|
|
Die eingezeichneten Routen stammen aus dem HAFAS und sind im Detail
|
|
|
|
oft fehlerbehaftet.
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2020-01-25 13:55:51 +00:00
|
|
|
% if (@{$skipped_journeys // []}) {
|
|
|
|
<div class="row">
|
|
|
|
<div class="col s12">
|
|
|
|
<p>
|
2023-08-14 10:24:26 +00:00
|
|
|
Die folgenden Fahrten wurden nicht eingezeichnet:
|
2020-01-25 13:55:51 +00:00
|
|
|
</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>
|
|
|
|
% }
|