add autocomplete for station form

This commit is contained in:
Daniel Friesel 2019-03-16 21:37:57 +01:00
parent c8f9fc901b
commit 42bb5cc493
4 changed files with 8482 additions and 1 deletions

File diff suppressed because it is too large Load diff

6
public/static/js/autocomplete.min.js vendored Normal file

File diff suppressed because one or more lines are too long

View file

@ -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">

View file

@ -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>