{% extends 'frame.html.twig' %}
{% block html %}
<div class="wrapper">
<header>
<div class="logo"></div>
<div class="breadcrumb">{% block breadcrumb %}{% endblock %}</div>
<ul class="user">
<li><a href="{{ path('user_show', {id: app.user.id }) }}">{{ app.user.firstname }} {{ app.user.lastname }}</a></li>
<li><a href="{{ path('app_logout') }}">Logout</a></li>
</ul>
</header>
<aside>
<ul class="nav">
{% if is_granted('ROLE_NEWS_MANAGER') %}
<li><a href="{{ path('news_index') }}"{% if app.request.get('_route') starts with 'news' %} class="active"{% endif %}>News</a></li>
{% endif %}
{% if is_granted('ROLE_PORTFOLIO_MANAGER') %}
<li><a href="{{ path('portfolio_index') }}"{% if app.request.get('_route') starts with 'portfolio' %} class="active"{% endif %}>Portfolio</a></li>
{% endif %}
{% if is_granted('ROLE_PRODUCTION_MANAGER') or is_granted('ROLE_ARTIST_MANAGER') or is_granted('ROLE_BOOKING_MANAGER') or is_granted('ROLE_MEDIA_MANAGER') %}
<li class="divider"></li>
{% endif %}
{% if is_granted('ROLE_ARTIST_MANAGER') %}
<li><a href="{{ path('artist_index') }}"{% if app.request.get('_route') starts with 'artist' %} class="active"{% endif %}>Artists</a></li>
{% endif %}
{% if is_granted('ROLE_RELEASE_MANAGER') %}
<li><a href="{{ path('release_index') }}"{% if app.request.get('_route') starts with 'release' %} class="active"{% endif %}>Releases</a></li>
{% endif %}
{% if is_granted('ROLE_PRODUCTION_MANAGER') %}
<li><a href="{{ path('production_index') }}"{% if app.request.get('_route') starts with 'production' %} class="active"{% endif %}>Productions</a></li>
{% endif %}
{# {% if is_granted('ROLE_BOOKING_MANAGER') %}#}
{# <li><a href="{{ path('booking_index') }}">Booking</a></li>#}
{# {% endif %}#}
{# {% if is_granted('ROLE_MEDIA_MANAGER') %}#}
{# <li><a href="{{ path('media_index') }}">Media</a></li>#}
{# {% endif %}#}
{% if is_granted('ROLE_USER_MANAGER') %}
<li class="divider"></li>
<li><a href="{{ path('user_index') }}"{% if app.request.get('_route') starts with 'user' %} class="active"{% endif %}>Users</a></li>
{% endif %}
</ul>
</aside>
<main>
{% for message in app.flashes('success') %}
<div class="alert alert-success">
{{ message }}
</div>
{% endfor %}
{% block body %}{% endblock %}
</main>
</div>
{% endblock %}