Commit f2887e54 authored by Mat's avatar Mat

Réorganise les items de l sidebar, ailleurs que dans layout (menu contextuel)

parent 9ab82b97
......@@ -4,6 +4,11 @@
Ajouter une Image
{% endblock %}
{% block sidebar %}
{% include '@Techno/Image/sidebar.html.twig' %}
{{ parent() }}
{% endblock %}
{% block content %}
{{ block('breadcrumb') }}
......
......@@ -4,6 +4,11 @@
Galerie
{% endblock %}
{% block sidebar %}
{% include '@Techno/Image/sidebar.html.twig' %}
{{ parent() }}
{% endblock %}
{% block content %}
{{ block('breadcrumb') }}
......
......@@ -4,6 +4,11 @@
Galerie
{% endblock %}
{% block sidebar %}
{% include '@Techno/Image/sidebar.html.twig' %}
{{ parent() }}
{% endblock %}
{% block content %}
<div>
......
<h3>Albums</h3>
<ul>
<li class="{{ app.request.get('_route') == 'techno_gallery_create' ? 'active' }}">
<a href="{{ path('techno_gallery_create') }}">
<i class="fas fa-plus"></i> Ajouter une image
</a>
</li>
<li class="{{ app.request.get('_route') == 'techno_dump_image' ? 'active' }}">
<a href="{{ path('techno_dump_image') }}">
<i class="fas fa-table"></i> Table Image
</a>
</li>
</ul>
<h3>Auteurs</h3>
<ul>
<li class="{{ app.request.get('_route') == 'techno_owner_read' ? 'active' }}">
<a href="{{ path('techno_owner_read') }}">
<i class="fas fa-users"></i> Les auteurs
</a>
</li>
</ul>
......@@ -4,6 +4,11 @@
Editer une image
{% endblock %}
{% block sidebar %}
{% include '@Techno/Image/sidebar.html.twig' %}
{{ parent() }}
{% endblock %}
{% block content %}
{{ block('breadcrumb') }}
......
......@@ -4,6 +4,11 @@
Ajouter un auteur
{% endblock %}
{% block sidebar %}
{% include '@Techno/Owner/sidebar.html.twig' %}
{{ parent() }}
{% endblock %}
{% block content %}
{{ block('breadcrumb') }}
......
......@@ -4,6 +4,11 @@
Auteurs
{% endblock %}
{% block sidebar %}
{% include '@Techno/Owner/sidebar.html.twig' %}
{{ parent() }}
{% endblock %}
{% block content %}
{{ block('breadcrumb') }}
......
<h3>Auteurs</h3>
<ul>
<li class="{{ app.request.get('_route') == 'techno_owner_read' ? 'active' }}">
<a href="{{ path('techno_owner_read') }}">
<i class="fas fa-users"></i> Les auteurs
</a>
</li>
<li class="{{ app.request.get('_route') == 'techno_owner_create' ? 'active' }}">
<a href="{{ path('techno_owner_create') }}">
<i class="fas fa-plus"></i> Ajouter un auteur
</a>
</li>
</ul>
......@@ -4,6 +4,11 @@
Editer un auteur
{% endblock %}
{% block sidebar %}
{% include '@Techno/Owner/sidebar.html.twig' %}
{{ parent() }}
{% endblock %}
{% block content %}
{{ block('breadcrumb') }}
......
......@@ -32,33 +32,6 @@
<aside>
{% block sidebar %}
<h3>Albums</h3>
<ul>
<li class="{{ app.request.get('_route') == 'techno_owner_read' ? 'active' }}">
<a href="{{ path('techno_owner_read') }}">
<i class="fas fa-users"></i> Les auteurs
</a>
</li>
<li class="{{ app.request.get('_route') == 'techno_dump_image' ? 'active' }}">
<a href="{{ path('techno_dump_image') }}">
<i class="fas fa-table"></i> Table Image
</a>
</li>
<li class="{{ app.request.get('_route') == 'techno_gallery_create' ? 'active' }}">
<a href="{{ path('techno_gallery_create') }}">
<i class="fas fa-plus"></i> Ajouter une image
</a>
</li>
<li class="{{ app.request.get('_route') == 'techno_owner_create' ? 'active' }}">
<a href="{{ path('techno_owner_create') }}">
<i class="fas fa-plus"></i> Ajouter un auteur
</a>
</li>
</ul>
<h3>Liens</h3>
<ul>
<li><a href="../../../../0ne/index.php">0ne</a></li>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment