diff options
author | Daniel Friesel <derf@finalrewind.org> | 2016-07-11 12:59:59 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2016-07-11 12:59:59 +0200 |
commit | 5ce0b84e7d45952d6ab4ad7d6fab0ca92ccef1ff (patch) | |
tree | cd0f2ff5364e9498b5bce444408f593ecccb6cb4 /templates | |
parent | 8b43a3f8ef6dabe4934e96a7b5b2edf153d8557b (diff) |
set station input to autofocus (but only on landing page)
Diffstat (limited to 'templates')
-rw-r--r-- | templates/layouts/default.html.ep | 5 |
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"> |