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

Fiche tâche

{% else %}

Créer une nouvelle tâche

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

{% if not editMode %} Nouvelle fiche {% else %} Task - {{ tache.id }} {{ tache.jalon | capitalize }} {% endif %}

{% if editMode %}
Statut :
{% if tache.progression==100 %} Terminé {% elseif tache.progression == 0 and tache.responsable is null %} Non démarré {% elseif tache.progression < 100 and tache.daterevue > tache.date %} {% set difference = date(tache.daterevue).diff(date(tache.date)) %} {% set leftDays = difference.days %} En cours (!) {% else %} En cours {% endif %}
Etat :
{% for place in workflow_marked_places(tache) %}{{ workflow_metadata(tache, 'title', place) ?: ''}}{% endfor %}
Managers :
{% if tache.peoples | length >0 %}
Contributeurs :
{% for people in tache.peoples %} {{ people.firstname }} {{ people.lastname }} {% endfor %}
{% endif %}
Mise à jour :
le {{ tache.publishedat | date("d M Y") }} par {{ tache.Publisher.firstname | default("n/c") }}
Workflow :
Passé en {% for place in workflow_marked_places(tache) %} {{ workflow_metadata(tache, 'title', place)|lower ?: ''}}{% endfor %} le {{ tache.validatedat | date("d M Y") }} par {{ tache.validator.firstname | default("n/c") }}
  • 1 {% if workflow_has_marked_place(tache, 'draft') or workflow_has_marked_place(tache, 'rejected') %}Brouillon{% else %}Initié{% endif %}
  • 2 {% if workflow_has_marked_place(tache, 'pre_running') or workflow_has_marked_place(tache, 'running') or workflow_has_marked_place(tache, 'draft') or workflow_has_marked_place(tache, 'rejected') %}En cours{% else %}Finalisé{% endif%}
  • 3 {% if workflow_has_marked_place(tache, 'validation_ok') %}Validé{% else %}Validation{% endif%}
{% set roles = "" %}{% if tache.action.responsable == app.user.people or is_granted('ROLE_ADMIN') %}{% set roler = "responsable" %}{% set roles = "responsableaction" %}{% endif %} {% set roler = "" %}{% if tache.action.responsable == app.user.people or tache.responsable == app.user.people or is_granted('ROLE_ADMIN') %}{% set roler = "responsable" %}{% endif %} {% for transition in workflow_transitions(tache) %} {% if workflow_can(tache, transition.name) %} {% if workflow_metadata(tache, 'role', transition) in [roles, roler] %} {{ workflow_metadata(tache, 'title', transition) ?: 'n-a'}} {% endif %} {% endif %} {% else %} No actions available. {% endfor %}
{% endif %}
{% if editMode %}
Progression :
Progression estimée à {{ formTache.vars.value.progression | number_format(0, '.', ' ') }} %
{% endif %}

Informations générales


{{ form_widget(formTache.jalon, { 'attr': {'class': 'VarDesignation'} })}}
{{ form_widget(formTache.topjalon) }}
{{ form_widget(formTache.fini, { 'attr': {'class': 'VarJalFini', 'data-action':'show'} })}}
{{ form_widget(formTache.description)}}
{{ form_widget(formTache.action)}}
Responsale{{ form_widget(formTache.responsable, { 'attr': {'class': 'VarResponsable'} })}}
Suppleant{{ form_widget(formTache.suppleant, { 'attr': {'class': 'VarSuppleant'} })}}
Contributeurs{{ form_widget(formTache.peoples, { 'attr': {'class': 'select2'} })}}
Tendance {{ form_widget(formTache.rag)}}
Progression {% if formTache.vars.value.fini is defined and formTache.vars.value.fini ==1 %} {{ form_widget(formTache.progression, { 'attr': {'class': 'VarProgression Off'} })}} {%else%} {{ form_widget(formTache.progression, { 'attr': {'class': 'VarProgression'} })}} {%endif%}
Budget {% if formTache.vars.value.fini is defined and formTache.vars.value.fini ==1 %} {{ form_widget(formTache.budget, { 'attr': {'class': 'VarBudget Off'} })}} {%else%} {{ form_widget(formTache.budget, { 'attr': {'class': 'VarBudget'} })}} {%endif%}
J/H {% if formTache.vars.value.fini is defined and formTache.vars.value.fini ==1 %} {{ form_widget(formTache.etp, { 'attr': {'class': 'VarEtp Off'} })}} {%else%} {{ form_widget(formTache.etp, { 'attr': {'class': 'VarEtp'} })}} {%endif%}
Démarrage {% if formTache.vars.value.fini is defined and formTache.vars.value.fini ==1 %} {{ form_widget(formTache.datedebut, { 'attr': {'class': 'VarDateDebut Off'} })}} {%else%} {{ form_widget(formTache.datedebut, { 'attr': {'class': 'VarDateDebut'} })}} {%endif%}
Fin planifiée {% if formTache.vars.value.fini is defined and formTache.vars.value.fini ==1 %} {{ form_widget(formTache.date, { 'attr': {'class': 'VarDateprevisionnelle Off'} })}} {%else%} {{ form_widget(formTache.date, { 'attr': {'class': 'VarDateprevisionnelle'} })}} {%endif%}
Outlook {% if formTache.vars.value.fini is defined and formTache.vars.value.fini ==1 %} {{ form_widget(formTache.daterevue, { 'attr': {'class': 'VarDateRevue Off'} })}} {%else%} {{ form_widget(formTache.daterevue, { 'attr': {'class': 'VarDateRevue'} })}} {%endif%}
J/H {% if formTache.vars.value.fini is defined and formTache.vars.value.fini ==1 %} {{ form_widget(formTache.datereelle, { 'attr': {'class': 'VarDateReelle On'} })}} {%else%} {{ form_widget(formTache.datereelle, { 'attr': {'class': 'VarDateReelle Off'} })}} {%endif%}
* information obligatoire

Gestionnaire de fichiers


Notes


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