templates/Support/Layout/sidebar.html.twig line 1

Open in your IDE?
  1. <div class="c-sidebar c-sidebar-fixed c-sidebar-lg-show" id="sidebar">
  2.     <div id="sidebar-title">
  3.         <a href={{ path('support_index') }}>
  4.             <div class="p-2 c-sidebar-brand d-md-down-none">
  5.                 {% if app.request.headers.get('Host') == domain_postman_support %}
  6.                     <img src="{{ asset('build/support/img/logo.png') }}" alt="logo" id="postman-logo">
  7.                     <h2>Superpošťák</h2>
  8.                 {% elseif app.request.headers.get('Host') == domain_delivery_support %}
  9.                     <img src="{{ asset('build/support/img/logo.png') }}" alt="logo" id="postman-logo">
  10.                     <h2>Supervýdejny</h2>
  11.                 {% endif %}
  12.             </div>
  13.         </a>
  14.     </div>
  15.     <ul class="c-sidebar-nav">
  16.         {% if is_granted('ROLE_USER') %}
  17.             <li class="c-sidebar-nav-item">
  18.                 <a class="c-sidebar-nav-link" href="{{ path('support_index') }}">
  19.                     <span class="c-sidebar-nav-icon cil-home"></span>
  20.                     {% trans %}Rozcestník{% endtrans %}
  21.                 </a>
  22.             </li>
  23.         {% endif %}
  24.         {% if is_granted('ROLE_ACTION_DELIVERY_POINT_RECEIVE_PACKAGE') %}
  25.             <li class="c-sidebar-nav-item">
  26.                 <a class="c-sidebar-nav-link" href="{{ path('support_delivery_point_receiving_packages') }}">
  27.                     <span class="c-sidebar-nav-icon cil-arrow-thick-to-right"></span>
  28.                     {% trans from 'support'%}Příjem na výdejnu{% endtrans %}
  29.                 </a>
  30.             </li>
  31.         {% endif %}
  32.         {% if is_granted('ROLE_ACTION_DELIVERY_POINT_PACKAGE_HANDOVER') %}
  33.             <li class="c-sidebar-nav-item">
  34.                 <a class="c-sidebar-nav-link" href="{{ path('support_delivery_point_package_handover') }}">
  35.                     <span class="c-sidebar-nav-icon cil-arrow-thick-to-left"></span>
  36.                     {% trans %}Výdej balíků{% endtrans %}
  37.                 </a>
  38.             </li>
  39.         {% endif %}
  40.         {% if is_granted('ROLE_ACTION_LIST_DELIVERY_POINT_PACKAGES') and app.user.deliveryPoint is defined %}
  41.             <li class="c-sidebar-nav-item">
  42.                 <a class="c-sidebar-nav-link" href="{{ path('support_delivery_point_list_packages', { deliveryPointId : app.user.deliveryPoint.id})  }}">
  43.                     <span class="c-sidebar-nav-icon cil-list"></span>
  44.                     {% trans %}Seznam balíků na výdejně{% endtrans %}
  45.                 </a>
  46.             </li>
  47.         {% endif %}
  48.         {% if is_granted('ROLE_ACTION_RECEIVE_PACKAGE') %}
  49.             <li class="c-sidebar-nav-item">
  50.                 <a class="c-sidebar-nav-link" href="{{ path('support_receiving_package') }}">
  51.                     <span class="c-sidebar-nav-icon cil-exit-to-app"></span>
  52.                     {% trans %}Přijem balíků pošťák{% endtrans %}
  53.                 </a>
  54.             </li>
  55.         {% endif %}
  56.         {% if is_granted('ROLE_ACTION_DISPATCHER_MENU') %}
  57.             <li class="c-sidebar-nav-item">
  58.                 <a class="c-sidebar-nav-link" href="{{ path('support_delivery_receiving_package') }}">
  59.                     <span class="c-sidebar-nav-icon cil-exit-to-app"></span>
  60.                     {% trans %}Přijem balíků výdejny {% endtrans %}
  61.                 </a>
  62.             </li>
  63.         {% endif %}
  64.         {% if is_granted('ROLE_ACTION_SEE_MENU_POSTMAN') and is_granted('ROLE_ACTION_SUPPORT_MENU')%}
  65.             <li class="c-sidebar-nav-item">
  66.                 <a class="c-sidebar-nav-link" href="{{ path('support_orders_postman') }}">
  67.                     <span class="c-sidebar-nav-icon cil-list"></span>
  68.                     {% trans %}Seznam objednávek pošťáka{% endtrans %}
  69.                 </a>
  70.             </li>
  71.         {% endif %}
  72.         {% if is_granted('ROLE_ACTION_SEE_MENU_DELIVERY') and is_granted('ROLE_ACTION_SUPPORT_MENU')%}
  73.             <li class="c-sidebar-nav-item">
  74.                 <a class="c-sidebar-nav-link" href="{{ path('support_orders_delivery') }}">
  75.                     <span class="c-sidebar-nav-icon cil-list"></span>
  76.                     {% trans %}Seznam objednávek výdejen{% endtrans %}
  77.                 </a>
  78.             </li>
  79.         {% endif %}
  80.         {% if is_granted('ROLE_ACTION_SEE_MENU_POSTMAN') and is_granted('ROLE_ACTION_SUPPORT_MENU') %}
  81.             <li class="c-sidebar-nav-item">
  82.                 <a class="c-sidebar-nav-link" href="{{ path('support_error_packages',{'projectCode':project_postman_code}) }}">
  83.                     <span class="c-sidebar-nav-icon cil-list"></span>
  84.                     {% trans from 'support'%}Problémové balíky pošťák{% endtrans %}
  85.                 </a>
  86.             </li>
  87.         {% endif %}
  88.         {% if is_granted('ROLE_ACTION_DELIVERY_POINT_SHOW_PRICELIST') %}
  89.             <li class="c-sidebar-nav-item">
  90.                 <a class="c-sidebar-nav-link" href="{{ path('support_delivery_point_show_pricelist') }}">
  91.                     <span class="c-sidebar-nav-icon cil-money"></span>
  92.                     {% trans from 'support'%}Ceník Supervýdejny{% endtrans %}
  93.                 </a>
  94.             </li>
  95.         {% endif %}
  96.         {% if is_granted('ROLE_ACTION_ACCESS_ADMINER') %}
  97.             <li class="c-sidebar-nav-item">
  98.                 <a class="c-sidebar-nav-link" href="{{ path('tools_adminer' ) }}">
  99.                     <span class="c-sidebar-nav-icon cil-cloud"></span>
  100.                     {% trans %}Adminer{% endtrans %}
  101.                 </a>
  102.             </li>
  103.         {% endif %}
  104.     </ul>
  105.     {{render(controller('App\\Controller\\Support\\UtilityController::supportContact')) }}
  106.     {% if app.user is not null %}
  107.         <div>
  108.             <ul class="c-sidebar-nav">
  109.                 {% if is_granted('ROLE_ACTION_SEE_VERSION') %}
  110.                     <p class="ml-3">
  111.                         {{ render(controller(
  112.                             'App\\Controller\\Support\\VersionDisplayController::showVersion'
  113.                         )) }}
  114.                     </p>
  115.                 {% endif %}
  116.                 <p class="ml-3"> {% trans %}Jsi přihlášen jako:{% endtrans %} <strong>{{ app.user.username }}</strong>
  117.                 </p>
  118.                 {% if is_granted('ROLE_DELIVERY_POINT_EMPLOYEE') %}
  119.                     <p class="ml-3">
  120.                         {% if app.user.deliveryPoint is defined %}
  121.                             {{ "Jste přiřazený na výdejnu:"|trans}} <strong>{{  app.user.deliveryPoint.name }}</strong>
  122.                         {% else %}
  123.                             {{ "Máte práva zaměstnance výdejny, ale nemáte žádnou přiřazenou."|trans}}
  124.                         {% endif %}
  125.                     </p>
  126.                 {% endif %}
  127.                 <li id="logout-link" class="c-sidebar-nav-item">
  128.                     <a class="c-sidebar-nav-link c-sidebar-nav-link-danger" href="{{ path('support_logout') }}">
  129.                         <span class="c-sidebar-nav-icon cil-account-logout "></span>
  130.                         {% trans %}Odhlásit{% endtrans %}
  131.                     </a>
  132.                 </li>
  133.             </ul>
  134.         </div>
  135.     {% endif %}
  136. </div>