templates/base.html.twig line 1

Open in your IDE?
  1. {% extends 'frame.html.twig' %}
  2. {% block html %}
  3.     <div class="wrapper">
  4.         <header>
  5.             <div class="logo"></div>
  6.             <div class="breadcrumb">{% block breadcrumb %}{% endblock %}</div>
  7.             <ul class="user">
  8.                 <li><a href="{{ path('user_show', {id: app.user.id }) }}">{{ app.user.firstname }} {{ app.user.lastname }}</a></li>
  9.                 <li><a href="{{ path('app_logout') }}">Logout</a></li>
  10.             </ul>
  11.         </header>
  12.         <aside>
  13.             <ul class="nav">
  14.                 {% if is_granted('ROLE_NEWS_MANAGER') %}
  15.                     <li><a href="{{ path('news_index') }}"{% if app.request.get('_route') starts with 'news' %} class="active"{% endif %}>News</a></li>
  16.                 {% endif %}
  17.                 {% if is_granted('ROLE_PORTFOLIO_MANAGER') %}
  18.                     <li><a href="{{ path('portfolio_index') }}"{% if app.request.get('_route') starts with 'portfolio' %} class="active"{% endif %}>Portfolio</a></li>
  19.                 {% endif %}
  20.                 {% if is_granted('ROLE_PRODUCTION_MANAGER') or is_granted('ROLE_ARTIST_MANAGER') or is_granted('ROLE_BOOKING_MANAGER') or is_granted('ROLE_MEDIA_MANAGER') %}
  21.                     <li class="divider"></li>
  22.                 {% endif %}
  23.                 {% if is_granted('ROLE_ARTIST_MANAGER') %}
  24.                     <li><a href="{{ path('artist_index') }}"{% if app.request.get('_route') starts with 'artist' %} class="active"{% endif %}>Artists</a></li>
  25.                 {% endif %}
  26.                 {% if is_granted('ROLE_RELEASE_MANAGER') %}
  27.                     <li><a href="{{ path('release_index') }}"{% if app.request.get('_route') starts with 'release' %} class="active"{% endif %}>Releases</a></li>
  28.                 {% endif %}
  29.                 {% if is_granted('ROLE_PRODUCTION_MANAGER') %}
  30.                     <li><a href="{{ path('production_index') }}"{% if app.request.get('_route') starts with 'production' %} class="active"{% endif %}>Productions</a></li>
  31.                 {% endif %}
  32. {#                {% if is_granted('ROLE_BOOKING_MANAGER') %}#}
  33. {#                    <li><a href="{{ path('booking_index') }}">Booking</a></li>#}
  34. {#                {% endif %}#}
  35. {#                {% if is_granted('ROLE_MEDIA_MANAGER') %}#}
  36. {#                    <li><a href="{{ path('media_index') }}">Media</a></li>#}
  37. {#                {% endif %}#}
  38.                 {% if is_granted('ROLE_USER_MANAGER') %}
  39.                     <li class="divider"></li>
  40.                     <li><a href="{{ path('user_index') }}"{% if app.request.get('_route') starts with 'user' %} class="active"{% endif %}>Users</a></li>
  41.                 {% endif %}
  42.             </ul>
  43.         </aside>
  44.         <main>
  45.             {% for message in app.flashes('success') %}
  46.                 <div class="alert alert-success">
  47.                     {{ message }}
  48.                 </div>
  49.             {% endfor %}
  50.             {% block body %}{% endblock %}
  51.         </main>
  52.     </div>
  53. {% endblock %}