<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;
use app\components\Utilities;

$this->title = 'Forgotten Password';

?>

<div class="forgotten-password-form middle-page-container">

    <h1><?= $this->title ?></h1>

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

    <?= $form->field($model, 'email')->textInput()->label('Kindly, enter your email in order to send you a reset password link') ?>

    <div class="center-elements">
        <?= Html::submitButton(Yii::t('app', 'Send'), ['class' => 'btn btn-success btn-expanded']) ?>
    </div>

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

    <?= Utilities::getSessionAlertContainer('mail_has_sent', 'success') ?>
    <?= Utilities::getSessionAlertContainer('email_not_found', 'danger') ?>

</div>
