templates/application/layout.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html lang="ru">
  3. <head>
  4.     <meta charset="utf-8">
  5.     <title>RDC</title>
  6.     <meta name="description" content="">
  7.     <meta http-equiv="X-UA-Compatible" content="IE=edge">
  8.     <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no, user-scalable=0">
  9.     <link rel="stylesheet" href="/css/style.css?3" />
  10.     <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
  11.     <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
  12.     <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
  13.     <link rel="manifest" href="/site.webmanifest">
  14.     <link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
  15.     <meta name="msapplication-TileColor" content="#da532c">
  16.     <meta name="theme-color" content="#ffffff">
  17. </head>
  18. <body>
  19. <div class="wrapper">
  20.     <div class="sidebar">
  21.         <div class="brand"><a href="{{ path('home') }}"><img src="/img/rdc-logo.svg" width="224" height="43" alt="" /></a></div>
  22.         <nav class="navbar scroll">
  23.             <ul class="navbar__list">
  24.                 {% if getIdentity() and getIdentity().fullAccess %}
  25.                     <li class="navbar__item {% if app.request.attributes.get('_route') starts with 'home' %}active{% endif %}">
  26.                         <a href="/" class="navbar__link">
  27.                                 <span class="navbar__icon">
  28.                                     <svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6 28c-.533 0-1-.2-1.4-.6-.4-.4-.6-.867-.6-1.4V6c0-.533.2-1 .6-1.4C5 4.2 5.467 4 6 4h20c.533 0 1 .2 1.4.6.4.4.6.867.6 1.4v20c0 .533-.2 1-.6 1.4-.4.4-.867.6-1.4.6H6zm0-2h9V6H6v20zm11 0h9V15.967h-9V26zm0-12.033h9V6h-9v7.967z"/></svg>
  29.                                 </span>
  30.                             <span class="navbar__linktext">Главная</span>
  31.                         </a>
  32.                     </li>
  33.                 {% endif %}
  34.                 <li class="navbar__item {% if app.request.attributes.get('_route') starts with 'hubs' %}active{% endif %}">
  35.                     <a href="{{ path('hubs') }}" class="navbar__link">
  36.                             <span class="navbar__icon">
  37.                                 <svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M15.162 3.285a2 2 0 0 1 1.676 0l12 5.539A2 2 0 0 1 30 10.64V27a2 2 0 0 1-2 2h-2.764a2 2 0 0 1-.894-.211l-1.578-.79H9.236l-1.578.79a2 2 0 0 1-.894.21H4a2 2 0 0 1-2-2V10.64a2 2 0 0 1 1.162-1.815l12-5.539zM28 10.64 16 5.1 4 10.64V27h2.764l1.578-.789A2 2 0 0 1 9.236 26h13.528a2 2 0 0 1 .894.211l1.578.789H28V10.64z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M6 17a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v11a1 1 0 1 1-2 0V17H8v11a1 1 0 1 1-2 0V17zM9 12a1 1 0 0 1 1-1h12a1 1 0 1 1 0 2H10a1 1 0 0 1-1-1z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M9 23a1 1 0 0 1 1-1h5a1 1 0 0 1 1 1v4a1 1 0 1 1-2 0v-3h-3v3a1 1 0 1 1-2 0v-4z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M14 23a1 1 0 0 1 1-1h5a1 1 0 0 1 1 1v4a1 1 0 1 1-2 0v-3h-3v3a1 1 0 1 1-2 0v-4z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M11 19a1 1 0 0 1 1-1h5a1 1 0 0 1 1 1v3a1 1 0 1 1-2 0v-2h-3v2a1 1 0 1 1-2 0v-3z"/></svg>
  38.                             </span>
  39.                         <span class="navbar__linktext">Распределительные центры</span>
  40.                     </a>
  41.                 </li>
  42.                 {% if getIdentity() and getIdentity().fullAccess %}
  43.                     <!--li class="navbar__item">
  44.                         <a href="#" class="navbar__link">
  45.                                 <span class="navbar__icon">
  46.                                     <svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M7.4 29.333c-.977 0-1.805-.338-2.483-1.016C4.24 27.639 3.9 26.81 3.9 25.833v-3.166a.971.971 0 0 1 1-1h3.234V3.533c0-.222.089-.333.266-.333.178 0 .356.089.534.267l1.2 1.2 1.633-1.634a.51.51 0 0 1 .367-.166.51.51 0 0 1 .366.166l1.6 1.634 1.634-1.634a.51.51 0 0 1 .366-.166.51.51 0 0 1 .367.166L18.1 4.667l1.634-1.634a.51.51 0 0 1 .366-.166.51.51 0 0 1 .367.166L22.1 4.667l1.634-1.634a.51.51 0 0 1 .366-.166.51.51 0 0 1 .367.166L26.1 4.667l1.2-1.2c.178-.178.356-.267.534-.267.178 0 .266.111.266.333v22.3c0 .978-.338 1.806-1.016 2.484-.678.677-1.506 1.016-2.484 1.016H7.4zm17.2-2c.445 0 .806-.138 1.084-.416.277-.278.416-.64.416-1.084V6H10.134v15.667H22.1c.29 0 .528.094.717.283a.972.972 0 0 1 .283.717v3.166c0 .445.14.806.417 1.084.278.277.639.416 1.083.416zM12.867 11.267a.906.906 0 0 1-.683-.3 1.028 1.028 0 0 1-.284-.734c0-.266.095-.494.284-.683a.971.971 0 0 1 .716-.283h6c.29 0 .528.094.717.283a.972.972 0 0 1 .283.717.972.972 0 0 1-.283.716.971.971 0 0 1-.717.284h-6.033zm0 4.466a.906.906 0 0 1-.683-.3 1.028 1.028 0 0 1-.284-.733c0-.267.095-.494.284-.683a.971.971 0 0 1 .716-.284h6c.29 0 .528.095.717.284a.972.972 0 0 1 .283.716.971.971 0 0 1-.283.717.971.971 0 0 1-.717.283h-6.033zM23 11.267a.96.96 0 0 1-.7-.3.96.96 0 0 1-.3-.7c0-.267.1-.5.3-.7.2-.2.434-.3.7-.3.267 0 .5.1.7.3.2.2.3.433.3.7 0 .266-.1.5-.3.7-.2.2-.433.3-.7.3zm0 4.3a.96.96 0 0 1-.7-.3.96.96 0 0 1-.3-.7c0-.267.1-.5.3-.7.2-.2.434-.3.7-.3.267 0 .5.1.7.3.2.2.3.433.3.7 0 .266-.1.5-.3.7-.2.2-.433.3-.7.3zM7.367 27.333H21.1v-3.666H5.9v2.166c0 .445.14.806.417 1.084.278.277.628.416 1.05.416zm-1.467 0v-3.666 3.666z"/></svg>
  47.                                 </span>
  48.                             <span class="navbar__linktext">Заказы</span>
  49.                         </a>
  50.                     </li-->
  51.                     {% if getIdentity().canChat  %}
  52.                         <li class="navbar__item {% if app.request.attributes.get('_route') starts with 'chat' %}active{% endif %}">
  53.                             <a href="{{ path('chat') }}" class="navbar__link">
  54.                                     <span class="navbar__icon">
  55.                                         <svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9 18.7h8.467a.931.931 0 0 0 .683-.283.971.971 0 0 0 .284-.717.971.971 0 0 0-.284-.717.971.971 0 0 0-.716-.283H8.967a.971.971 0 0 0-.967 1 .971.971 0 0 0 1 1zm0-4.333h14.034a.971.971 0 0 0 .967-1 .97.97 0 0 0-.284-.717.971.971 0 0 0-.717-.283H8.967a.931.931 0 0 0-.683.283.971.971 0 0 0-.284.717.971.971 0 0 0 1 1zm0-4.334h14.034a.971.971 0 0 0 .967-1 .971.971 0 0 0-.284-.716.971.971 0 0 0-.717-.284H8.967a.971.971 0 0 0-.967 1 .971.971 0 0 0 1 1zm-6.333 16.9V4.667c0-.511.2-.973.6-1.384.4-.41.867-.616 1.4-.616h22.667c.51 0 .972.205 1.383.616.411.411.617.873.617 1.384V22c0 .511-.206.972-.617 1.383-.411.411-.872.617-1.383.617H8l-3.633 3.633c-.311.311-.672.384-1.083.217-.411-.167-.617-.472-.617-.917zm2-2.433 2.5-2.5h20.167V4.667H4.667V24.5zm0-19.833V24.5 4.667z"/></svg>
  56.                                     </span>
  57.                                 <span class="navbar__linktext">Мои чаты</span>
  58.                             </a>
  59.                         </li>
  60.                     {% endif %}
  61.                     {% if getIdentity().person.employeeClassName and getIdentity().fullAccess %}
  62.                         <li class="navbar__item {% if app.request.attributes.get('_route') starts with 'employees' %}active{% endif %}">
  63.                             <a href="{{ path('employees') }}" class="navbar__link">
  64.                                 <span class="navbar__icon">
  65.                                     <svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M7.5 13a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5zm0 2a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9zM21 13a4 4 0 1 0 0-8 4 4 0 0 0 0 8zm0 2a6 6 0 1 0 0-12 6 6 0 0 0 0 12z"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M21 16a9 9 0 0 0-9 9v4a1 1 0 1 1-2 0v-4c0-6.075 4.925-11 11-11s11 4.925 11 11v4a1 1 0 1 1-2 0v-4a9 9 0 0 0-9-9z"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M21 22a1 1 0 0 1 1-1h4a1 1 0 1 1 0 2h-4a1 1 0 0 1-1-1zM8 16a6 6 0 0 0-6 6v7a1 1 0 1 1-2 0v-7a8 8 0 0 1 14.566-4.572 1 1 0 1 1-1.64 1.144A5.992 5.992 0 0 0 8 16z"></path></svg>
  66.                                 </span>
  67.                                 <span class="navbar__linktext">Сотрудники</span>
  68.                             </a>
  69.                         </li>
  70.                     {% endif %}
  71.                     <li class="navbar__item">
  72.                         <a href="{{ path('user') }}" class="navbar__link">
  73.                             <span class="navbar__icon">
  74.                                 <svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6 28c-.533 0-1-.2-1.4-.6-.4-.4-.6-.867-.6-1.4V6c0-.533.2-1 .6-1.4C5 4.2 5.467 4 6 4h6.9c-.044-.822.244-1.561.867-2.217C14.389 1.128 15.133.8 16 .8s1.611.328 2.233.983c.623.656.911 1.395.867 2.217H26c.533 0 1 .2 1.4.6.4.4.6.867.6 1.4v20c0 .533-.2 1-.6 1.4-.4.4-.867.6-1.4.6H6zM16 4.6a.971.971 0 0 0 .717-.283A.971.971 0 0 0 17 3.6a.971.971 0 0 0-.283-.717A.971.971 0 0 0 16 2.6a.971.971 0 0 0-.717.283A.971.971 0 0 0 15 3.6c0 .289.094.528.283.717A.971.971 0 0 0 16 4.6zM6 24.767a16.732 16.732 0 0 1 4.533-3.017c1.69-.767 3.511-1.15 5.467-1.15 1.956 0 3.778.383 5.467 1.15 1.689.767 3.2 1.772 4.533 3.017V6H6v18.767zm10.067-6.8c1.289 0 2.377-.445 3.266-1.334.89-.888 1.334-1.977 1.334-3.266 0-1.29-.445-2.378-1.334-3.267-.889-.889-1.977-1.333-3.266-1.333-1.29 0-2.378.444-3.267 1.333-.889.889-1.333 1.978-1.333 3.267s.444 2.377 1.333 3.266c.889.89 1.978 1.334 3.267 1.334zM7.833 26h16.334v-.3c-1.2-1.022-2.49-1.794-3.867-2.317A12.033 12.033 0 0 0 16 22.6c-1.489 0-2.922.261-4.3.783-1.378.523-2.667 1.295-3.867 2.317v.3zm8.234-10.033a2.502 2.502 0 0 1-1.834-.767 2.502 2.502 0 0 1-.766-1.833c0-.734.255-1.35.766-1.85a2.53 2.53 0 0 1 1.834-.75c.733 0 1.35.25 1.85.75s.75 1.116.75 1.85a2.53 2.53 0 0 1-.75 1.833c-.5.511-1.117.767-1.85.767z"/></svg>
  75.                             </span>
  76.                             <span class="navbar__linktext">Личный кабинет</span>
  77.                         </a>
  78.                     </li>
  79.                 {% endif %}
  80.             </ul>
  81.         </nav>
  82.             <div class="user">
  83.                 {% if getIdentity() %}
  84.                     <a href="{{ path('user') }}" class="person">
  85.                         <div class="person__photo">
  86.                             {% if getIdentity().image %}
  87.                                 <img src="{{ resizeImage(getIdentity().image, 50, 50, true) }}" alt="" width="50" height="50">
  88.                             {% endif %}
  89.                         </div>
  90.                         <div class="person__name">
  91.                             {{ getIdentity().name }}
  92.                         </div>
  93.                     </a>
  94.                     <div class="user__logout"><a href="{{ path('logout') }}">Выйти</a></div>
  95.                 {% else %}
  96.                     <div class="user__logout"><a href="{{ path('login') }}">Войти</a></div>
  97.                 {% endif %}
  98.             </div>
  99.     </div>
  100.     <main class="{% block main_class %}main{% endblock %}">
  101.         {% block content %}
  102.         {% endblock %}
  103.         <ul class="mobile-nav">
  104.             <li class="mobile-nav__item {% if app.request.attributes.get('_route') starts with 'home' %}active{% endif %}">
  105.                 <a href="{{ path('home') }}" class="mobile-nav__link">
  106.                         <span class="mobile-nav__icon">
  107.                             <svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6 28c-.533 0-1-.2-1.4-.6-.4-.4-.6-.867-.6-1.4V6c0-.533.2-1 .6-1.4C5 4.2 5.467 4 6 4h20c.533 0 1 .2 1.4.6.4.4.6.867.6 1.4v20c0 .533-.2 1-.6 1.4-.4.4-.867.6-1.4.6H6zm0-2h9V6H6v20zm11 0h9V15.967h-9V26zm0-12.033h9V6h-9v7.967z"></path></svg>
  108.                         </span>
  109.                     <span class="mobile-nav__text">Главная</span>
  110.                 </a>
  111.             </li>
  112.             <li class="mobile-nav__item {% if app.request.attributes.get('_route') starts with 'hubs' %}active{% endif %}">
  113.                 <a href="{{ path('hubs') }}" class="mobile-nav__link">
  114.                         <span class="mobile-nav__icon">
  115.                             <svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M15.162 3.285a2 2 0 0 1 1.676 0l12 5.539A2 2 0 0 1 30 10.64V27a2 2 0 0 1-2 2h-2.764a2 2 0 0 1-.894-.211l-1.578-.79H9.236l-1.578.79a2 2 0 0 1-.894.21H4a2 2 0 0 1-2-2V10.64a2 2 0 0 1 1.162-1.815l12-5.539zM28 10.64 16 5.1 4 10.64V27h2.764l1.578-.789A2 2 0 0 1 9.236 26h13.528a2 2 0 0 1 .894.211l1.578.789H28V10.64z"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M6 17a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v11a1 1 0 1 1-2 0V17H8v11a1 1 0 1 1-2 0V17zM9 12a1 1 0 0 1 1-1h12a1 1 0 1 1 0 2H10a1 1 0 0 1-1-1z"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M9 23a1 1 0 0 1 1-1h5a1 1 0 0 1 1 1v4a1 1 0 1 1-2 0v-3h-3v3a1 1 0 1 1-2 0v-4z"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M14 23a1 1 0 0 1 1-1h5a1 1 0 0 1 1 1v4a1 1 0 1 1-2 0v-3h-3v3a1 1 0 1 1-2 0v-4z"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M11 19a1 1 0 0 1 1-1h5a1 1 0 0 1 1 1v3a1 1 0 1 1-2 0v-2h-3v2a1 1 0 1 1-2 0v-3z"></path></svg>
  116.                         </span>
  117.                     <span class="mobile-nav__text">РЦ</span>
  118.                 </a>
  119.             </li>
  120.             {% if getIdentity() and getIdentity().canChat %}
  121.                 <li class="mobile-nav__item {% if app.request.attributes.get('_route') starts with 'chat' %}active{% endif %}">
  122.                     <a href="{{ path('chat') }}" class="mobile-nav__link">
  123.                             <span class="mobile-nav__icon">
  124.                                 <svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9 18.7h8.467a.931.931 0 0 0 .683-.283.971.971 0 0 0 .284-.717.971.971 0 0 0-.284-.717.971.971 0 0 0-.716-.283H8.967a.971.971 0 0 0-.967 1 .971.971 0 0 0 1 1zm0-4.333h14.034a.971.971 0 0 0 .967-1 .97.97 0 0 0-.284-.717.971.971 0 0 0-.717-.283H8.967a.931.931 0 0 0-.683.283.971.971 0 0 0-.284.717.971.971 0 0 0 1 1zm0-4.334h14.034a.971.971 0 0 0 .967-1 .971.971 0 0 0-.284-.716.971.971 0 0 0-.717-.284H8.967a.971.971 0 0 0-.967 1 .971.971 0 0 0 1 1zm-6.333 16.9V4.667c0-.511.2-.973.6-1.384.4-.41.867-.616 1.4-.616h22.667c.51 0 .972.205 1.383.616.411.411.617.873.617 1.384V22c0 .511-.206.972-.617 1.383-.411.411-.872.617-1.383.617H8l-3.633 3.633c-.311.311-.672.384-1.083.217-.411-.167-.617-.472-.617-.917zm2-2.433 2.5-2.5h20.167V4.667H4.667V24.5zm0-19.833V24.5 4.667z"></path></svg>
  125.                             </span>
  126.                         <span class="mobile-nav__text">Чат</span>
  127.                     </a>
  128.                 </li>
  129.             {% endif %}
  130.             <li class="mobile-nav__item">
  131.                 <a href="#" class="mobile-nav__link a-toggle-nav">
  132.                         <span class="mobile-nav__icon">
  133.                             <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="11.625" cy="19.125" r="1.875" fill="#405464"/><circle cx="11.625" cy="12.375" r="1.875" fill="#405464"/><circle cx="11.625" cy="5.625" r="1.875" fill="#405464"/></svg>
  134.                         </span>
  135.                     <span class="mobile-nav__text">Еще</span>
  136.                 </a>
  137.             </li>
  138.         </ul>
  139.     </main>
  140. </div>
  141. {% block popups %}
  142. {% endblock %}
  143. <div class="panel__backdrop"></div>
  144. <link rel="stylesheet" href="/css/fancybox.css" />
  145. <script src="/js/jquery-3.6.0.min.js"></script>
  146. <script src="/js/fancybox.umd.js"></script>
  147. <script src="/js/imask.min.js"></script>
  148. <script src="/js/script.js?2"></script>
  149. <script>
  150.     function popupAlert(text) {
  151.         new Fancybox([
  152.             {
  153.                 src: text,
  154.                 type: "html",
  155.             },
  156.         ]);
  157.     }
  158.     function closePopup() {
  159.         $('.panel').removeClass('showen');
  160.         $('.panel__backdrop').removeClass('showen');
  161.     }
  162. </script>
  163. {% block scripts %}
  164. {% endblock %}
  165. </body>
  166. </html>