You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
402 B

6 years ago
  1. <?PHP
  2. use yii\widgets\ActiveForm;
  3. use yii\helpers\Html;
  4. ?>
  5. <h1><?= $name ?></h1>
  6. <?php $form = ActiveForm::begin(['id' => 'login-form']); ?>
  7. <?= $form->field($model, '用户:',['template' => '{input}'])->textInput(['autofocus' => true]) ?>
  8. <div class="form-group">
  9. <?= Html::submitButton('Login', ['class' => 'btn btn-primary', 'name' => 'login-button']) ?>
  10. </div>
  11. <?php ActiveForm::end(); ?>