|
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- <nav class="main-header navbar navbar-expand navbar-white navbar-light">
- <!-- Left navbar links -->
- <ul class="navbar-nav">
- <li class="nav-item">
- <a class="nav-link" data-widget="pushmenu" href="#"><i class="fas fa-bars"></i></a>
- </li>
- </ul>
-
- <ul class="navbar-nav ml-auto">
- <li class="nav-item nav-item-user-menu">
- {% block user_menu %}
- <div class="btn-group">
- <button class="btn btn-sm btn-default btn-block dropdown-toggle" data-toggle="dropdown"
- data-placement="bottom">
- <i class="fa fa-user-alt"></i>
- <span class="user-name">{{ ea.user is null ? 'user.anonymous'|trans(domain = 'EasyAdminBundle') : ea.userMenu.name }}</span>
- </button>
- {% if ea.userMenu.items|length > 0 %}
- <div class="dropdown-menu">
- {% for item in ea.userMenu.items %}
- {% if item.isMenuSection %}
- <div class="dropdown-divider"></div>
- {% else %}
- <a href="{{ item.linkUrl }}"
- class="dropdown-item {{ item.cssClass }}"
- target="{{ item.linkTarget }}" rel="{{ item.linkRel }}"
- referrerpolicy="origin-when-cross-origin">
- {% if item.icon is not empty %}
- <i class="fa fa-{{ item.icon }}"></i>
- {% endif %}
- <span>{{ item.label }}</span>
- </a>
- {% endif %}
- {% endfor %}
- </div>
- {% endif %}
- </div>
- {% endblock user_menu %}
- </li>
-
- <li class="nav-item">
- <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') }}">
- <i class="action-icon fa fa-plus"></i>
- Pense-bête
- </a>
- </li>
- {# TODO Adapter Pour Caracole #}
- {# <li class="nav-item">#}
- {# <a href="{{ path(sov_homepage_route(), {section: section_slug_current()}) }}" class="btn btn-sm btn-block btn-outline-success" target="_blank"#}
- {# rel="noreferrer">#}
- {# <i class="action-icon fa fa-eye"></i>#}
- {# Afficher le site#}
- {# </a>#}
- {# </li>#}
- </ul>
- </nav>
|