From 5ce0b84e7d45952d6ab4ad7d6fab0ca92ccef1ff Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 11 Jul 2016 12:59:59 +0200 Subject: set station input to autofocus (but only on landing page) --- templates/layouts/default.html.ep | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'templates') 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,8 +56,11 @@ % 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' % } -- cgit v1.2.3