{# this template inherits from base template & add a sub-nav #}
{% extends "base.html.twig" %}
{% block subnav %}
<!-- back-office sub-nav -->
<nav class="container my-2">
<a href="{{ path('app_back_main_home') }}" class="btn btn-{{ app.request.get('_route') == 'app_back_main_home' ? 'light' : 'info' }}">Accueil</a>
<a href="{{ path('app_back_category_browse') }}" class="btn btn-{{ 'app_back_category_' in app.request.get('_route') ? 'light' : 'primary' }}">Catégories</a>
<a href="{{ path('app_back_gallery_browse') }}" class="btn btn-{{ 'app_back_gallery_' in app.request.get('_route') ? 'light' : 'primary' }}">Galeries</a>
<a href="{{ path('app_back_picture_browse') }}" class="btn btn-{{ 'app_back_picture_' in app.request.get('_route') ? 'light' : 'primary' }}">Images</a>
<a href="{{ path('app_back_status_browse') }}" class="btn btn-{{ 'app_back_status_' in app.request.get('_route') ? 'light' : 'primary' }}">Statuts</a>
<a href="{{ path('app_back_user_browse') }}" class="btn btn-{{ 'app_back_user_' in app.request.get('_route') ? 'light' : 'primary' }}">Utilisateurs</a>
</nav>
{% endblock %}
{% block body %}
<div class="container bg-secondary">
{% block subbody %}{% endblock %}
</div>
{% endblock %}