{% extends 'basev2.html.twig' %} {% form_theme formAction _self %} {% block stylesheets %} {% endblock %} {% block header %}
{% if editMode %}

Fiche action

{% else %}

Créer une nouvelle action

{% endif %} Retour vers {{ rr }}
{% endblock %} {% block body %} {{ form_start(formAction) }}
Quitter {% if is_granted('ROLE_ADMIN') or is_granted('ROLE_USER_EDITABLE')%} {% endif %}

{% if not editMode %} Nouvelle fiche {% else %} ACTION - {{ action.id }} {{ action.designation | capitalize }} {% endif %}

{% if editMode %}
Etat :
{% for place in workflow_marked_places(action) %}{{ workflow_metadata(action, 'title', place) ?: ''}}{% endfor %}
Managers :
{% if action.people | length >0 %}
Contributeurs :
{% for peopl in action.people %} {{ peopl.firstname }} {{ peopl.lastname }} {% endfor %}
{% endif %}
Mise à jour :
le {{ action.publishedat | date("d M Y") }} par {{ action.Publisher.firstname | default("n/c") }}
Workflow :
Passé en {% for place in workflow_marked_places(action) %} {{ workflow_metadata(action, 'title', place)|lower ?: ''}}{% endfor %} le {{ action.validatedat | date("d M Y") }} par {{ action.validator.firstname | default("n/c") }}
  • 1 {% if workflow_has_marked_place(action, 'draft') or workflow_has_marked_place(action, 'rejected') %}Brouillon{% else %}Initié{% endif %}
  • 2 {% if workflow_has_marked_place(action, 'pre_running') or workflow_has_marked_place(action, 'running') or workflow_has_marked_place(action, 'draft') or workflow_has_marked_place(action, 'rejected') %}En cours{% else %}Finalisé{% endif%}
  • 3 {% if workflow_has_marked_place(action, 'validation_ok') %}Validé{% else %}Validation{% endif%}
{% set roles = "" %}{% if action.projet.responsable == app.user.people or is_granted('ROLE_ADMIN') %}{% set roler = "responsable" %}{% set roles = "responsableprojet" %}{% endif %} {% set roler = "" %}{% if action.projet.responsable == app.user.people or action.responsable == app.user.people or is_granted('ROLE_ADMIN') %}{% set roler = "responsable" %}{% endif %} {% for transition in workflow_transitions(action) %} {% if workflow_can(action, transition.name) %} {% if workflow_metadata(action, 'role', transition) in [roles, roler] %} {{ workflow_metadata(action, 'title', transition) ?: 'n-a'}} {% endif %} {% endif %} {% else %} No actions available. {% endfor %}
{% endif %}


{% if editMode %}
Status :
{% set statutaction = "" %} {% set statutclass = "" %} {% for jalon in action.jalonConnectActions %} {% if jalon.progression==100 %} {% set statutaction = "Terminé" %} {% set statutclass = "badge badge-success small" %} {% elseif jalon.progression == 0 and jalon.responsable is null %} {% set statutclass = "badge small" %} {% set statutaction = "Non démarré" %} {% elseif jalon.progression < 100 and jalon.daterevue > jalon.date %} {% set difference = date(jalon.daterevue).diff(date(jalon.date)) %} {% set leftDays = difference.days %} {% set statutclass = "badge badge-warning small" %} {% set statutaction = "En cours !" %} {% else %} {% set statutclass = "badge badge-primary small" %} {% set statutaction = "En cours" %} {% endif %} {% endfor %} {{ statutaction}}
Projet :
Charge RH :
{{ formAction.vars.value.etp | default("0") }} j/h
Budget :
{{ formAction.vars.value.budget | default("0") }} €
Jalons / livrables :
{{ formAction.vars.value.jalonConnectActions | length | default("0") }}
Mise à jour :
{{ action.PublishedAt | date("d M Y")}}
Démarrage :
{{ formAction.vars.value.datedebut | date("d M Y") | default("N/C") }}
Fin planifiée :
{{ formAction.vars.value.datefin | date("d M Y") | default("N/C") }}
Outlook :
{{ formAction.vars.value.datefinrevue | date("d M Y") }} {% set difference = date(formAction.vars.value.datefinrevue ).diff(date(formAction.vars.value.datefin)) %} {% set delayDays = difference.days %} {% if delayDays > 0 %}({{ delayDays }} jours de retard){% endif %}
Fin réelle :
{{ formAction.vars.value.datefinreelle | date("d M Y") | default("En cours") }}
Progression :
Progression estimée à {{ action.progression | number_format(0, '.', ' ') }} %
{% endif %}

Informations générales


{{ form_widget(formAction.designation)}}
{{ form_widget(formAction.projet)}}
{{ form_widget(formAction.phase)}}
Responsable{{ form_widget(formAction.responsable)}}
Suppléant{{ form_widget(formAction.suppleant)}}
Contributeurs{{ form_widget(formAction.people)}}
{{ form_widget(formAction.description)}}
{{ form_widget(formAction.reference)}}
{{ form_label(formAction.statutaction, 'Statut de l\'action') }}{{ form_widget(formAction.statutaction)}}
{{ form_label(formAction.priorite, 'Priorité') }}{{ form_widget(formAction.priorite)}}

Planification des jalons et des livrables

{% for jalonConnectActions in action.jalonConnectActions %} {% endfor %}
ID Statut Désignation Progression Responsable Outlook Météo Top jalon Progression Météo Description Cout € J/H Date début Date fin initiale Date fin revue (Outlook) Date fin réelle
{{jalonConnectActions.id}} {% if jalonConnectActions.progression==100 %} Terminé {% elseif jalonConnectActions.progression == 0 and jalonConnectActions.responsable is null %} Non démarré {% elseif jalonConnectActions.progression < 100 and jalonConnectActions.daterevue > jalonConnectActions.date %} {% set difference = date(jalonConnectActions.daterevue).diff(date(jalonConnectActions.date)) %} {% set leftDays = difference.days %} En cours (!) {% else %} En cours {% endif %} Progression : {{ jalonConnectActions.progression | default("0") | number_format(0, '.', ' ') }}%
{{ jalonConnectActions.responsable.firstname | default("") }} {{ jalonConnectActions.responsable.lastname | default("") }} {{ jalonConnectActions.daterevue | date("d M Y") }} {% if jalonConnectActions.rag is not null %} {% endif %} {{ jalonConnectActions.topjalon | default("") }} {{ jalonConnectActions.progression | default('0')| number_format(0, '.', ' ') }}% {{ jalonConnectActions.rag.icon | default("") }} {{ jalonConnectActions.commentaire | default("") }} {{ jalonConnectActions.budget | default("") }} {{ jalonConnectActions.etp | default("") }} {{ jalonConnectActions.datedebut | date("d/m/Y") }} {{ jalonConnectActions.date | date("d/m/Y") }} {{ jalonConnectActions.daterevue | date("d/m/Y") }} {{ jalonConnectActions.datereelle | date("d/m/Y") }}
{{ form_widget(formAction.jalonConnectActions) }}

Association


{{ form_widget(formAction.typeconformite)}}
{{ form_widget(formAction.domaineprojet)}}
Flux / Traitement{{ form_widget(formAction.fluxes)}}
Processus{{ form_widget(formAction.processuses)}}
Axes stratégiques{{ form_widget(formAction.axes)}}
Risques{{ form_widget(formAction.risques)}}
{{ form_widget(formAction.applications)}}
{{ form_widget(formAction.sites)}}
{% if editMode %}

Gestionnaire de fichiers


{% endif %}

Notes


{{ form_widget(formAction.commentaire)}}
{{ form_end(formAction) }} {% endblock %} {% block _action_jalonConnectActions_widget %} {{ form_widget(form)}} {% endblock %} {% block _action_jalonConnectActions_entry_widget %} {% endblock %} {% block javascripts %} {% endblock %}