51 lines
1.5 KiB
PHP
Executable File
51 lines
1.5 KiB
PHP
Executable File
<?php
|
|
# @Author: fm453
|
|
# @Date: 1970-01-01T08:00:00+08:00
|
|
# @Email: fm43@hiluker.com
|
|
# @Last modified by: fm453
|
|
# @Last modified time: 2021-09-14T19:53:21+08:00
|
|
|
|
|
|
|
|
|
|
/* @var $this yii\web\View */
|
|
/* @var $form yii\bootstrap\ActiveForm */
|
|
/* @var $model \frontend\models\SignupForm */
|
|
|
|
use yii\helpers\Html;
|
|
use yii\bootstrap\ActiveForm;
|
|
use yii\captcha\Captcha;
|
|
|
|
$this->title = '注册';
|
|
$this->params['breadcrumbs'][] = $this->title;
|
|
?>
|
|
<div class="site-signup">
|
|
<h1><?= Html::encode($this->title) ?></h1>
|
|
|
|
<p>请提供以下信息进行注册:</p>
|
|
|
|
<div class="row">
|
|
<div class="col-lg-5">
|
|
<?php $form = ActiveForm::begin(['id' => 'form-signup']); ?>
|
|
|
|
<?= $form->field($model, 'username')->textInput(['autofocus' => true]) ?>
|
|
|
|
<?= $form->field($model, 'mobile')->textInput() ?>
|
|
|
|
<?= $form->field($model, 'email') ?>
|
|
|
|
<?= $form->field($model, 'password')->passwordInput() ?>
|
|
|
|
<?= $form->field($model, 'verifyCode')->widget(Captcha::className(), [
|
|
'template' => '<div class="row"><div class="col-lg-3">{image}</div><div class="col-lg-6">{input}</div></div>',
|
|
]) ?>
|
|
|
|
<div class="form-group">
|
|
<?= Html::submitButton(Yii::t('frontend','Signup'), ['class' => 'btn btn-primary', 'name' => 'signup-button']) ?>
|
|
</div>
|
|
|
|
<?php ActiveForm::end(); ?>
|
|
</div>
|
|
</div>
|
|
</div>
|