summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-03-16 21:37:57 +0100
committerDaniel Friesel <derf@finalrewind.org>2019-03-16 21:37:57 +0100
commit42bb5cc4938a093c0efa9857f11e2687a3871da0 (patch)
treef27894054846022ba23bfc7607374e154543c760 /templates
parentc8f9fc901b440cb5f99fa531c6884af2b997ad97 (diff)
add autocomplete for station form
Diffstat (limited to 'templates')
-rw-r--r--templates/landingpage.html.ep2
-rw-r--r--templates/layouts/default.html.ep1
2 files changed, 2 insertions, 1 deletions
diff --git a/templates/landingpage.html.ep b/templates/landingpage.html.ep
index fe3cd52..6ebf726 100644
--- a/templates/landingpage.html.ep
+++ b/templates/landingpage.html.ep
@@ -36,7 +36,7 @@
</div>
%= form_for 'list_departures' => begin
<div class="input-field text-white">
- %= text_field 'station', id => 'station', class => 'white-text', require => undef
+ %= text_field 'station', id => 'station', class => 'autocomplete white-text', require => undef
<label for="station">Manuelle Eingabe (Name oder DS100)</label>
</div>
<div class="center-align">
diff --git a/templates/layouts/default.html.ep b/templates/layouts/default.html.ep
index 36995ba..588a83c 100644
--- a/templates/layouts/default.html.ep
+++ b/templates/layouts/default.html.ep
@@ -13,6 +13,7 @@
%= javascript "/static/${av}/js/materialize.min.js"
%= javascript "/static/${av}/js/travelynx-actions.min.js"
% if (stash('with_geolocation')) {
+ %= javascript "/static/${av}/js/autocomplete.min.js"
%= javascript "/static/${av}/js/geolocation.min.js"
% }
</head>