You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

navbar_header.html.twig 2.8KB

3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
3 yıl önce
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <nav class="main-header navbar navbar-expand navbar-white navbar-light">
  2. <!-- Left navbar links -->
  3. <ul class="navbar-nav">
  4. <li class="nav-item">
  5. <a class="nav-link" data-widget="pushmenu" href="#"><i class="fas fa-bars"></i></a>
  6. </li>
  7. </ul>
  8. <ul class="navbar-nav ml-auto">
  9. <li class="nav-item nav-item-user-menu">
  10. {% block user_menu %}
  11. <div class="btn-group">
  12. <button class="btn btn-sm btn-default btn-block dropdown-toggle" data-toggle="dropdown"
  13. data-placement="bottom">
  14. <i class="fa fa-user-alt"></i>
  15. <span class="user-name">{{ ea.user is null ? 'user.anonymous'|trans(domain = 'EasyAdminBundle') : ea.userMenu.name }}</span>
  16. </button>
  17. {% if ea.userMenu.items|length > 0 %}
  18. <div class="dropdown-menu">
  19. {% for item in ea.userMenu.items %}
  20. {% if item.isMenuSection %}
  21. <div class="dropdown-divider"></div>
  22. {% else %}
  23. <a href="{{ item.linkUrl }}"
  24. class="dropdown-item {{ item.cssClass }}"
  25. target="{{ item.linkTarget }}" rel="{{ item.linkRel }}"
  26. referrerpolicy="origin-when-cross-origin">
  27. {% if item.icon is not empty %}
  28. <i class="fa fa-{{ item.icon }}"></i>
  29. {% endif %}
  30. <span>{{ item.label }}</span>
  31. </a>
  32. {% endif %}
  33. {% endfor %}
  34. </div>
  35. {% endif %}
  36. </div>
  37. {% endblock user_menu %}
  38. </li>
  39. <li class="nav-item">
  40. <a href="{{ path(sov_parameter('app.reminder.route_render_modal')) }}" class="btn btn-sm btn-outline-info btn-reminder" data-crud-action="{{ ea.request.query.get('crudAction') }}" data-crud-controller-fqcn="{{ ea.request.query.get('crudControllerFqcn') }}" data-entity-id="{{ ea.request.query.get('entityId') }}">
  41. <i class="action-icon fa fa-plus"></i>
  42. Pense-bête
  43. </a>
  44. </li>
  45. <li class="nav-item">
  46. <a href="{{ path(sov_homepage_route()) }}" class="btn btn-sm btn-block btn-outline-success" target="_blank"
  47. rel="noreferrer">
  48. <i class="action-icon fa fa-eye"></i>
  49. Afficher le site
  50. </a>
  51. </li>
  52. </ul>
  53. </nav>