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.
 
 
 

17 lines
402 B

<?PHP
use yii\widgets\ActiveForm;
use yii\helpers\Html;
?>
<h1><?= $name ?></h1>
<?php $form = ActiveForm::begin(['id' => 'login-form']); ?>
<?= $form->field($model, '用户:',['template' => '{input}'])->textInput(['autofocus' => true]) ?>
<div class="form-group">
<?= Html::submitButton('Login', ['class' => 'btn btn-primary', 'name' => 'login-button']) ?>
</div>
<?php ActiveForm::end(); ?>