{% if history.etat == 3 %}
the derogation request number {{ history.ref}} has been Validated by Director, HSEQ and DG.
{% elseif history.etat == 4 %}
the derogation request number {{ history.ref}} has been Closed by HSEQ.
{% elseif history.etat == 5 %}
{% set count = history.validation|length - 1 %}
{% set role = history.validation[count].user.roles[0] %}
the derogation request number {{ history.ref}} has been rejected by
{% if role == 'ROLE_CHEF' %}
Director
{% elseif role == 'ROLE_DG' %}
DG
{% elseif role == 'ROLE_HSEQ' %}
HSEQ
{% endif %}
with the following comments:
{{ history.validation[count].commentaire |raw }}
{% elseif history.etat == 6 %}
the derogation request number {{ history.ref}} has been menaced by Server.
{% endif %}
|