Issues (81)

views/user/change-password.php (1 issue)

Labels
Severity
1
<?php
2
use yii\helpers\Html;
3
use yii\bootstrap\ActiveForm;
0 ignored issues
show
The type yii\bootstrap\ActiveForm was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
4
5
/* @var $this yii\web\View */
6
/* @var $form yii\bootstrap\ActiveForm */
7
/* @var $model \toir427\admin\models\form\ChangePassword */
8
9
$this->title = Yii::t('rbac-admin', 'Change Password');
10
$this->params['breadcrumbs'][] = $this->title;
11
?>
12
<div class="site-signup">
13
    <h1><?= Html::encode($this->title) ?></h1>
14
15
    <p>Please fill out the following fields to change password:</p>
16
17
    <div class="row">
18
        <div class="col-lg-5">
19
            <?php $form = ActiveForm::begin(['id' => 'form-change']); ?>
20
                <?= $form->field($model, 'oldPassword')->passwordInput() ?>
21
                <?= $form->field($model, 'newPassword')->passwordInput() ?>
22
                <?= $form->field($model, 'retypePassword')->passwordInput() ?>
23
                <div class="form-group">
24
                    <?= Html::submitButton(Yii::t('rbac-admin', 'Change'), ['class' => 'btn btn-primary', 'name' => 'change-button']) ?>
25
                </div>
26
            <?php ActiveForm::end(); ?>
27
        </div>
28
    </div>
29
</div>
30