templates/base.html.twig line 1

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.     <meta charset="UTF-8">
  5.     <title>{% block title %}Welcome!{% endblock %}</title>
  6.     <link rel="icon"
  7.           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.     {# Run `composer require symfony/webpack-encore-bundle` to start using Symfony UX #}
  9.     {% block stylesheets %}
  10.         {{ encore_entry_link_tags('app') }}
  11.     {% endblock %}
  12.     {% block javascripts %}
  13.         {{ encore_entry_script_tags('app') }}
  14.     {% endblock %}
  15. </head>
  16. <body {{ stimulus_controller('menu') }}>
  17. {% block body %}
  18.     <section class="dashboard_wrapper" {{ stimulus_target('menu', 'wrapper') }} >
  19.         {% block mobile_header %}
  20.             <header class="mobile-header">
  21.                 <a class="navbar-toggle-left" {{ stimulus_action('menu','toggle') }} data-bs-toggle="tooltip" data-bs-placement="bottom"
  22.                    data-bs-custom-class="tooltip1" title="Menü zuklappen">
  23.                     <i class="fa fas fa-bars"></i>
  24.                 </a>
  25.                 <a href="{{ path('app_dashboard') }}" class="logo">
  26.                     <img src="{{ asset('static/images/dashboard-logo.png') }}" alt="Logo" class="img-fluid">
  27.                 </a>
  28.                 <a data-bs-toggle="tooltip" {{ stimulus_action('menu','toggleRightSidebar') }} class="navbar-toggle1" data-bs-html="true" data-bs-placement="bottom"
  29.                    data-bs-custom-class="tooltip1" title="Seitenleiste <br> zuklappen">
  30.                     <i class="fa fas fa-ellipsis-vertical"></i>
  31.                 </a>
  32.             </header>
  33.         {% endblock %}
  34.         <div class="layout-box d-flex">
  35.             {% block left_sidebar %}
  36.                 {% if is_granted('ROLE_ADMIN') or is_granted('ROLE_PORTAL_ADMIN')%}
  37.                     {% include "partials/admin/_left_sidebar.htm.twig" %}
  38.                 {% else %}
  39.                     {% include "partials/_left_sidebar.htm.twig" %}
  40.                 {% endif %}
  41.             {% endblock %}
  42.             {% block content %}
  43.             {% endblock %}
  44.             {% block right_siderbar %}
  45.                 {% if is_granted('ROLE_ADMIN') or is_granted('ROLE_PORTAL_ADMIN')%}
  46.                     {% include 'partials/admin/_right_sidebar.html.twig' %}
  47.                 {% else %}
  48.                     {% include 'partials/_right_sidebar.html.twig' %}
  49.                 {% endif %}
  50.             {% endblock %}
  51.         </div>
  52.     </section>
  53. {% endblock %}
  54. {% if app.user.portal is defined %}
  55.     <style>
  56.         :root {
  57.             --blue:  {{ app.user.portal.secondaryColor}};
  58.             --blue1: #36bedb;
  59.             --bgColor: #d6dce6;
  60.             --grey: {{ app.user.portal.primaryColor}};
  61.             --darkblue: #2172ef;
  62.             --green: #31c9a7;
  63.             --blue2: #4f37de;
  64.             --red: #da374d;
  65.             --orange: #f0af13;
  66.             --white: #FFF;
  67.         }
  68.     </style>
  69. {% endif %}
  70. </body>
  71. </html>