{#
Use this as your new starter template page, use it to start your new project,
by adding this code to your own base template:
{% extends '@AdminLTE/layout/default-layout.html.twig' %}
Enjoy your AdminLTE theme!
#}
{% block head %}
{% endblock %}
{% block title %}{{ block('page_title') }}{% endblock %}
{% block stylesheets %}
{% endblock %}
{#
Apply one of the following classes for the skin:
skin-blue, skin-black, skin-purple, skin-yellow, skin-red, skin-green
Apply one or more of the following classes for the layout options:
fixed, layout-boxed, layout-top-nav, sidebar-collapse, sidebar-mini
#}
{% block after_body_start %}{% endblock %}
{% if is_granted('ROLE_PREVIOUS_ADMIN') %}
Vous êtes actuellement connecté en tant que {{ app.user.firstName }} {{ app.user.lastName }}
[{{ app.user.agency.name }}] ({{ app.user.email }})
{% endif %}
{% set style= "" %}
{% if is_granted('ROLE_PREVIOUS_ADMIN') %}
{% set style= "margin-top: 4%;" %}
{% else %}
{% set style= "margin-top: 1%;" %}
{% endif %}
{% set style= "" %}
{% if is_granted('ROLE_PREVIOUS_ADMIN') %}
{% set style= "padding-top: 3%;" %}
{% endif %}
{% set style= "" %}
{% if is_granted('ROLE_PREVIOUS_ADMIN') %}
{% set style= "margin-top: 70px;" %}
{% endif %}
{% block main_sidebar %}
{% endblock %}
{% set page_title_style = is_granted('ROLE_PREVIOUS_ADMIN') ? 'margin-top:140px' : '' %}
{% block page_title %}{{ 'Admin LTE'|trans({}, 'AdminLTEBundle') }}{% endblock %}
{% block page_subtitle %}{{ 'A short subtitle for your page'|trans({}, 'AdminLTEBundle') }}{% endblock %}
{% block breadcrumb %}
{% if admin_lte_context.knp_menu.enable %}
{% include '@AdminLTE/Breadcrumb/knp-breadcrumb.html.twig' %}
{% else %}
{% include '@AdminLTE/Breadcrumb/breadcrumb.html.twig' with {'adminlte_direct_include': true} %}
{% endif %}
{% endblock %}
{% block page_content_before %}{% endblock %}
{% block page_content_start %}
{% if app.session and app.session.started and app.session.flashbag.peekAll|length > 0 %}
{% for type, messages in app.session.flashbag.all %}
{% for message in messages %}
{% if type == 'fos_user_success' %}
{% set type = 'success' %}
{% set domain = 'FOSUserBundle' %}
{% endif %}
{% if message is iterable %}
{% set finalMessage = message[0] %}
{% else %}
{% set finalMessage = message %}
{% endif %}
{# {{ dump(finalMessage) }}#}
{% endfor %}
{% endfor %}
{% endif %}
{% endblock %}