login.html.twig 1.1 KB

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