<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;

$form = ActiveForm::begin([
    'id' => 'changepassword-form',
    'options' => ['class' => 'form-horizontal'],
]) ?>

<?= Yii::$app->session->getFlash('error'); ?>

<?= $form->field($model, 'currentPassword')->passwordInput() ?>

<?= $form->field($model, 'newPassword')->passwordInput() ?>

<?= $form->field($model, 'newPasswordRepeat')->passwordInput() ?>



    <div class="form-group">
        <div class="col-lg-offset-1 col-lg-11" style="margin-left: -16px">
            <?= Html::submitButton('Save', ['class' => 'btn btn-primary']) ?>
        </div>
    </div>
<?php ActiveForm::end() ?>