Blame view

frontend/modules/user/widgets/views/forgot-password-popup.php 1.54 KB
d1f8bd40   Alexey Boroda   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
  <?php
  
  /* @var $this yii\web\View */
  /* @var $form yii\bootstrap\ActiveForm */
  /* @var $model \frontend\modules\user\models\form\PasswordResetRequestForm */
  
  use yii\bootstrap\ActiveForm;
  use yii\helpers\Html;
  use yii\helpers\Url;
  
  ?>
  <div class="popup registration-popup" id="forgot-password-popup" style="display: none">
      <div class="popup-container">
          <button class="close-popup"></button>
          <div class="form-tittle">
              <?= Yii::t('front', 'Password recovery') ?>
          </div>
          <?php
          $form = ActiveForm::begin([
              'method' => 'post',
              'action' => Url::toRoute('/user/password/request-reset'),
              'id' => 'request-password-reset',
              //'enableAjaxValidation' => true,
              'options' => [
                  'class' => 'forgot-password inner-form'
              ]
          ]);
          echo $form->field($model, 'email',
                  [
                      'template' => "<div class=\"input-field\">{input}\n{label}\n{hint}\n{error}</div>",
                      'labelOptions' => ['class' => 'active'],
                      'inputOptions' => ['placeholder' => $model->getAttributeLabel('email').'*']
                  ]
              )->textInput([
                  'class' => 'collaps-inp form-control'
              ])->label('');
          ?>
          <div class="text-center">
              <div>
                  <?= Html::submitButton(Yii::t('front', 'Send'), ['class' => 'btn btn-sm btn-primary']); ?>
              </div>
          </div>
          <?php
          ActiveForm::end();
          ?>
      </div>
  </div>