summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2016-07-11 12:59:59 +0200
committerDaniel Friesel <derf@finalrewind.org>2016-07-11 12:59:59 +0200
commit5ce0b84e7d45952d6ab4ad7d6fab0ca92ccef1ff (patch)
treecd0f2ff5364e9498b5bce444408f593ecccb6cb4
parent8b43a3f8ef6dabe4934e96a7b5b2edf153d8557b (diff)
set station input to autofocus (but only on landing page)
-rw-r--r--templates/layouts/default.html.ep5
1 files changed, 4 insertions, 1 deletions
diff --git a/templates/layouts/default.html.ep b/templates/layouts/default.html.ep
index 8e0dca2..7c38798 100644
--- a/templates/layouts/default.html.ep
+++ b/templates/layouts/default.html.ep
@@ -56,9 +56,12 @@
% if (stash('stationlist')) {
%= select_field station => stash('stationlist')
% }
-% else {
+% elsif (stash('station')) {
%= text_field 'station', class => 'station'
% }
+% else {
+ %= text_field 'station', class => 'station', autofocus => 'autofocus'
+% }
</div>
</div>
<div class="field">