From 42bb5cc4938a093c0efa9857f11e2687a3871da0 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 16 Mar 2019 21:37:57 +0100 Subject: add autocomplete for station form --- templates/landingpage.html.ep | 2 +- templates/layouts/default.html.ep | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'templates') 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 @@ %= form_for 'list_departures' => begin
- %= text_field 'station', id => 'station', class => 'white-text', require => undef + %= text_field 'station', id => 'station', class => 'autocomplete white-text', require => undef
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" % } -- cgit v1.2.3