{% extends 'showElements_base.html.twig' %} {% block title %}{{ 'All plans'|trans }}{% endblock %} {% block breadcrumb_buttons %} {% if is_granted("ROLE_EUROPE") and is_granted("ROLE_CREATE") %}
{% endif %} {% endblock %} {% block extra_breadcrumb_buttons %} {% endblock %} {% block body_content %}{{ 'Title'|trans }} | {{ 'Description'|trans }} | {{ 'Execution year'|trans }} | {{ 'Quarter'|trans }} | {{ 'Departments'|trans }} | {{ 'Partner contracts'|trans }} | {{ 'Status'|trans }} | {{ 'Options'|trans }} | |
---|---|---|---|---|---|---|---|---|
{{ plan.rowid }} | {{ plan.title }} | {{ plan.description }} | {{ plan.executionYear }} | {{ plan.getQuartersString() }} | {{ plan.departments|decorate('{name}')|raw }} | {{ plan.getPartnerContractsListColor|raw }} | {{ plan.fkplanstatus.name }} |
{% if is_granted("ROLE_EUROPE") and is_granted("ROLE_UPDATE") %}
{{ 'Edit'|trans }}
{% endif %}
{% if is_granted("ROLE_EUROPE") and is_granted("ROLE_DELETE") %}
{% endif %}
{% if is_granted("ROLE_EUROPE") %}
{{ 'Actions time'|trans }}
{% endif %}
{% if is_granted("ROLE_EUROPE") %}
{{ 'Actions number'|trans }}
{% endif %}
{% if is_granted("ROLE_EUROPE") %}
{%endif%}
{% if is_granted("ROLE_CREATE") %}
{% if privileges.canAction({"user" : app.user, "plan" : plan, "role":"ROLE_CREATE"}) %}
{{ 'New action'|trans }}
{% else %}
{{ 'New action'|trans }}
{% endif %}
{% endif %}
{% if is_granted("ROLE_READ") %}
{{ 'Actions'|trans }}
{% endif %}
|