templates/components/toolbar.html.twig line 1

Open in your IDE?
  1. <!-- Topbar -->
  2. <nav class="navbar navbar-expand navbar-light bg-white topbar mb-4 static-top shadow">
  3.     <!-- Sidebar Toggle (Topbar) -->
  4.     <button id="sidebarToggleTop" class="btn btn-link d-md-none rounded-circle mr-3">
  5.         <i class="fa fa-bars"></i>
  6.     </button>
  7.     <!-- Topbar Search -->
  8.     {# <form
  9.         class="d-none d-sm-inline-block form-inline mr-auto ml-md-3 my-2 my-md-0 mw-100 navbar-search">
  10.         <div class="input-group">
  11.             <input type="text" class="form-control bg-light border-0 small" placeholder="Поиск"
  12.                 aria-label="Search" aria-describedby="basic-addon2">
  13.             <div class="input-group-append">
  14.                 <button class="btn btn-primary" type="button">
  15.                     <i class="fas fa-search fa-sm"></i>
  16.                 </button>
  17.             </div>
  18.         </div>
  19.     </form> #}
  20.     <!-- Topbar Navbar -->
  21.     <ul class="navbar-nav ml-auto">
  22.         <!-- Nav Item - Search Dropdown (Visible Only XS) -->
  23.         <li class="nav-item dropdown no-arrow d-sm-none">
  24.             <a class="nav-link dropdown-toggle" href="#" id="searchDropdown" role="button"
  25.                 data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
  26.                 <i class="fas fa-search fa-fw"></i>
  27.             </a>
  28.             <!-- Dropdown - Messages -->
  29.             <div class="dropdown-menu dropdown-menu-right p-3 shadow animated--grow-in"
  30.                 aria-labelledby="searchDropdown">
  31.                 <form class="form-inline mr-auto w-100 navbar-search">
  32.                     <div class="input-group">
  33.                         <input type="text" class="form-control bg-light border-0 small"
  34.                             placeholder="Search for..." aria-label="Search"
  35.                             aria-describedby="basic-addon2">
  36.                         <div class="input-group-append">
  37.                             <button class="btn btn-primary" type="button">
  38.                                 <i class="fas fa-search fa-sm"></i>
  39.                             </button>
  40.                         </div>
  41.                     </div>
  42.                 </form>
  43.             </div>
  44.         </li>
  45.         <!-- Nav Item - Alerts -->
  46.         {# <li class="nav-item dropdown no-arrow mx-1">
  47.             <a class="nav-link dropdown-toggle" href="#" id="alertsDropdown" role="button"
  48.                 data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
  49.                 <i class="fas fa-bell fa-fw"></i>
  50.                 <!-- Counter - Alerts -->
  51.                 <span class="badge badge-danger badge-counter">3+</span>
  52.             </a>
  53.             <!-- Dropdown - Alerts -->
  54.             <div class="dropdown-list dropdown-menu dropdown-menu-right shadow animated--grow-in"
  55.                 aria-labelledby="alertsDropdown">
  56.                 <h6 class="dropdown-header">
  57.                     Alerts Center
  58.                 </h6>
  59.                 <a class="dropdown-item d-flex align-items-center" href="#">
  60.                     <div class="mr-3">
  61.                         <div class="icon-circle bg-primary">
  62.                             <i class="fas fa-file-alt text-white"></i>
  63.                         </div>
  64.                     </div>
  65.                     <div>
  66.                         <div class="small text-gray-500">December 12, 2019</div>
  67.                         <span class="font-weight-bold">A new monthly report is ready to download!</span>
  68.                     </div>
  69.                 </a>
  70.                 <a class="dropdown-item d-flex align-items-center" href="#">
  71.                     <div class="mr-3">
  72.                         <div class="icon-circle bg-success">
  73.                             <i class="fas fa-donate text-white"></i>
  74.                         </div>
  75.                     </div>
  76.                     <div>
  77.                         <div class="small text-gray-500">December 7, 2019</div>
  78.                         $290.29 has been deposited into your account!
  79.                     </div>
  80.                 </a>
  81.                 <a class="dropdown-item d-flex align-items-center" href="#">
  82.                     <div class="mr-3">
  83.                         <div class="icon-circle bg-warning">
  84.                             <i class="fas fa-exclamation-triangle text-white"></i>
  85.                         </div>
  86.                     </div>
  87.                     <div>
  88.                         <div class="small text-gray-500">December 2, 2019</div>
  89.                         Spending Alert: We've noticed unusually high spending for your account.
  90.                     </div>
  91.                 </a>
  92.                 <a class="dropdown-item text-center small text-gray-500" href="#">Show All Alerts</a>
  93.             </div>
  94.         </li> #}
  95.         <!-- Nav Item - Messages -->
  96.         {# <li class="nav-item dropdown no-arrow mx-1">
  97.             <a class="nav-link dropdown-toggle" href="#" id="messagesDropdown" role="button"
  98.                 data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
  99.                 <i class="fas fa-envelope fa-fw"></i>
  100.                 <!-- Counter - Messages -->
  101.                 <span class="badge badge-danger badge-counter">7</span>
  102.             </a>
  103.             <!-- Dropdown - Messages -->
  104.             <div class="dropdown-list dropdown-menu dropdown-menu-right shadow animated--grow-in"
  105.                 aria-labelledby="messagesDropdown">
  106.                 <h6 class="dropdown-header">
  107.                     Message Center
  108.                 </h6>
  109.                 <a class="dropdown-item d-flex align-items-center" href="#">
  110.                     <div class="dropdown-list-image mr-3">
  111.                         <img class="rounded-circle" src="img/undraw_profile_1.svg"
  112.                             alt="...">
  113.                         <div class="status-indicator bg-success"></div>
  114.                     </div>
  115.                     <div class="font-weight-bold">
  116.                         <div class="text-truncate">Hi there! I am wondering if you can help me with a
  117.                             problem I've been having.</div>
  118.                         <div class="small text-gray-500">Emily Fowler · 58m</div>
  119.                     </div>
  120.                 </a>
  121.                 <a class="dropdown-item d-flex align-items-center" href="#">
  122.                     <div class="dropdown-list-image mr-3">
  123.                         <img class="rounded-circle" src="img/undraw_profile_2.svg"
  124.                             alt="...">
  125.                         <div class="status-indicator"></div>
  126.                     </div>
  127.                     <div>
  128.                         <div class="text-truncate">I have the photos that you ordered last month, how
  129.                             would you like them sent to you?</div>
  130.                         <div class="small text-gray-500">Jae Chun · 1d</div>
  131.                     </div>
  132.                 </a>
  133.                 <a class="dropdown-item d-flex align-items-center" href="#">
  134.                     <div class="dropdown-list-image mr-3">
  135.                         <img class="rounded-circle" src="img/undraw_profile_3.svg"
  136.                             alt="...">
  137.                         <div class="status-indicator bg-warning"></div>
  138.                     </div>
  139.                     <div>
  140.                         <div class="text-truncate">Last month's report looks great, I am very happy with
  141.                             the progress so far, keep up the good work!</div>
  142.                         <div class="small text-gray-500">Morgan Alvarez · 2d</div>
  143.                     </div>
  144.                 </a>
  145.                 <a class="dropdown-item d-flex align-items-center" href="#">
  146.                     <div class="dropdown-list-image mr-3">
  147.                         <img class="rounded-circle" src="https://source.unsplash.com/Mv9hjnEUHR4/60x60"
  148.                             alt="...">
  149.                         <div class="status-indicator bg-success"></div>
  150.                     </div>
  151.                     <div>
  152.                         <div class="text-truncate">Am I a good boy? The reason I ask is because someone
  153.                             told me that people say this to all dogs, even if they aren't good...</div>
  154.                         <div class="small text-gray-500">Chicken the Dog · 2w</div>
  155.                     </div>
  156.                 </a>
  157.                 <a class="dropdown-item text-center small text-gray-500" href="#">Read More Messages</a>
  158.             </div>
  159.         </li> #}
  160.         {# <div class="topbar-divider d-none d-sm-block"></div> #}
  161.         <!-- Nav Item - User Information -->
  162.         <li class="nav-item dropdown no-arrow">
  163.             <a class="nav-link dropdown-toggle" href="#" id="userDropdown" role="button"
  164.                 data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
  165.                 <span class="mr-2 d-none d-lg-inline text-gray-600 small">{{ getUserName() }}</span>
  166.                 <img class="img-profile rounded-circle"
  167.                     src="/img/undraw_profile.svg">
  168.             </a>
  169.             <!-- Dropdown - User Information -->
  170.             <div class="dropdown-menu dropdown-menu-right shadow animated--grow-in"
  171.                 aria-labelledby="userDropdown">
  172.                 <a class="dropdown-item" href="{{ path('user_profile') }}">
  173.                     <i class="fas fa-user fa-sm fa-fw mr-2 text-gray-400"></i>
  174.                     Профиль
  175.                 </a>
  176.                 {% if getUser() and getUser().settings.canViewCampaigns() %}
  177.                     <a class="dropdown-item" href="{{ path('telegram_client__auth') }}">
  178.                         <i class="fab fa-telegram-plane fa-sm fa-fw mr-2 text-gray-400"></i>
  179.                         Telegram
  180.                     </a>
  181.                 {% endif %}
  182.                {#  <a class="dropdown-item" href="#">
  183.                     <i class="fas fa-cogs fa-sm fa-fw mr-2 text-gray-400"></i>
  184.                     Настройки
  185.                 </a>
  186.                 <a class="dropdown-item" href="#">
  187.                     <i class="fas fa-list fa-sm fa-fw mr-2 text-gray-400"></i>
  188.                     История активности
  189.                 </a> #}
  190.                 {# <div class="dropdown-divider"></div> #}
  191.                 <a class="dropdown-item" href="{{ path('logout') }}" data-toggle="modal" data-target="#logoutModal">
  192.                     <i class="fas fa-sign-out-alt fa-sm fa-fw mr-2 text-gray-400"></i>
  193.                     Выйти
  194.                 </a>
  195.             </div>
  196.         </li>
  197.     </ul>
  198. </nav>
  199. <!-- End of Topbar -->