signup.php 941 Bytes
Newer Older
1 2 3 4 5
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;

/**
Alexander Makarov committed
6
 * @var yii\web\View $this
7
 * @var yii\widgets\ActiveForm $form
8
 * @var \frontend\models\SignupForm $model
9 10 11 12
 */
$this->title = 'Signup';
$this->params['breadcrumbs'][] = $this->title;
?>
Alexander Makarov committed
13
<div class="site-signup">
14
    <h1><?= Html::encode($this->title) ?></h1>
15

16
    <p>Please fill out the following fields to signup:</p>
17

18 19 20 21 22 23 24 25 26 27 28 29
    <div class="row">
        <div class="col-lg-5">
            <?php $form = ActiveForm::begin(['id' => 'form-signup']); ?>
                <?= $form->field($model, 'username') ?>
                <?= $form->field($model, 'email') ?>
                <?= $form->field($model, 'password')->passwordInput() ?>
                <div class="form-group">
                    <?= Html::submitButton('Signup', ['class' => 'btn btn-primary', 'name' => 'signup-button']) ?>
                </div>
            <?php ActiveForm::end(); ?>
        </div>
    </div>
Alexander Makarov committed
30
</div>