<?php

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


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

    <h4><b>Please enter a new password for you account </b></h4><br>

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

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

    <?= $form->field($model, 'password')->passwordInput(['maxlength' => true])->label('New password') ?>

    <?= $form->field($model, 'confirm_password')->passwordInput()->label('Confirm new password') ?>

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

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

    
    <?php else : ?>

    <h1> There is no such reset password token </h1>            
    <h2> Do you want to reset your password? </h2> 
    <?= Html::a(Yii::t('app', 'Forgot password'), ['forget-password'], ['class' => 'profile-link']) ?>

    <?php endif; ?>

</div>