{% extends 'showElements_base.html.twig' %} {% block title %}{{ 'All actions'|trans }}{% endblock %} {% block breadcrumb_buttons %} {% set filter_privileges = {"user": app.user, "role": "ROLE_CREATE"} %} {% if plan %} {% set filter_privileges = filter_privileges|merge({'plan': plan}) %} {% endif %} {% if privileges.canAction(filter_privileges) %}
{% endif %} {% endblock %} {% block extra_breadcrumb_buttons %} {% endblock %} {% block body_content %}{{ 'actions.title'|trans }} | {{ 'actions.description'|trans }} | {% if plan_rowid is empty %}{{ 'actions.plan'|trans }} | {% endif %}{{ 'actions.timing'|trans }} | {{ 'actions.notification_from'|trans }} | {{ 'actions.documents'|trans }} | {{ 'actions.options'|trans }} | ||
---|---|---|---|---|---|---|---|---|
{{ action.rowid }} |
{% if action.fklevel.code == "europe" %}
{% if bmandatory %}
{%endif %}
{{action.fkDepartment.code|upper}}
{% if action.partnerContracts|length == 3 %}
{{'all'|trans}}
{% else %}
{%for pc in action.partnerContracts %}
{{pc.code}}
{% endfor %}
{% endif %}
|
{{ action.title }} | {{ action.description }} | {% if plan_rowid is empty %}{{ action.fkPlan.title }} | {% endif %}{{ action.getTimingString() }} | {{ (action.getNotificationFrom())?action.getNotificationFrom().format('Y-m-d'):"" }} | {% if action.documents|length > 0 %} {% endif %} | {% set can_edit_action = privileges.canAction({"user": app.user, "action": action, "role": "ROLE_UPDATE"}) %} {% set can_delete_action = privileges.canAction({"user": app.user, "action": action, "role": "ROLE_DELETE"}) %} {% set can_read_plan = is_granted("ROLE_EUROPE") and privileges.canAction({"user": app.user, "action": action, "role": "ROLE_READ"}) %} {% set can_milestone = privileges.canMilestone({ "user": app.user, "role": "ROLE_CREATE" }) %}
{% if can_edit_action or can_delete_action or can_read_plan %}
{% if can_edit_action %}
{{ 'Edit'|trans }}
{% endif %}
{% if can_delete_action %}
{% endif %}
{% if can_read_plan %}
{{ 'Plan'|trans }}
{% endif %}
{% if can_milestone %}
{{ 'milestones.new_milestone'|trans }}
{{ 'milestones.milestones'|trans }}
{% endif %}
|