Blame view

frontend/modules/user/views/password/resetPassword.php 1.02 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
  <?php
  
  /* @var $this yii\web\View */
  /* @var $form yii\bootstrap\ActiveForm */
  /* @var $model \frontend\modules\user\models\form\ResetPasswordForm */
  
  use yii\helpers\{
      Html, Url
  };
  use yii\bootstrap\ActiveForm;
  
  $this->title = Yii::t('user', 'Reset password');
  $this->params['breadcrumbs'][] = $this->title;
  ?>
  <div class="site-reset-password">
      <h1><?= Html::encode($this->title) ?></h1>
  
      <?= Html::tag('p', Yii::t('user', 'Please choose your new password')) ?>
  
      <div class="row">
          <div class="col-lg-5">
              <?php $form = ActiveForm::begin([
                  'id' => 'reset-password-form',
                  'action' => Url::toRoute(['/user/password/reset', 'token' => $token]),
              ]); ?>
  
              <?= $form->field($model, 'password')->passwordInput(['autofocus' => true]) ?>
  
              <div class="form-group">
                  <?= Html::submitButton(Yii::t('app', 'Save'), ['class' => 'btn btn-primary']) ?>
              </div>
  
              <?php ActiveForm::end(); ?>
          </div>
      </div>
  </div>