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

5 6 7 8
/* @var $this yii\web\View */
/* @var $form yii\widgets\ActiveForm */
/* @var $model \frontend\models\SignupForm */

9 10 11
$this->title = 'Signup';
$this->params['breadcrumbs'][] = $this->title;
?>
Alexander Makarov committed
12
<div class="site-signup">
13
    <h1><?= Html::encode($this->title) ?></h1>
14

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

17 18 19 20 21 22 23 24 25 26 27 28
    <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
29
</div>