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

5
/* @var $this yii\web\View */
6
/* @var $form yii\bootstrap\ActiveForm */
7 8
/* @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>