Blame view

frontend/views/site/signup.php 1.09 KB
c237629a   Anastasia   first commit
1
2
3
4
5
6
7
8
9
  <?php
  
  /* @var $this yii\web\View */
  /* @var $form yii\bootstrap\ActiveForm */
  /* @var $model \frontend\models\SignupForm */
  
  use yii\helpers\Html;
  use yii\bootstrap\ActiveForm;
  
d9c166d7   alex   Перевёл почти все...
10
  $this->title = \Yii::t('app','Signup');
c237629a   Anastasia   first commit
11
12
13
14
15
  $this->params['breadcrumbs'][] = $this->title;
  ?>
  <div class="site-signup">
      <h1><?= Html::encode($this->title) ?></h1>
  
d9c166d7   alex   Перевёл почти все...
16
17
18
19
      <p>
  <!--        Please fill out the following fields to signup:-->
          <?=\Yii::t('app','Please fill out the following fields to signup:')?>
      </p>
c237629a   Anastasia   first commit
20
21
22
23
24
25
26
27
28
29
30
31
  
      <div class="row">
          <div class="col-lg-5">
              <?php $form = ActiveForm::begin(['id' => 'form-signup']); ?>
  
                  <?= $form->field($model, 'username')->textInput(['autofocus' => true]) ?>
  
                  <?= $form->field($model, 'email') ?>
  
                  <?= $form->field($model, 'password')->passwordInput() ?>
  
                  <div class="form-group">
d9c166d7   alex   Перевёл почти все...
32
                      <?= Html::submitButton(\Yii::t('app','Signup!'), ['class' => 'btn btn-primary', 'name' => 'signup-button']) ?>
c237629a   Anastasia   first commit
33
34
35
36
37
38
                  </div>
  
              <?php ActiveForm::end(); ?>
          </div>
      </div>
  </div>