summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/add_journey.html.ep8
-rw-r--r--templates/layouts/default.html.ep4
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>