login.html.twig 806 B

123456789101112131415161718192021222324252627
  1. {% extends 'partials/base.html.twig' %}
  2. {% set scope = scope ?: 'data.' %}
  3. {% block messages %}{% endblock %}
  4. {% block body %}
  5. <body id="admin-login-wrapper">
  6. <section id="admin-login" class="default-box-shadow {{ classes }}">
  7. <h1>
  8. {{ title }}
  9. </h1>
  10. {% include 'partials/messages.html.twig' %}
  11. {% block instructions %}{% endblock %}
  12. {% set redirect = redirect ?: uri.route(false) %}
  13. <form method="post" action="{{ base_url_relative }}">
  14. <div class="padding">
  15. {% block form %}{% endblock %}
  16. <input type="hidden" name="redirect" value="{{ redirect }}" />
  17. {{ nonce_field('admin-form', 'admin-nonce')|raw }}
  18. </div>
  19. </form>
  20. </section>
  21. </body>
  22. {% endblock %}