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.

57 lines
2.9KB

  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. {# TODO Adapter Pour Caracole #}
  46. {# <li class="nav-item">#}
  47. {# <a href="{{ path(sov_homepage_route(), {section: section_slug_current()}) }}" class="btn btn-sm btn-block btn-outline-success" target="_blank"#}
  48. {# rel="noreferrer">#}
  49. {# <i class="action-icon fa fa-eye"></i>#}
  50. {# Afficher le site#}
  51. {# </a>#}
  52. {# </li>#}
  53. </ul>
  54. </nav>