Blame view

frontend/views/modal/registration_window_model_window.php 1.8 KB
eaf6988b   Administrator   big commti
1
2
3
  <?php
  
  use common\models\LoginForm;
a1a60fa5   Administrator   big commti
4
  use frontend\models\SignupForm;
eaf6988b   Administrator   big commti
5
6
7
8
9
10
11
12
13
14
15
  use yii\helpers\Html;
  use yii\helpers\Url;
  use yii\widgets\ActiveForm;
  
  ?>
  <div class="modal fade" id="regMe" tabindex="-1" role="dialog" aria-labelledby="myModalLabel2">
      <div class="modal-dialog auth" role="document">
          <div class="modal-content">
  
              <div class="modal-header">
                  <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
b905419d   Administrator   big commti
16
                  <span class="modal-title" id="myModalLabel2">Создание профиля</span>
eaf6988b   Administrator   big commti
17
18
19
20
              </div>
  
              <div class="modal-body">
  
a1a60fa5   Administrator   big commti
21
22
23
                  <?php $form = ActiveForm::begin([
                      'action'=>Url::toRoute('site/signup'),
                  ]); ?>
eaf6988b   Administrator   big commti
24
  
a1a60fa5   Administrator   big commti
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
                  <div class="modal_close_btn"></div>
  
                  <div class="title"><?= Yii::t('app', 'registration') ?></div>
  
                  <?= $form->field(new SignupForm(), 'email', ['enableAjaxValidation' => true]) ?>
  
                  <?= $form->field(new SignupForm(), 'username')->textInput() ?>
  
                  <?= $form->field(new SignupForm(), 'surname')->textInput() ?>
  
                  <?= $form->field(new SignupForm(), 'phone', ['enableAjaxValidation' => true,
                  ])->textInput() ?>
  
  
                  <?= $form->field(new SignupForm(), 'password')->passwordInput() ?>
  
                  <?= $form->field(new SignupForm(), 'password_repeat')->passwordInput() ?>
  
                  <div class="form-group">
                      <?= Html::submitButton(Yii::t('app', 'registration'), ['class' => 'my_cust_btn', 'name' => 'signup-button']) ?>
                  </div>
  
                  <?php ActiveForm::end(); ?>
eaf6988b   Administrator   big commti
48
49
50
51
52
53
54
55
              </div>
  
              <div class="modal-footer">
              </div>
  
          </div>
      </div>
  </div>