templates/nav/user_navigation_rechts.html.twig line 1

Open in your IDE?
  1. <!-- Toolbar-->
  2. <div class="navbar-toolbar d-flex align-items-center order-lg-3">
  3.     {#
  4.     <button class="navbar-toggler px-0" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse">
  5.         <span class="navbar-toggler-icon"></span>
  6.     </button>
  7.     #}
  8.     <div class="d-none d-xl-block me-3">
  9.         <div class="input-group">
  10.             <i class="ci-search position-absolute top-50 end-0 translate-middle-y text-muted me-3"></i>
  11.             <input class="form-control rounded-start input-suchbegriff ps-2" type="text" placeholder="Seminar suchen">
  12.         </div>
  13.     </div>
  14.     <a class="navbar-tool d-md-flex d-none d-md-block d-xl-none" href="javascript:void(0)"
  15.        data-bs-toggle="collapse" data-bs-target="#searchBox" role="button" aria-expanded="false"
  16.        aria-controls="searchBox">
  17.         <span class="navbar-tool-tooltip zindex-10">Suche</span>
  18.         <div class="navbar-tool-icon-box"><i class="navbar-tool-icon ci-search"></i></div>
  19.     </a>
  20.     <div class="favoriten-handy-navigation-link {% if is_granted('ROLE_MITGLIED') %}d-none{% endif %}">
  21.         <a class="navbar-tool d-none d-md-flex me-2"
  22.            href="{% if is_granted('ROLE_MITGLIED') %}{{ path ('user_profil_mein_profil_info', {seite:'favoriten'}) }}{% else %}{{ path ('user_gast_favoriten') }}{% endif %}">
  23.             <span class="navbar-tool-tooltip zindex-10">Favoriten</span>
  24.             <div class="navbar-tool-icon-box bg-secondary rounded-circle"><i class="navbar-tool-icon ci-heart"></i></div>
  25.         </a>
  26.     </div>
  27.     {% if not is_granted('ROLE_MITGLIED') %}
  28.         <a class="navbar-tool me-2 d-lg-flex" href="{{ path ('app_login') }}"><span class="navbar-tool-tooltip zindex-10">Login</span>
  29.             <div class="navbar-tool-icon-box bg-secondary"><i class="navbar-tool-icon ci-user"></i></div>
  30.         </a>
  31.     {% endif %}
  32.     {% if is_granted('ROLE_MITGLIED') %}
  33.         <div class="navbar-tool dropdown dropdown-click">
  34.             <a class="navbar-tool-icon-box dropdown-toggle bg-secondary" id="nav-oben-notification-user-glocke-warnung" href="#">
  35.                 <span id="nav-oben-notification-user-glocke"
  36.                       style="visibility: hidden"
  37.                       class="navbar-tool-label">0</span>
  38.                 <i class="navbar-tool-icon ci-bell"></i>
  39.             </a>
  40.             <div class="dropdown-menu dropdown-menu-end notification-dropdown">
  41.                 <div style="min-width: 14rem;">
  42.                  <span class="dropdown-header">
  43.                     <b>Benachrichtigungen</b>
  44.                 </span>
  45.                     <div id="user-navigation-notification">
  46.                         {#
  47.                         Hier wird die Notification über Ajax eingebunden
  48.                         #}
  49.                     </div>
  50.                 </div>
  51.             </div>
  52.         </div>
  53.         {% if is_granted('ROLE_CELSEO_MASTERADMIN') %}
  54.             <a class="navbar-tool ms-2" href="{{ path ('user_firma_projektmappe', {seite:'Projekte', projektId:0, aufgabeId:0, aufgabeUserId:0, terminId:0}) }}">
  55.                 <span class="navbar-tool-tooltip zindex-10">Projektmappe</span>
  56.                 <div class="navbar-tool-icon-box bg-secondary rounded-circle">
  57.                     <span id="nav-oben-notification-stempeluhr" style="visibility: hidden" class="navbar-tool-label"><i class="mdi mdi-timer-sand"></i></span>
  58.                     <span id="nav-oben-notification-projekte" style="visibility: hidden" class="navbar-tool-label"><i class="ci-bell"></i></span>
  59.                     <i class="navbar-tool-icon mdi mdi-progress-wrench fs-4"></i>
  60.                 </div>
  61.             </a>
  62.         {% endif %}
  63.         {% if app.user.firmenProfil.id is defined and not null %}
  64.             <div class="navbar-tool dropdown ms-2">
  65.                 {% set firmenpfad = path ('user_firma',{id:0, seite:'info'}) %}
  66.                 {% if app.user.firmenProfil.profilArt == 2 or app.user.firmenProfil.profilArt == 22 or app.user.firmenProfil.profilArt == 3 %}
  67.                     {% set firmenpfad = path ('admin_firmenadmin_start') %}
  68.                 {% endif %}
  69.                 <a class="navbar-tool-icon-box border dropdown-toggle" href="{{ firmenpfad }}" style="overflow: hidden">
  70.                     {% if app.user.firmenprofil.logoKlein|length > 0 %}
  71.                         <img class="rounded-circle" src="{{ asset('uploads/firmen/logo/' ~ app.user.firmenprofil.id ~ '/'~ app.user.firmenprofil.logoKlein ) }}" alt="Firma">
  72.                     {% else %}
  73.                         {% if app.user.firmenprofil.logo|length > 0 %}
  74.                             <img class="rounded-circle" src="{{ asset('uploads/firmen/logo/' ~ app.user.firmenprofil.id ~ '/'~ app.user.firmenprofil.logo ) }}" alt="Firma">
  75.                         {% else %}
  76.                             <i class="navbar-tool-icon mdi mdi-factory"></i>
  77.                         {% endif %}
  78.                     {% endif %}
  79.                 </a>
  80.                 {% if app.user.firmenProfil.profilArt == 2 or app.user.firmenProfil.profilArt == 22 or app.user.firmenProfil.profilArt == 3 %}
  81.                 {% else %}
  82.                     <div class="dropdown-menu dropdown-menu-end">
  83.                         <div style="min-width: 14rem;">
  84.                             <span class="dropdown-header"><b>{{ app.user.firmenProfil.firmenname }}</b></span>
  85.                             <a class="dropdown-item d-flex align-items-center" href="{{ path ('user_firma',{id:0, seite:'info'}) }}">
  86.                                 <i class="ci-briefcase opacity-60 me-2"></i>Firmenintern
  87.                             </a>
  88.                             {% if is_granted('ROLE_FIRMA_ADMIN') %}
  89.                                 {% if is_granted('ROLE_CELSEO_MASTERADMIN') %}
  90.                                     <a class="dropdown-item d-flex align-items-center" href="{{ path ('admin_start') }}">
  91.                                         <i class="mdi mdi-security opacity-60 me-2"></i>Adminbereich
  92.                                     </a>
  93.                                 {% else %}
  94.                                     <a class="dropdown-item d-flex align-items-center" href="{{ path ('admin_firmenadmin_start') }}">
  95.                                         <i class="mdi mdi-security opacity-60 me-2"></i>Adminbereich
  96.                                     </a>
  97.                                 {% endif %}
  98.                             {% endif %}
  99.                             {% if app.user.firmenProfil != null and app.request.server.get('WEB_UMGEBUNG') != 'WEB' %}
  100.                                 <div class="dropdown-divider"></div>
  101.                                 <span class="dropdown-header"><b>CELSEO Intranet Login</b></span>
  102.                                 <div id="admin-celseo-intranet-zugang">
  103.                                 </div>
  104.                                 <a class="dropdown-item d-flex align-items-center"
  105.                                    href="{{ path ('user_profil_mein_profil_info', {seite:'intranet'}) }}">
  106.                                     <i class="ci-server opacity-60 me-2"></i>Intranet Verbindung verwalten
  107.                                 </a>
  108.                             {% endif %}
  109.                         </div>
  110.                     </div>
  111.                 {% endif %}
  112.             </div>
  113.         {% endif %}
  114.         <div class="navbar-tool dropdown ms-2">
  115.             <a class="navbar-tool-icon-box border dropdown-toggle" href="{{ path ('user_profil_mein_profil_info', {seite:'dashboard'}) }}">
  116.                 <span id="freigabe-celseo-support-symbol"
  117.                       style="visibility: {% if app.user.userProfil.celseoSupportFreigabe == null %}hidden{% else %}visible{% endif %}"
  118.                       class="navbar-tool-label bg-primary"><i class="ms-1 ci-earphones me-2"></i></span>
  119.                 {% if app.user.userProfil.profilbild|length > 0 %}
  120.                     <img class="rounded-circle" src="{{ path('user_profilbild') }}?profilbild={{ app.user.userProfil.profilbild }}" alt="Profil">
  121.                 {% else %}
  122.                     <img class="rounded-circle" src="{{ asset('img/campus/kein_user.png') }}" alt="Profil">
  123.                 {% endif %}
  124.             </a>
  125.             <div class="dropdown-menu dropdown-menu-end">
  126.                 <div style="min-width: 14rem;">
  127.                  <span class="dropdown-header">
  128.                     <b>Account</b>
  129.                     <br><span class="small">
  130.                         {% if app.user.userProfil.nachname|length > 0 %}
  131.                             {{ app.user.userProfil.vorname ~ ' ' ~ app.user.userProfil.nachname }}
  132.                         {% else %}
  133.                             {{ app.user.email }}
  134.                         {% endif %}
  135.                     </span>
  136.                 </span>
  137.                     <a class="dropdown-item d-flex align-items-center" href="{{ path ('user_profil_mein_profil_info', {seite:'termine'}) }}">
  138.                         <i class="mdi mdi-calendar-month-outline opacity-60 me-2"></i>Schulungstermine
  139.                     </a>
  140.                     <a class="dropdown-item d-flex align-items-center" href="{{ path ('user_profil_mein_profil_info', {seite:'ondemand'}) }}">
  141.                         <i class="ci-video opacity-60 me-2"></i>On-Demand Videos
  142.                     </a>
  143.                     <a class="dropdown-item d-flex align-items-center" href="{{ path ('user_profil_mein_profil_info', {seite:'buchungen'}) }}">
  144.                         <i class="ci-bag opacity-60 me-2"></i>Buchungen
  145.                     </a>
  146.                     {% if app.user.interneSchulungenZertifikate is defined and app.user.interneSchulungenZertifikate|length > 0 %}
  147.                         <a class="dropdown-item d-flex align-items-center" href="{{ path ('user_profil_mein_profil_info', {seite:'zertifikate'}) }}">
  148.                             <i class="ci-document opacity-60 me-2"></i>
  149.                             Zertifikate
  150.                         </a>
  151.                     {% endif %}
  152.                     <a class="dropdown-item d-flex align-items-center" href="{{ path ('user_profil_mein_profil_info', {seite:'favoriten'}) }}">
  153.                         <i class="ci-heart opacity-60 me-2"></i>
  154.                         Favoriten
  155.                     </a>
  156.                     <div class="dropdown-divider"></div>
  157.                     <a class="dropdown-item d-flex align-items-center" href="{{ path ('user_profil_mein_profil_info', {seite:'bearbeiten'}) }}"><i
  158.                                 class="ci-user opacity-60 me-2"></i>Profil</a>
  159.                     <div class="dropdown-divider"></div>
  160.                     <a class="dropdown-item d-flex align-items-center" href="{{ path ('app_logout') }}"><i class="ci-sign-out opacity-60 me-2"></i>Logout</a>
  161.                 </div>
  162.             </div>
  163.         </div>
  164.         <div class="dropdown-menu dropdown-menu-end">
  165.             <div style="min-width: 14rem;">
  166.             </div>
  167.         </div>
  168.         <div class="warenkorb-navigation-link d-none">
  169.             <div class="navbar-tool dropdown ms-2 d-none d-md-flex">
  170.                 <a class="navbar-tool-icon-box bg-secondary dropdown-toggle" href="{{ path ('user_profil_mein_profil_info', {seite:'warenkorb'}) }}">
  171.             <span id="warenkorb-navigation-anzahl"
  172.                   class="navbar-tool-label "
  173.                   style="visibility: hidden">0
  174.             </span>
  175.                     <i class="navbar-tool-icon ci-cart"></i>
  176.                 </a>
  177.                 <!-- Cart dropdown-->
  178.                 <div class="dropdown-menu dropdown-menu-end">
  179.                     <div class="widget widget-cart px-3 pt-2 pb-3" style="width: 30rem;">
  180.                         <div id="user-navigation-warenkorb">
  181.                         </div>
  182.                     </div>
  183.                 </div>
  184.             </div>
  185.         </div>
  186.     {% endif %}
  187.     {% if is_granted('ROLE_CELSEO_MASTERADMIN') %}
  188.         <a class="navbar-tool ms-2 d-md-flex d-none d-md-block" href="{{ path ('faq_index') }}">
  189.             <span class="navbar-tool-tooltip zindex-10">FAQ (nur CELSEO)</span>
  190.             <div class="navbar-tool-icon-box bg-secondary rounded-circle"><i class="navbar-tool-icon mdi mdi-help"></i></div>
  191.         </a>
  192.     {% endif %}
  193.     <button class="navbar-toggler px-0 ms-3 button-mobiles-menu" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse">
  194.         <span class="navbar-toggler-icon"></span>
  195.     </button>
  196. </div>