<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;


?>
<div class="col-md-offset-4 col-md-4">
    <h4><?= Yii::t('app', 'Please enter a new password for you account') ?></h4>

    <div class="admins-form">
        <?php if ($model) :?>

        <?php $model->password = ''; ?>

        <?php $form = ActiveForm::begin(); ?>

        <?= $form->field($model, 'password')->passwordInput(['maxlength' => true , 'class' => 'form-control rounded-input'])->label(Yii::t('app', 'New password')) ?>

        <?= $form->field($model, 'confirm_password')->passwordInput([ 'class' => 'form-control rounded-input'])->label(Yii::t('app', 'Confirm new password')) ?>

        <div class="form-group">
            <?= Html::submitButton(Yii::t('app', 'Save'), ['class' => 'btn submit-btn']) ?>
        </div>

        <?php ActiveForm::end(); ?>

        <?php endif; ?>
    </div>
</div>