login.html.twig 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  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="login-box-shadow {{ classes }}">
  7. <h1>
  8. {{ title }}
  9. </h1>
  10. {% include 'partials/messages.html.twig' %}
  11. {% block instructions %}{% endblock %}
  12. {% block integration %}{% endblock %}
  13. {% set redirect = redirect ?: uri.path %}
  14. <form method="post" action="{{ base_url_relative }}">
  15. <div class="padding">
  16. {% block form %}{% endblock %}
  17. <input type="hidden" name="redirect" value="{{ redirect }}" />
  18. {{ nonce_field('admin-form', 'admin-nonce')|raw }}
  19. </div>
  20. </form>
  21. <script>
  22. $(document).ready( function() {
  23. $('#messages').delay(5000).animate({ height: 'toggle', opacity: 'toggle' }, 'slow');
  24. });
  25. </script>
  26. </section>
  27. </body>
  28. {% endblock %}