request.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. ?>
  20. <div class="row">
  21. <div class="col-md-4 col-md-offset-4 col-sm-6 col-sm-offset-3">
  22. <div class="panel panel-default">
  23. <div class="panel-heading">
  24. <h3 class="panel-title"><?= Html::encode($this->title) ?></h3>
  25. </div>
  26. <div class="panel-body">
  27. <?php $form = ActiveForm::begin([
  28. 'id' => 'password-recovery-form',
  29. 'enableAjaxValidation' => true,
  30. 'enableClientValidation' => false,
  31. ]); ?>
  32. <?= $form->field($model, 'email')->textInput(['autofocus' => true]) ?>
  33. <?= Html::submitButton(Yii::t('user', 'Continue'), ['class' => 'btn btn-primary btn-block']) ?><br>
  34. <?php ActiveForm::end(); ?>
  35. </div>
  36. </div>
  37. </div>
  38. </div>