1
0

signup.php 987 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /* @var $this yii\web\View */
  3. /* @var $form yii\bootstrap\ActiveForm */
  4. /* @var $model \frontend\models\SignupForm */
  5. use yii\helpers\Html;
  6. use yii\bootstrap\ActiveForm;
  7. $this->title = 'Signup';
  8. $this->params['breadcrumbs'][] = $this->title;
  9. ?>
  10. <div class="site-signup">
  11. <h1><?= Html::encode($this->title) ?></h1>
  12. <p>Please fill out the following fields to signup:</p>
  13. <div class="row">
  14. <div class="col-lg-5">
  15. <?php $form = ActiveForm::begin(['id' => 'form-signup']); ?>
  16. <?= $form->field($model, 'username')->textInput(['autofocus' => true]) ?>
  17. <?= $form->field($model, 'email') ?>
  18. <?= $form->field($model, 'password')->passwordInput() ?>
  19. <div class="form-group">
  20. <?= Html::submitButton('Signup', ['class' => 'btn btn-primary', 'name' => 'signup-button']) ?>
  21. </div>
  22. <?php ActiveForm::end(); ?>
  23. </div>
  24. </div>
  25. </div>