add templates to render sections and items in the admin menu
This commit is contained in:
parent
0cffb7d588
commit
f4b0b2869c
|
@ -1,6 +1,7 @@
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
* add templates to render sections and items in the admin menu
|
||||||
### Fixed
|
### Fixed
|
||||||
* fix the analytic table when a path is a long
|
* fix the analytic table when a path is a long
|
||||||
### Changed
|
### Changed
|
||||||
|
|
|
@ -1,27 +1,14 @@
|
||||||
{% import "@Core/admin/macros/menu.html.twig" as macros_menu %}
|
|
||||||
|
|
||||||
{#
|
{#
|
||||||
{% if is_granted('ROLE_WRITER') %}
|
{% if is_granted('ROLE_WRITER') %}
|
||||||
<h6 class="sidebar-heading justify-content-between align-items-center px-3 mt-4 mb-1 text-muted">
|
{{ include('@Core/admin/module/_menu_section.html.twig', {label: 'Blog'}) }}
|
||||||
<span>Blog</span>
|
|
||||||
</h6>
|
|
||||||
|
|
||||||
<ul class="nav flex-column">
|
<ul class="nav flex-column">
|
||||||
<li class="nav-item">
|
{{ include('@Core/admin/module/_menu_item.html.twig', {
|
||||||
<a class="nav-link {{ macros_menu.active_class('blog_post', section) }}" href="{{ path('admin_blog_post_index') }}">
|
id: 'post',
|
||||||
<span class="fa fa-pen"></span>
|
label: 'Posts',
|
||||||
|
route: path('admin_post_index'),
|
||||||
<span class="nav-item-label">Articles</span>
|
icon: 'fa fa-pen'
|
||||||
</a>
|
}) }}
|
||||||
</li>
|
|
||||||
|
|
||||||
<li class="nav-item">
|
|
||||||
<a class="nav-link {{ macros_menu.active_class('blog_category', section) }}" href="{{ path('admin_blog_category_index') }}">
|
|
||||||
<span class="fa fa-puzzle-piece"></span>
|
|
||||||
|
|
||||||
<span class="nav-item-label">Catégories</span>
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
</ul>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
#}
|
#}
|
||||||
|
|
Loading…
Reference in a new issue