Merge pull request #38 from maximal/patch-1

Autofocus on username field
This commit is contained in:
Dmitry Naumenko 2015-12-01 19:21:27 +02:00
commit 418afaec9f
2 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ $this->params['breadcrumbs'][] = $this->title;
<?php $form = ActiveForm::begin(['id' => 'contact-form']); ?>
<?= $form->field($model, 'name') ?>
<?= $form->field($model, 'name')->textInput(['autofocus' => true]) ?>
<?= $form->field($model, 'email') ?>

View File

@ -24,7 +24,7 @@ $this->params['breadcrumbs'][] = $this->title;
],
]); ?>
<?= $form->field($model, 'username') ?>
<?= $form->field($model, 'username')->textInput(['autofocus' => true]) ?>
<?= $form->field($model, 'password')->passwordInput() ?>