Merge pull request #38 from maximal/patch-1
Autofocus on username field
This commit is contained in:
commit
418afaec9f
@ -43,7 +43,7 @@ $this->params['breadcrumbs'][] = $this->title;
|
|||||||
|
|
||||||
<?php $form = ActiveForm::begin(['id' => 'contact-form']); ?>
|
<?php $form = ActiveForm::begin(['id' => 'contact-form']); ?>
|
||||||
|
|
||||||
<?= $form->field($model, 'name') ?>
|
<?= $form->field($model, 'name')->textInput(['autofocus' => true]) ?>
|
||||||
|
|
||||||
<?= $form->field($model, 'email') ?>
|
<?= $form->field($model, 'email') ?>
|
||||||
|
|
||||||
|
@ -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() ?>
|
<?= $form->field($model, 'password')->passwordInput() ?>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user