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

Fiche projet

{% else %}

Créer une nouveau projet

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

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

{% if editMode %}
Statut :
{% for place in workflow_marked_places(projet) %}{{ workflow_metadata(projet, 'title', place) ?: ''}}{% endfor %}
Managers :
Contributeurs :
{% for people in projet.peoples %} {{ people.firstname }} {{ people.lastname }} {% endfor %}
Mise à jour :
le {{ projet.publishedat | date("d M Y") }} par {{ projet.Publisher.firstname | default("n/c") }}
Workflow :
Passé en {% for place in workflow_marked_places(projet) %} {{ workflow_metadata(projet, 'title', place)|lower ?: ''}}{% endfor %} le {{ projet.validatedat | date("d M Y") }} par {{ projet.validator.firstname | default("n/c") }}
{% set rolep = "" %} {% for people in projet.peoples %}{% if people == app.user.people %}{% set rolep = "people" %}{% endif %}{% endfor %} {% set roles = "" %}{% if projet.suppleant == app.user.people %}{% set roles = "suppleant" %}{% set rolep = "people" %}{% endif %} {% set roler = "" %}{% if projet.responsable == app.user.people or is_granted('ROLE_ADMIN') %}{% set roler = "responsable" %}{% set roles = "suppleant" %}{% set rolep = "people" %}{% endif %} {% for transition in workflow_transitions(projet) %} {% if workflow_can(projet, transition.name) %} {% if workflow_metadata(projet, 'role', transition) in [rolep, roles, roler] %} {{ workflow_metadata(projet, 'title', transition) ?: 'n-a'}} {% endif %} {% endif %} {% else %} No actions available. {% endfor %}
{% endif %}


{% if editMode %}

{{ projet.description | raw}}

Tracking Actions
{% for action in projet.actions if action.archive is null %} {% endfor %}
Désignation Prog. Budget. Prio.
AC-{{ action.id | default("N/C") }} {{ action.designation | default("N/C") }} {% set sumj = 0 %} {% for jalon in action.jalonConnectActions if jalon.fini == 1 %} {% set sumj = loop.index0 + 1 %} {% endfor %} {% set sumu = 0 %} {% for jalon in action.jalonConnectActions %} {% set sumu = loop.index0 + 1 %} {% endfor %} Progression estimée à {{ action.progression | number_format(0, '.', ' ') | default("0") }}%. {{ sumj }} jalons terminés sur un total de {{ sumu }}
{{ action.budget | number_format(0, '.', ' ') | default("N/C") }}€ {{ action.etp | number_format(0, '.', ' ') | default("N/C") }}j/h {{ action.priorite.designation | default("N/C") }}
Progression
{% set sumratings = 0 %} {% for action in projet.actions if action.id is defined %} {% set sumratings = sumratings + action.progression %} {% endfor %} {% if projet.actions|length >0 %} {% set sumratings = sumratings / projet.actions|length %} {% endif %}
Progression du projet à {{ sumratings | number_format(0, '.', ' ') }} %
KPI
Programme :
{{ projet.program.designation | default("N/C") }}
Axe :
{{ projet.axe.title | default("N/C") }}
Pilote :
{{ projet.metier.code | default("N/C") }} - {{ projet.responsale.firstname | default("N/C") }} {{ projet.responsable.lastname | default("N/C") }}
Budget :
{% set sum = 0 %} {% set suma = 0 %} {% set complet = "" %} {% for action in projet.actions %} {%if action.budget is not null %} {% set sum = action.budget + sum ?? 0 %} {% if loop.last %}{% endif %} {% else %} {% set complet = "Incomplet" %} {% endif %} {% for jalon in action.jalonConnectActions %} {%if jalon.budget is not null and jalon.fini ==1 %} {% set suma = jalon.budget + suma ?? 0 %} {% endif %} {% endfor %} {% endfor %} (P) {{ sum | number_format(0, '.', ' ') }} € {{ complet | default("") }} - (C) {{ suma | number_format(0, '.', ' ') }} €
R/H :
{% set sumj = 0 %} {% set sume = 0 %} {% for action in projet.actions %} {%if action.etp is not null %} {% set sumj = action.etp + sumj ?? 0 %} {% if loop.last %}{% endif %} {% endif %} {% for jalon in action.jalonConnectActions %} {%if jalon.etp is not null and jalon.fini ==1 %} {% set sume = jalon.etp + sume ?? 0 %} {% endif %} {% endfor %} {% endfor %} (P) {{ sumj | number_format(0, '.', ' ') }} j/h - (C) {{ sume | number_format(0, '.', ' ') }} j/h
Démarré :
{% set minValue = "now"|date("Y-m-d") %} {% for action in projet.actions %} {% set minValue = min(action.datedebut|date("Y-m-d"), minValue) %} {% endfor %} {{ minValue }}
Fin planifiée :
{% set maxValue2 = 0 %} {% for action in projet.actions if action.datefin is defined and action.datefin is not null %} {% set maxValue2 = max(action.datefin|date("Y-m-d"), maxValue2) %} {% endfor %} {{ maxValue2 }}
Outlook :
{% set maxValue3 = 0 %} {% for action in projet.actions %} {% if action.datefinrevue is defined and action.datefinrevue is not null %} {% set maxValue3 = max(action.datefinrevue|date("Y-m-d"), maxValue3) %} {% endif %} {% endfor %} {{ maxValue3 }}
Fin réelle :
{% set maxValue4 = 0 %} {% set end = '' %} {% for action in projet.actions %} {% set maxValue4 = max(action.datefinreelle|date("Y-m-d"), maxValue4) %} {% if action.datefinreelle is null or action.datefinreelle is not defined or action.datefinreelle == '' %} {% set end = 'En cours' %} {% endif %} {% endfor %} {% if end == '' %} {{ maxValue4 }} {% else %} {{ end }} {% endif %}
Comply
{% endif %}

Informations générales


{{ form_widget(formProjet.designation)}}
{{ form_widget(formProjet.code)}}
{{ form_widget(formProjet.description)}}
Direction{{ form_widget(formProjet.metier)}}
Pilote{{ form_widget(formProjet.responsable)}}
Suppleant{{ form_widget(formProjet.suppleant)}}
Contributeurs{{ form_widget(formProjet.peoples)}}

Relations


{{ form_widget(formProjet.axe)}}
{{ form_widget(formProjet.contributeur)}}
Pré-requis{{ form_widget(formProjet.prerequis)}}
Risques{{ form_widget(formProjet.risques)}}
{{ form_widget(formProjet.actions)}}
{{ form_widget(formProjet.tier)}}

Gestionnaire de fichiers


Notes


{{ form_widget(formProjet.commentaire)}}
{{ form_end(formProjet) }} {% endblock %} {% block javascripts %} {% endblock %}