Files
yii2-user/src/views/recovery/request.php
Chris Smith 79c5872905 first commit
2026-01-21 18:20:06 +01:00

53 lines
1.7 KiB
PHP

<?php
/**
* @var yii\web\View $this
* @var cgsmith\user\models\RecoveryForm $model
* @var cgsmith\user\Module $module
*/
use yii\bootstrap\ActiveForm;
use yii\helpers\Html;
$this->title = Yii::t('user', 'Forgot Password');
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="user-recovery-request">
<div class="row justify-content-center">
<div class="col-md-6 col-lg-4">
<div class="card shadow">
<div class="card-body p-4">
<h1 class="h4 text-center mb-4"><?= Html::encode($this->title) ?></h1>
<p class="text-muted text-center mb-4">
<?= Yii::t('user', 'Enter your email address and we will send you a link to reset your password.') ?>
</p>
<?php $form = ActiveForm::begin([
'id' => 'recovery-form',
]); ?>
<?= $form->field($model, 'email')
->textInput(['autofocus' => true, 'placeholder' => Yii::t('user', 'Email')])
->label(false) ?>
<div class="d-grid gap-2">
<?= Html::submitButton(Yii::t('user', 'Send Reset Link'), ['class' => 'btn btn-primary btn-lg']) ?>
</div>
<?php ActiveForm::end(); ?>
<hr class="my-4">
<div class="text-center">
<p class="mb-0">
<?= Html::a(Yii::t('user', 'Back to login'), ['/user/security/login']) ?>
</p>
</div>
</div>
</div>
</div>
</div>
</div>