From 290e3cb60982a6d9faa7152eda91b176b1571898 Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Tue, 10 Jan 2017 02:47:33 +0300 Subject: [PATCH] Auto-focus in the search field on the main page. --- .../PointToolsBundle/Resources/views/Main/index.html.twig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Skobkin/Bundle/PointToolsBundle/Resources/views/Main/index.html.twig b/src/Skobkin/Bundle/PointToolsBundle/Resources/views/Main/index.html.twig index f1191a7..078a453 100644 --- a/src/Skobkin/Bundle/PointToolsBundle/Resources/views/Main/index.html.twig +++ b/src/Skobkin/Bundle/PointToolsBundle/Resources/views/Main/index.html.twig @@ -14,7 +14,8 @@ {{ form_widget(form.login, { 'attr': { 'autocomplete': 'off', - 'placeholder': 'login' + 'placeholder': 'login', + 'autofocus': true } }) }}