start_sf5_project/app/templates/admin/layout.html.twig

32 lines
1.0 KiB
Twig
Raw Permalink Normal View History

2021-04-16 07:37:45 +00:00
{#
This is the base template of the all backend pages. Since this layout is similar
to the global layout, we inherit from it to just change the contents of some
blocks. In practice, backend templates are using a three-level inheritance,
showing how powerful, yet easy to use, is Twig's inheritance mechanism.
See https://symfony.com/doc/current/templates.html#template-inheritance-and-layouts
#}
{% extends 'base.html.twig' %}
{% block stylesheets %}
{{ parent() }}
{{ encore_entry_link_tags('admin') }}
{% endblock %}
{% block header_navigation_links %}
<li>
<a href="{{ path('admin_post_index') }}">
<i class="fa fa-list-alt" aria-hidden="true"></i> {{ 'menu.post_list'|trans }}
</a>
</li>
<li>
<a href="{{ path('blog_index') }}">
<i class="fa fa-home" aria-hidden="true"></i> {{ 'menu.back_to_blog'|trans }}
</a>
</li>
{% endblock %}
{% block javascripts %}
{{ parent() }}
{{ encore_entry_script_tags('admin') }}
{% endblock %}