From 1ee185d26bbfb9c7ef37aa6405645c8049d56f53 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 13 Apr 2019 10:43:05 +0200 Subject: work-in-progress manual journey entry. incomplete and not enabled yet. --- templates/add_journey.html.ep | 8 ++++++++ templates/layouts/default.html.ep | 4 +++- 2 files changed, 11 insertions(+), 1 deletion(-) (limited to 'templates') diff --git a/templates/add_journey.html.ep b/templates/add_journey.html.ep index 9ef00f5..e07f78f 100644 --- a/templates/add_journey.html.ep +++ b/templates/add_journey.html.ep @@ -29,6 +29,10 @@
+
+ %= text_field 'dep_station', id => 'dep_station', class => 'autocomplete validate', required => undef + +
%= text_field 'sched_departure', id => 'sched_departure', class => 'validate', required => undef, 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]' @@ -39,6 +43,10 @@
+
+ %= text_field 'arr_station', id => 'arr_station', class => 'autocomplete validate', required => undef + +
%= text_field 'sched_arrival', id => 'sched_arrival', class => 'validate', required => undef, 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]' diff --git a/templates/layouts/default.html.ep b/templates/layouts/default.html.ep index fa8dacf..b76f1ab 100644 --- a/templates/layouts/default.html.ep +++ b/templates/layouts/default.html.ep @@ -13,9 +13,11 @@ %= 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" % } + % if (stash('with_autocomplete')) { + %= javascript "/static/${av}/js/autocomplete.min.js" + % } -- cgit v1.2.3