templates/base.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html lang="en" class="light">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1" />
  6. <title>{% block title %}Dashboard{% endblock %}</title>
  7. <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>">
  8. <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
  9. <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css" rel="stylesheet">
  10. <script
  11. src="https://code.jquery.com/jquery-3.7.1.min.js"
  12. integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo="
  13. crossorigin="anonymous"></script>
  14. {% if app.request.attributes.get('_route') == 'app_login' %}
  15. <link rel="stylesheet" href="{{ asset('css/login.css') }}">
  16. {% else %}
  17. <link rel="stylesheet" href="{{ asset('css/style.css') }}">
  18. {% endif %}
  19. {% block stylesheets %}
  20. {{ encore_entry_link_tags('app') }}
  21. {% endblock %}
  22. {% block javascripts %}
  23. {{ encore_entry_script_tags('app') }}
  24. {% endblock %}
  25. <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
  26. <script src="https://cdn.jsdelivr.net/npm/chartjs-plugin-annotation"></script>
  27. <script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.slim.min.js"></script>
  28. <script src="https://cdn.jsdelivr.net/npm/bootstrap@4.5.2/dist/js/bootstrap.bundle.min.js"></script>
  29. </head>
  30. <body>
  31. {% if app.request.attributes.get('_route') == 'app_login' %}
  32. {% block content %}{% endblock %}
  33. {% else %}
  34. <div class="row">
  35. <button id="sidebarToggle" class="btn btn-primary d-md-none">
  36. ☰ Menü
  37. </button>
  38. <!-- Sidebar -->
  39. {% include 'partials/sidebar.html.twig' %}
  40. <!-- Content -->
  41. <main role="main" class="col-md-10 ml-sm-auto col-lg-10 pt-3 pl-4 mr-0 pr-0">
  42. {% include 'partials/header.html.twig' %}
  43. <div class="row d-flex flex-column main-column-height">
  44. {% block body %}{% endblock %}
  45. </div>
  46. {% include 'partials/footer.html.twig' %}
  47. </main>
  48. </div>
  49. {% endif %}
  50. </body>
  51. </html>