You are here

page--user--reset.html.twig in Better Login 8

Better Login theme implementation to display a password reset page.

Available variables:

General utility variables:

  • url: The base URL path of the Drupal website.
  • logo: Logo path of Drupal website.
  • site_name: Site name of Drupal website.
  • title: Title of a page.
  • register_url: A registration url of Drupal website.

Regions:

  • page.highlighted: Items for the highlighted region.
  • page.content: The main content of the current page.

File

templates/page--user--reset.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Better Login theme implementation to display a password reset page.
  5. *
  6. *
  7. * Available variables:
  8. *
  9. * General utility variables:
  10. * - url: The base URL path of the Drupal website.
  11. * - logo: Logo path of Drupal website.
  12. * - site_name: Site name of Drupal website.
  13. * - title: Title of a page.
  14. * - register_url: A registration url of Drupal website.
  15. *
  16. *
  17. * Regions:
  18. * - page.highlighted: Items for the highlighted region.
  19. * - page.content: The main content of the current page.
  20. *
  21. * @see betterlogin_preprocess_betterlogin()
  22. */
  23. #}
  24. <div id="auth_box" class="reset">
  25. <div id="top_part">
  26. <h1 id="the_logo">
  27. <a href="{{ url('<front>') }}">
  28. <img src="{{ logo }}" alt="{{ site_name }}" />
  29. </a>
  30. </h1>
  31. </div>
  32. <div id="middle_part">
  33. <h2 class="title">{{ title }}</h2>
  34. {{ page.highlighted }}
  35. {{ messages }}
  36. {{ page.content }}
  37. </div>
  38. <div id="bottom_part">
  39. <div class="login_link">
  40. <a href="{{ path('user.login') }}">{{ 'Login'|t }}</a>
  41. </div>
  42. {% if register_url %}
  43. <div class="register_link">
  44. <a href="{{ register_url }}">{{ 'Register a new account'|t }}</a>
  45. </div>
  46. {% endif %}
  47. <div class="back_link">
  48. <a href="{{ url('<front>') }}">&larr; {{ 'Back'|t }} {{ site_name }}</a>
  49. </div>
  50. </div>
  51. </div>