signup.php 841 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;

/**
 * @var yii\base\View $this
 * @var yii\widgets\ActiveForm $form
 * @var common\models\User $model
 */
$this->title = 'Signup';
$this->params['breadcrumbs'][] = $this->title;
?>
Alexander Makarov committed
13 14
<div class="site-signup">
	<h1><?php echo Html::encode($this->title); ?></h1>
15

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

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