{% if includeLayout is not defined %}
{% set includeLayout = true %}
{% endif %}
{% set senhaAlterada = app.user.isSenhaAtualizada %}
{% if includeLayout == 1 %}
{% block title %}{% if environment != 'production' -%}{{ instituicaoName }} - {%- endif %} Sistema ProPesqWEB - versão 1.0{% endblock %}
{% if environment != 'development' -%}
{% endif -%}
{% endif %}
{% block stylesheets %}
{% endblock %}
{% if includeLayout %}
{%if senhaAlterada and app.request.attributes.get('_route') != "usuario_alterarsenha" %}
{% endif %}
#}
{% for label,acao in app.session.get('menu') %}
{{label}}
{% if acao|length > 0 %}
{% if label == "Basilares" or label == "Sistema" %}
{% else %}
{% endif %}
{% for l, a in acao %}
{% if a|not_array %}
{% set b = a|split('/') %}
{% set c = false %}
{% if b[2] is defined %}
{% set c = b[2] %}
{% endif %}
{% set a = b[0] %}
{% set b = b[1]|split('=') %}
{% if b|length < 2 %}
{% if is_granted('ROLE_'~a|upper~'_LIST') %}