summaryrefslogtreecommitdiff
path: root/templates/history_map.html.ep
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-01-02 09:12:24 +0100
committerBirte Kristina Friesel <derf@finalrewind.org>2024-01-02 09:12:24 +0100
commit1690a07d92696f0878a3d305e74c09530b3c49d6 (patch)
treea0bfd9cd8a8dc01d8a45141d71471fcced8f6cac /templates/history_map.html.ep
parent0229768fe6730a559a42a32d2e9a37fef202bc11 (diff)
Rename filter_after/filter_before to filter_from/filter_to (they're inclusive)
Diffstat (limited to 'templates/history_map.html.ep')
-rw-r--r--templates/history_map.html.ep12
1 files changed, 6 insertions, 6 deletions
diff --git a/templates/history_map.html.ep b/templates/history_map.html.ep
index b6ebd9c..9218f76 100644
--- a/templates/history_map.html.ep
+++ b/templates/history_map.html.ep
@@ -3,8 +3,8 @@
% if (stash('year')) {
Fahrten im Jahr <strong><%= stash('year') %></strong>
% }
- % elsif (param('filter_after') and param('filter_before')) {
- Fahrten zwischen dem <strong><%= param('filter_after') %></strong> und dem <strong><%= param('filter_before') %></strong>
+ % elsif (param('filter_from') and param('filter_to')) {
+ Fahrten zwischen dem <strong><%= param('filter_from') %></strong> und dem <strong><%= param('filter_to') %></strong>
% }
% elsif (@{$station_coordinates}) {
Alle bisherigen Fahrten
@@ -73,14 +73,14 @@
</p>
<div class="row">
<div class="input-field col s12">
- %= text_field 'filter_after', id => 'filter_after', 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_after">Abfahrt ab (DD.MM.YYYY)</label>
+ %= 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>
</div>
</div>
<div class="row">
<div class="input-field col s12">
- %= text_field 'filter_before', id => 'filter_before', 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_before">Abfahrt bis (DD.MM.YYYY)</label>
+ %= 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>
</div>
</div>
<div class="row">