<!DOCTYPE html><html data-bs-theme="light"> <head> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta charset="UTF-8"> <title>{% block title %}{{ titolo }}{% 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') }} {# Fogli di stile personalizzati #} {# Includere Bootstrap CSS #} <link rel="stylesheet" href="{{ asset('css/bootstrap.min.css') }}"> <link rel="stylesheet" href="{{ asset('bootstrap-icons/bootstrap-icons.min.css') }}"> {% endblock %} {% block javascripts %} {{ encore_entry_script_tags('app') }} {# Includere Bootstrap JS #} <script src="{{ asset('js/bootstrap.bundle.min.js') }}"></script> <script> document.addEventListener("DOMContentLoaded", function() { var tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]')); var tooltipList = tooltipTriggerList.map(function (tooltipTriggerEl) { return new bootstrap.Tooltip(tooltipTriggerEl); }); }); </script> {% endblock %} </head> <body> <nav id="navbar" class="navbar navbar-dark bg-dark no-print"> <div class="container-fluid"> <!-- Titolo Navbar --> <h1 class="navbar-brand fs-3">{{ titolo }}</h1> <!-- Bottone per aprire il menu su mobile --> <button class="navbar-toggler btn-lg" type="button" data-bs-toggle="offcanvas" data-bs-target="#offcanvasDarkNavbar" aria-controls="offcanvasDarkNavbar" aria-label="Toggle navigation"> <span class="navbar-toggler-icon"></span> </button> <!-- Offcanvas Menu --> <div class="offcanvas offcanvas-end text-bg-dark" tabindex="-1" id="offcanvasDarkNavbar" aria-labelledby="offcanvasDarkNavbarLabel"> <div class="offcanvas-header"> <h5 class="offcanvas-title fs-3" id="offcanvasDarkNavbarLabel">Gestione Cantiere!</h5> <button type="button" class="btn-close btn-close-white" data-bs-dismiss="offcanvas" aria-label="Close"></button> </div> <div class="offcanvas-body"> <ul class="navbar-nav justify-content-end flex-grow-1 pe-3"> <li class="nav-item"> <a class="nav-link fs-4 active" href="/">🏠 Pagina iniziale</a> </li> {% if app.user is not null and app.user.roles is not empty %} {% if 'ROLE_REPORT' not in app.user.roles %} <li class="nav-item"> <a class="nav-link fs-4 active" href="{{ path('app_lavori_edit', {'tipo': 'new', 'id': 0}) }}">➕ Nuova attività</a> </li> {% endif %} {% endif %} {% if app.user is not null and app.user.roles is not empty %} {% if 'ROLE_OPERAIO' in app.user.roles or 'ROLE_OPERATORE' in app.user.roles or 'ROLE_AMMINISTRATORE' in app.user.roles %} <li class="nav-item"> <a class="nav-link fs-4 active" href="/lavori">📋 Elenco attività</a> </li> {% endif %} {% endif %} {% if app.user is not null and app.user.roles is not empty %} {% if 'ROLE_OPERATORE' in app.user.roles or 'ROLE_REPORT' in app.user.roles or 'ROLE_AMMINISTRATORE' in app.user.roles %} <li class="nav-item"> <a class="nav-link fs-4 active" href="/report">📊 Report</a> </li> {% endif %} {% endif %} {% if app.user is not null and app.user.roles is not empty %} {% if 'ROLE_OPERATORE' in app.user.roles or 'ROLE_AMMINISTRATORE' in app.user.roles %} <li class="nav-item"> <a class="nav-link fs-4 active" href="/impostazioni">⚙️ Impostazioni</a> </li> {% endif %} {% endif %} <li class="nav-item"> <a class="nav-link fs-4" href="/logout">🚪 Esci</a> </li> </ul> </div> </div> </div> </nav> {% block body %}{% endblock %} </body> <style> @media print { .no-print { display: none; } } </style><style></style></html>