<?php

/* @var $this yii\web\View */
/* @var $form yii\bootstrap\ActiveForm */
/* @var $model \frontend\models\SignupForm */

use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
use yii\helpers\Url;

$this->title = 'Change Password';
$this->params['breadcrumbs'][] = $this->title;

$fieldOptions = [
    'options' => ['class' => 'form-group has-feedback'],
    'inputTemplate' => "{input}<i class='material-icons form-control-feedback'>visibility</i>"
];
?>

<div class="content-page updacc">
    <div class="content-page-header updacc-header">
        <a href="<?= Url::to(['site/update-account']) ?>">Account Information</a>
        <span><?= Html::encode($this->title) ?></span>
    </div>
    <?php $form = ActiveForm::begin(['id' => 'form-change-password']); ?>
    <div class="content-page-content updacc-content container-fluid">
        <div class="row">
            <div class="col-md-6">
                <?= $form->field($model, 'current_password', $fieldOptions)->passwordInput() ?>
                <?= $form->field($model, 'new_password', $fieldOptions)->passwordInput() ?>
                <?= $form->field($model, 'new_password_repeat', $fieldOptions)->passwordInput() ?>
            </div>
        </div>
    </div>
    <div class="content-page-footer text-right">
        <?= Html::submitButton('UPDATE PASSWORD', ['class' => 'btn btn-primary']) ?>
    </div>
    <?php ActiveForm::end(); ?>
</div>