templates/base.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html>
  3.     <head>
  4.         <meta charset="UTF-8">
  5.         <title>{% block title %}Welcome!{% endblock %}</title>
  6.         <link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>⚫️</text></svg>">
  7.         {# Run `composer require symfony/webpack-encore-bundle` to start using Symfony UX #}
  8.         {% block stylesheets %}
  9.             {{ encore_entry_link_tags('app') }}
  10.         {% endblock %}
  11.     </head>
  12.     <body>
  13.         {% block body %}{% endblock %}
  14.         {% block javascripts %}
  15.             {{ encore_entry_script_tags('app') }}
  16.             <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
  17.             <script type="text/javascript">
  18.                 function searchContacts() {
  19.                     setTimeout(ensureActive, 2000);
  20.                     if (document.getElementById('searchContacts').value !== '') {
  21.                         location.href = '/searchContacts?text=' + document.getElementById('searchContacts').value;
  22.                     }
  23.                 }
  24.                 function ensureActive() {
  25.                     let element = $(".app-header-left .search-wrapper");
  26.                     if (!element.attr("class").includes('active')) {
  27.                         element.attr("class", "search-wrapper active manual");
  28.                     }
  29.                 }
  30.                 $(document).ready(function () {
  31.                     if (window.location.href.indexOf("reserved_by=") > -1) {
  32.                         alert("Klient został wcześniej zarezerwowany przez " + window.location.href.substring(window.location.href.indexOf("reserved_by=") + "reserved_by=".length));
  33.                     }
  34.                     if (window.location.href.indexOf("reserved_now=") > -1) {
  35.                         alert("Zarezerwowałeś klienta do " + window.location.href.substring(window.location.href.indexOf("reserved_now=") + "reserved_now=".length));
  36.                     }
  37.                     if (window.location.href.indexOf("message=") > -1) {
  38.                         alert(window.location.href.substring(window.location.href.indexOf("message=") + "message=".length));
  39.                     }
  40.                 });
  41.             </script>
  42.         {% endblock %}
  43.     </body>
  44. </html>