Maj
le {{ ent.publishedat | date("d M Y") }} par {{ ent.Publisher.firstname | default("n/c") }}
{% for place in workflow_marked_places(ent) %} {{ workflow_metadata(ent, 'title', place) ?: ''}}
{% endfor %} le {{ ent.validatedat | date("d M Y") }} par {{ ent.validator.firstname | default("n/c") }}
{% set roler = "" %}{% if ent.redacteur == app.user.people %}{% set roler = "redacteur" %}{% endif %}
{% set roles = "" %}{% if ent.suppleant == app.user.people %}{% set roles = "suppleant" %}{% set roler = "redacteur" %}{% endif %}
{% set roleresp = "" %}{% if ent.responsable == app.user.people or is_granted('ROLE_ADMIN') %}{% set roleresp = "responsable" %}{% set roler = "redacteur" %}{% set roles = "suppleant" %}{% endif %}
{% set roledpo = "" %}{% if app.user.customer.dpo == app.user.people %}{% set roledpo = "dpo" %}{% endif %}
{% for transition in workflow_transitions(ent) %}
{% if workflow_can(ent, transition.name) %}
{% if workflow_metadata(ent, 'role', transition) in [roler, roles, roleresp, roledpo] %}
{{ workflow_metadata(ent, 'title', transition) ?: 'n-a'}}
{% endif %}
{% endif %}
{% else %}
Aucune action possible
{% endfor %}
-
1
{% if workflow_has_marked_place(ent, 'draft') or workflow_has_marked_place(ent, 'rejected') %}Rédaction{% else %}Rédigé{% endif %}
-
2
{% if workflow_has_marked_place(ent, 'pre_running') or workflow_has_marked_place(ent, 'running') or workflow_has_marked_place(ent, 'draft') or workflow_has_marked_place(ent, 'rejected') %}En cours{% else %}Relecture{% endif%}
-
3
{% if workflow_has_marked_place(ent, 'validation_ok') %}Validé{% else %}Validation{% endif%}
{#
Workflow:
{{ workflow_metadata(ent, 'title') }}
Current place(s)
{% for place in workflow_marked_places(ent) %}
-
{{ place }}:
{{ workflow_metadata(ent, 'title', place) ?: 'no title'}}
{% endfor %}
place(s)
{% for place in workflow_marked_places(ent) %}
-
{{ place }}:
{{ workflow_metadata(ent, 'title', place) ?: 'no title'}}
{% endfor %}
Enabled transition(s)
{% for transition in workflow_transitions(ent) %}
-
{{ transition.name }}:
{{ workflow_metadata(ent, 'title', transition) ?: 0 }}
{% endfor %}
#}