diff options
author | Daniel Friesel <derf@finalrewind.org> | 2019-04-13 10:43:05 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2019-04-13 10:43:05 +0200 |
commit | 1ee185d26bbfb9c7ef37aa6405645c8049d56f53 (patch) | |
tree | 7eeb83f545f7452cdbfea2654f35ce2c872d5958 /templates | |
parent | 863a33b111506e66850ccf1dcfde9e42584f52ab (diff) |
work-in-progress manual journey entry. incomplete and not enabled yet.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/add_journey.html.ep | 8 | ||||
-rw-r--r-- | templates/layouts/default.html.ep | 4 |
2 files changed, 11 insertions, 1 deletions
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 @@ -30,6 +30,10 @@ </div> <div class="row"> <div class="input-field col s12"> + %= text_field 'dep_station', id => 'dep_station', class => 'autocomplete validate', required => undef + <label for="dep_station">Startbahnhof (Name oder DS100)</label> + </div> + <div class="input-field col s12"> %= 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]' <label for="sched_departure">Geplante Abfahrt</label> </div> @@ -40,6 +44,10 @@ </div> <div class="row"> <div class="input-field col s12"> + %= text_field 'arr_station', id => 'arr_station', class => 'autocomplete validate', required => undef + <label for="arr_station">Zielbahnhof (Name oder DS100)</label> + </div> + <div class="input-field col s12"> %= 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]' <label for="sched_arrival">Geplante Ankunft</label> </div> 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" + % } </head> <body> |