<!DOCTYPE html><html lang="cs"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>{% block title %}Autorizace{% endblock %}</title> <link rel="icon" href="{{ asset('img/CP_favicon.png')}}"> <link href="https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600;700;800&display=swap" rel="stylesheet"> <link rel="stylesheet" href="{{ asset('assets/css/bootstrap.css') }}"> <link rel="stylesheet" href="{{ asset('assets/vendors/bootstrap-icons/bootstrap-icons.css') }}"> <link rel="stylesheet" href="{{ asset('assets/css/app.css') }}"> <link rel="stylesheet" href="{{ asset('assets/css/pages/auth.css') }}"> {% block stylesheets %} {#{{ encore_entry_link_tags('app') }}#} {% endblock %} {#{{ encore_entry_script_tags('app') }}#} <script src="{{ asset('js/jquery-3.6.0.min.js') }}"></script> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.min.js" integrity="sha384-cVKIPhGWiC2Al4u+LWgxfKTRIcfu0JTxR+EQDz/bgldoEyl4H0zUF0QKbrJ0EcQF" crossorigin="anonymous"></script> <script> $(window).on('load', function() { // console.log(document.cookie); if (!document.cookie.includes('agreeGDPR=1')) { $('#modalGDPR').modal('show'); // console.log('nebyl vysloven souhlas'); } else { // console.log('Byl vysloven souhlas'); } }); function agree() { // console.log('Souhlasím'); let date = new Date(); let agreement = "agreeGDPR=1; expires=" date = new Date(date.valueOf()+1000*60*60*24*365); document.cookie = agreement.concat(date.toUTCString()); alert('Děkujeme'); } function disagree() { // console.log('Nesouhlasím'); alert('Musí být vysloven souhlas!'); } </script> {% block javascripts %} {% endblock %}</head><body><div id="auth"> <div class="row h-100"> <div class="col-xl-6 col-md-12 col-12 h-100"> <div id="auth-left"> <div class="auth-logo"> <a href="{{ path('app_login') }}"><img src="{{ asset('img/Cest_prikaz_logo_1.png') }}" alt="Logo"></a> </div> {% block body %}{% endblock %} </div> </div> <div class="col-xl-6 d-none d-lg-block"> <div id="auth-right"> </div> </div> </div></div><!-- Modal --> <div class="modal fade" id="modalGDPR" data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1" aria-labelledby="modalGDPRLabel" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="modalGDPRLabel">Souhlas se zpracováním osobních údajů</h5> </div> <div class="modal-body text-center"> <p>Je třeba souhlasit se zpracováním osobních údajů.</p> <p><a href="{{ path('gdrp_agreement') }}">Celý text souhlasu je zde.</a></p> </div> <div class="modal-footer"> <button type="button" class="btn btn-secondary" id="disagree">Nesouhlasím</button> <button type="button" class="btn btn-primary" data-bs-dismiss="modal" id="agree">Souhlasím</button> </div> </div> </div> </div></body><script> var btnAgree = document.getElementById('agree'); var btnDisagree = document.getElementById('disagree'); btnAgree.addEventListener("click", agree); btnDisagree.addEventListener("click", disagree);</script></html>