= $form->field($model, 'username')->label('用户名')->textInput(['autofocus' => true]) ?>
= $form->field($model, 'password')->passwordInput()->label('密码') ?>
= $form->field($model, 'password2')->passwordInput()->label('重复密码') ?>
= $form->field($model, 'email')->label('电子邮箱') ?>
= Html::submitButton('注册', ['class' => 'btn btn-primary']) ?>
= Html::a('已经有账户? 点击登录', ['user/login']) ?>