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.     {% block metadata %}{% endblock %}
  7.     <link rel="icon" type="image/x-icon" href="{{ asset('css/icon/favicon.ico') }}" />
  8.     <link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.13.1/css/dataTables.bootstrap5.min.css">
  9. {#    <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/5.2.0/css/bootstrap.min.css">#}
  10. {#    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-Zenh87qX5JnK2Jl0vWa8Ck2rdkQ2Bzep5IDxbcnCeuOxjzrPF/et3URy9Bv1WTRi" crossorigin="anonymous">#}
  11.     <link rel="stylesheet" type="text/css" href="{{ asset('css/jquery.dataTables.min.css') }}">
  12.     <link rel="stylesheet" type="text/css" href="{{ asset('css/buttons.dataTables.min.css') }}">
  13.     <link rel="stylesheet" type="text/css" href="{{ asset('css/datepicker.min.css') }}">
  14.     <link rel="stylesheet" type="text/css" href="{{ asset('css/style.css') }}">
  15.     <link rel="manifest" href="{{ asset('manifest.json') }}">
  16.     <script src="{{ asset('js/AddServiceWorker.js') }}"></script>
  17.     <!-- Font Awesome -->
  18.     <link
  19.             href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css"
  20.             rel="stylesheet"
  21.     />
  22.     <!-- Google Fonts -->
  23.     <link
  24.             href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap"
  25.             rel="stylesheet"
  26.     />
  27.     <!-- MDB -->
  28.     <link
  29.             href="https://cdnjs.cloudflare.com/ajax/libs/mdb-ui-kit/6.0.1/mdb.min.css"
  30.             rel="stylesheet"
  31.     />
  32.     {% block stylesheets %}{% endblock %}
  33. </head>
  34. <body style="display: flex;
  35.   flex-direction: column;">
  36. <div class="header" style="position: relative">
  37.     <div class="logo-login">
  38.         <nav class="navbar navbar-expand-lg navbar navbar-dark bg-primary">
  39.             <div class="container-fluid">
  40.                 <a class="navbar-brand" href="#">Archiwizator</a>
  41.                 <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNavDropdown" aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation">
  42.                     <span class="navbar-toggler-icon"></span>
  43.                 </button>
  44.                 {% if is_granted("ROLE_USER") %}
  45.                 <div class="collapse navbar-collapse" id="navbarNavDropdown">
  46.                     <ul class="navbar-nav">
  47.                         <li class="nav-item">
  48.                             <a class="nav-link active" aria-current="page" href="{{ path('home') }}">Start</a>
  49.                         </li>
  50.                         <li class="nav-item">
  51.                             <a class="nav-link" id="sketch-list-nav" href="{{ path('sketch-list') }}">Tabela szkice</a>
  52.                         </li>
  53.                         <li class="nav-item">
  54.                             <a class="nav-link" id="archives-list-nav" href="{{ path('archives-list') }}">Archiwum</a>
  55.                         </li>
  56.                         <li class="nav-item dropdown">
  57.                             <a
  58.                                     class="nav-link dropdown-toggle"
  59.                                     href="#"
  60.                                     id="navbarDropdown"
  61.                                     role="button"
  62.                                     data-mdb-toggle="dropdown"
  63.                                     aria-expanded="false"
  64.                             >
  65.                                 <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-gear" viewBox="0 0 16 16">
  66.                                     <path d="M8 4.754a3.246 3.246 0 1 0 0 6.492 3.246 3.246 0 0 0 0-6.492zM5.754 8a2.246 2.246 0 1 1 4.492 0 2.246 2.246 0 0 1-4.492 0z"/>
  67.                                     <path d="M9.796 1.343c-.527-1.79-3.065-1.79-3.592 0l-.094.319a.873.873 0 0 1-1.255.52l-.292-.16c-1.64-.892-3.433.902-2.54 2.541l.159.292a.873.873 0 0 1-.52 1.255l-.319.094c-1.79.527-1.79 3.065 0 3.592l.319.094a.873.873 0 0 1 .52 1.255l-.16.292c-.892 1.64.901 3.434 2.541 2.54l.292-.159a.873.873 0 0 1 1.255.52l.094.319c.527 1.79 3.065 1.79 3.592 0l.094-.319a.873.873 0 0 1 1.255-.52l.292.16c1.64.893 3.434-.902 2.54-2.541l-.159-.292a.873.873 0 0 1 .52-1.255l.319-.094c1.79-.527 1.79-3.065 0-3.592l-.319-.094a.873.873 0 0 1-.52-1.255l.16-.292c.893-1.64-.902-3.433-2.541-2.54l-.292.159a.873.873 0 0 1-1.255-.52l-.094-.319zm-2.633.283c.246-.835 1.428-.835 1.674 0l.094.319a1.873 1.873 0 0 0 2.693 1.115l.291-.16c.764-.415 1.6.42 1.184 1.185l-.159.292a1.873 1.873 0 0 0 1.116 2.692l.318.094c.835.246.835 1.428 0 1.674l-.319.094a1.873 1.873 0 0 0-1.115 2.693l.16.291c.415.764-.42 1.6-1.185 1.184l-.291-.159a1.873 1.873 0 0 0-2.693 1.116l-.094.318c-.246.835-1.428.835-1.674 0l-.094-.319a1.873 1.873 0 0 0-2.692-1.115l-.292.16c-.764.415-1.6-.42-1.184-1.185l.159-.291A1.873 1.873 0 0 0 1.945 8.93l-.319-.094c-.835-.246-.835-1.428 0-1.674l.319-.094A1.873 1.873 0 0 0 3.06 4.377l-.16-.292c-.415-.764.42-1.6 1.185-1.184l.292.159a1.873 1.873 0 0 0 2.692-1.115l.094-.319z"/>
  68.                                 </svg> Ustawienia
  69.                             </a>
  70.                             <ul class="dropdown-menu" aria-labelledby="navbarDropdown">
  71.                                 <li><a class="dropdown-item" href={{ path('user-list') }}>Użytkownicy</a></li>
  72.                                 <li><a class="dropdown-item" href="{{ path('company-type-list') }}">Typ wydziału/zakładu</a></li>
  73.                                 <li><a class="dropdown-item" href="{{ path('department-list') }}">Wdziały/Zaklady</a></li>
  74.                                 <li><a class="dropdown-item" href="{{ path('industry-list') }}">Branże</a></li>
  75.                                 <li><hr class="dropdown-divider"></li>
  76.                                 <li><a class="dropdown-item" href="#">...</a></li>
  77.                             </ul>
  78.                         </li>
  79.                     </ul>
  80.                     <div class="user-login" style=" float: right; color: white; line-height: 29px;text-align: end; width: 77%;">
  81.                         <span class="badge badge-success">
  82.         {% if is_granted("ROLE_USER") %}
  83.            Zalogowany jako: {{ app.user.username }}
  84.         {% endif %}
  85.         </span><a href="/user-details/{{ app.user.id}}"> <span class="badge badge-inverse">Zobacz profil</span></a> {% if app.user %} <a><a class="btn btn-light" href="{{ path('app_logout') }}" >{{ 'Wyloguj' }}</a></a>
  86.                         {% endif %}
  87.                     </div>
  88.                 </div>
  89.                 {% endif %}
  90.             </div>
  91.         </nav>
  92.     </div>
  93. </div>
  94. {% block content %}
  95.     {% for message in app.flashes('success') %}
  96.         <div class="alert alert-success">
  97.             {{ message }}
  98.         </div>
  99.     {% endfor %}
  100.     {% for label, messages in app.flashes(['success', 'warning', 'danger', 'notice']) %}
  101.         {% for message in messages %}
  102.             <div class="alert alert-{{ label }} text-center">
  103.                 {{ message|raw }}
  104.             </div>
  105.         {% endfor %}
  106.     {% endfor %}
  107.     <div class="content col-12">
  108.         {% block body %}{% endblock %}
  109.     </div>
  110. {% endblock %}
  111. <!-- Footer -->
  112. <footer class="footer">
  113.     <br>
  114.     <br>
  115.     <br>
  116.     <div class="text-center p-4" style="background-color: rgba(0, 0, 0, 0.05);">
  117.         © 2022 v:
  118.         <a class="text-reset fw-bold">1.0.0</a>
  119.     </div>
  120.     <!-- Copyright -->
  121. </footer>
  122. <!-- Footer -->
  123. <div id="loader" class="justify-content-center flex-column align-items-center d-none" style="position: absolute; left:0; right: 0; top: 0; bottom: 0; background: rgba(220,220,220, 0.9); z-index: 999999999999999999999999999;">
  124.     <div class="spinner-border" style="width: 3rem; height: 3rem;" role="status">
  125.         <span class="sr-only">Loading...</span>
  126.     </div>
  127.     <h4>Przetwarzanie...</h4>
  128. </div>
  129. <script
  130.         type="text/javascript"
  131.         src="https://cdnjs.cloudflare.com/ajax/libs/mdb-ui-kit/6.0.1/mdb.min.js"
  132. ></script>
  133. <script src="{{ asset('js/jquery-3.3.1.min.js') }}"></script>
  134. <script src="{{ asset('js/jquery.dataTables.min.js') }}"></script>
  135. <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.3/umd/popper.min.js" integrity="sha384-vFJXuSJphROIrBnz7yo7oB41mKfc8JzQZiCq4NCceLEaO4IHwicKwpJf9c9IpFgh" crossorigin="anonymous"></script>
  136. <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/js/bootstrap.min.js" integrity="sha384-alpBpkh1PFOepccYVYDB4do5UnbKysX5WZXm3XxPqe5iKTfUKjNkCk9SaVuEZflJ" crossorigin="anonymous"></script>
  137. <script src="{{ asset('js/dataTables.buttons.min.js') }}"></script>
  138. <script src="{{ asset('js/popper.min.js') }}"></script>
  139. <script src="{{ asset('js/jszip.min.js') }}"></script>
  140. <script src="{{ asset('js/pdfmake.min.js') }}"></script>
  141. <script src="{{ asset('js/vfs_fonts.js') }}"></script>
  142. <script src="{{ asset('js/buttons.html5.min.js') }}"></script>
  143. <script src="{{ asset('js/buttons.print.min.js') }}"></script>
  144. <script src="{{ asset('js/buttons.colVis.min.js') }}"></script>
  145. {% block javascripts %}{% endblock %}
  146. </body>
  147. </html>