request.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php
  2. /*
  3. * This file is part of the Dektrium project.
  4. *
  5. * (c) Dektrium project <http://github.com/dektrium>
  6. *
  7. * For the full copyright and license information, please view the LICENSE.md
  8. * file that was distributed with this source code.
  9. */
  10. use yii\helpers\Html;
  11. use yii\widgets\ActiveForm;
  12. /**
  13. * @var yii\web\View $this
  14. * @var yii\widgets\ActiveForm $form
  15. * @var dektrium\user\models\RecoveryForm $model
  16. */
  17. $this->title = Yii::t('user', 'Recover your password');
  18. $this->params['breadcrumbs'][] = $this->title;
  19. $this->params['body-class']['class'] = 'login-page';
  20. ?>
  21. <div class="login-box">
  22. <div class="login-logo">
  23. <?= Html::encode($this->title) ?>
  24. </div>
  25. <!-- /.login-logo -->
  26. <div class="card">
  27. <div class="card-body login-card-body">
  28. <?= $this->render('/_alert', ['module' => Yii::$app->getModule('user')]) ?>
  29. <?php $form = ActiveForm::begin([
  30. 'id' => 'password-recovery-form',
  31. 'enableAjaxValidation' => true,
  32. 'enableClientValidation' => false,
  33. ]); ?>
  34. <?= $form->field($model, 'email')->textInput(['autofocus' => true]) ?>
  35. <?= Html::submitButton(Yii::t('user', 'Continue'), ['class' => 'btn btn-primary btn-block']) ?>
  36. <?php ActiveForm::end(); ?>
  37. </div>
  38. <!-- /.login-card-body -->
  39. </div>
  40. </div>