Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

70 řádky
3.0KB

  1. <?= $this->extend('templates/base') ?>
  2. <!-- title -->
  3. <?= $this->section('title') ?>Reset Password<?= $this->endSection() ?>
  4. <!-- content -->
  5. <?= $this->section('content') ?>
  6. <div class="container">
  7. <div class="row">
  8. <div class="col-sm-6 offset-sm-3">
  9. <div class="card">
  10. <h2 class="card-header"><?= lang('Auth.resetYourPassword') ?></h2>
  11. <div class="card-body">
  12. <?= view('Myth\Auth\Views\_message_block') ?>
  13. <p><?= lang('Auth.enterCodeEmailPassword') ?></p>
  14. <form action="<?= route_to('reset-password') ?>" method="post">
  15. <?= csrf_field() ?>
  16. <div class="form-group">
  17. <label for="token"><?= lang('Auth.token') ?></label>
  18. <input type="text" class="form-control <?php if (session('errors.token')) : ?>is-invalid<?php endif ?>" name="token" placeholder="<?= lang('Auth.token') ?>" value="<?= old('token', $token ?? '') ?>">
  19. <div class="invalid-feedback">
  20. <?= session('errors.token') ?>
  21. </div>
  22. </div>
  23. <div class="form-group">
  24. <label for="email"><?= lang('Auth.email') ?></label>
  25. <input type="email" class="form-control <?php if (session('errors.email')) : ?>is-invalid<?php endif ?>" name="email" aria-describedby="emailHelp" placeholder="<?= lang('Auth.email') ?>" value="<?= old('email') ?>">
  26. <div class="invalid-feedback">
  27. <?= session('errors.email') ?>
  28. </div>
  29. </div>
  30. <br>
  31. <div class="form-group">
  32. <label for="password"><?= lang('Auth.newPassword') ?></label>
  33. <input type="password" class="form-control <?php if (session('errors.password')) : ?>is-invalid<?php endif ?>" name="password">
  34. <div class="invalid-feedback">
  35. <?= session('errors.password') ?>
  36. </div>
  37. </div>
  38. <div class="form-group">
  39. <label for="pass_confirm"><?= lang('Auth.newPasswordRepeat') ?></label>
  40. <input type="password" class="form-control <?php if (session('errors.pass_confirm')) : ?>is-invalid<?php endif ?>" name="pass_confirm">
  41. <div class="invalid-feedback">
  42. <?= session('errors.pass_confirm') ?>
  43. </div>
  44. </div>
  45. <br>
  46. <button type="submit" class="btn btn-primary btn-block"><?= lang('Auth.resetPassword') ?></button>
  47. </form>
  48. </div>
  49. </div>
  50. </div>
  51. </div>
  52. </div>
  53. <?= $this->endSection() ?>