<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>{% block title %}Welcome!{% endblock %}</title>
<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>">
{# Run `composer require symfony/webpack-encore-bundle` to start using Symfony UX #}
{% block stylesheets %}
{{ encore_entry_link_tags('app') }}
{% endblock %}
</head>
<body>
{% block body %}{% endblock %}
{% block javascripts %}
{{ encore_entry_script_tags('app') }}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script type="text/javascript">
function searchContacts() {
setTimeout(ensureActive, 2000);
if (document.getElementById('searchContacts').value !== '') {
location.href = '/searchContacts?text=' + document.getElementById('searchContacts').value;
}
}
function ensureActive() {
let element = $(".app-header-left .search-wrapper");
if (!element.attr("class").includes('active')) {
element.attr("class", "search-wrapper active manual");
}
}
$(document).ready(function () {
if (window.location.href.indexOf("reserved_by=") > -1) {
alert("Klient został wcześniej zarezerwowany przez " + window.location.href.substring(window.location.href.indexOf("reserved_by=") + "reserved_by=".length));
}
if (window.location.href.indexOf("reserved_now=") > -1) {
alert("Zarezerwowałeś klienta do " + window.location.href.substring(window.location.href.indexOf("reserved_now=") + "reserved_now=".length));
}
if (window.location.href.indexOf("message=") > -1) {
alert(window.location.href.substring(window.location.href.indexOf("message=") + "message=".length));
}
});
</script>
{% endblock %}
</body>
</html>