mirror of
https://github.com/cgsmith/yii2-user.git
synced 2026-02-04 00:02:37 -06:00
first commit
This commit is contained in:
52
src/views/recovery/request.php
Normal file
52
src/views/recovery/request.php
Normal file
@@ -0,0 +1,52 @@
|
||||
<?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>
|
||||
Reference in New Issue
Block a user