You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

register.php 2.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?= $this->extend('templates/base') ?>
  2. <!-- title -->
  3. <?= $this->section('title') ?>Register<?= $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.register') ?></h2>
  11. <div class="card-body">
  12. <?= view('Myth\Auth\Views\_message_block') ?>
  13. <form action="<?= route_to('register') ?>" method="post">
  14. <?= csrf_field() ?>
  15. <div class="form-group">
  16. <label for="email"><?= lang('Auth.email') ?></label>
  17. <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') ?>">
  18. <small id="emailHelp" class="form-text text-muted"><?= lang('Auth.weNeverShare') ?></small>
  19. </div>
  20. <div class="form-group">
  21. <label for="password"><?= lang('Auth.password') ?></label>
  22. <input type="password" name="password" class="form-control <?php if (session('errors.password')) : ?>is-invalid<?php endif ?>" placeholder="<?= lang('Auth.password') ?>" autocomplete="off">
  23. </div>
  24. <div class="form-group">
  25. <label for="pass_confirm"><?= lang('Auth.repeatPassword') ?></label>
  26. <input type="password" name="pass_confirm" class="form-control <?php if (session('errors.pass_confirm')) : ?>is-invalid<?php endif ?>" placeholder="<?= lang('Auth.repeatPassword') ?>" autocomplete="off">
  27. </div>
  28. <br>
  29. <button type="submit" class="btn btn-primary btn-block"><?= lang('Auth.register') ?></button>
  30. </form>
  31. <hr>
  32. <p><?= lang('Auth.alreadyRegistered') ?> <a href="<?= route_to('login') ?>"><?= lang('Auth.signIn') ?></a></p>
  33. </div>
  34. </div>
  35. </div>
  36. </div>
  37. </div>
  38. <?= $this->endSection() ?>