<!DOCTYPE html>
<html lang="pl">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  <title>{% block title %}{% endblock %}</title>
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/css/all.min.css">
  <link href="{{ asset('assets/css/bootstrap.min.css') }}" rel="stylesheet"/>
  <link rel="shortcut icon" href="{{ asset('assets/images/favicon.png') }}"/>
</head>
<body>

{% include 'partial/alert.html.twig' %}

<div class="background-secondary">
    <div class="container">
        <div class="row">
            <div class="col-12 col-md-7 col-lg-5 mx-auto">
                <div class="card mt-5">
                    {% block loginbody %}{% endblock %}
                </div>
            </div>
        </div>
    </div>
</div>

<script src="{{ asset('assets/js/bootstrap.bundle.min.js') }}"></script>
<script src="{{ asset('assets/js/app.js') }}"></script>

{% if setting('recaptcha_site_key') %}
  <script src="https://www.google.com/recaptcha/api.js?render={{ setting('recaptcha_site_key') }}"></script>
  <script>
      grecaptcha.ready(function () {
        grecaptcha.execute('{{ setting('recaptcha_site_key') }}', { action: 'homepage' }).then(function (token) {
          [].forEach.call(document.getElementsByClassName('recaptcha_response'), el => el.setAttribute("value", token));
        });
      });
  </script>
{% endif %}
</body>
</html>

