<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;

/* @var $model app\models\SignupForm */
?>
<h1>Регистрация</h1>
<div class="signup-form">
    <?php $form = ActiveForm::begin(); ?>
    <?= $form->field($model, 'full_name')->textInput() ?>
    <?= $form->field($model, 'phone')->textInput(['placeholder' => '+7(XXX)XXX-XX-XX']) ?>
    <?= $form->field($model, 'email')->input('email') ?>
    <?= $form->field($model, 'password')->passwordInput() ?>
    <?= $form->field($model, 'password_repeat')->passwordInput() ?>
    <?= $form->field($model, 'agree')->checkbox()->label('Согласие с правилами регистрации') ?>
    <div class="form-group">
        <?= Html::submitButton('Создать пользователя', ['class' => 'btn btn-primary']) ?>
    </div>
    <?php ActiveForm::end(); ?>
</div>