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

Réclamation

{% else %}

Créer une réclamation

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

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

{% if editMode %}
Statut :
{% for place in workflow_marked_places(reclamation) %}{{ workflow_metadata(reclamation, 'title', place) ?: ''}}{% endfor %}
Managers :
{% if reclamation.redacteur is not null %}
Rédacteur :
{% endif %} {% if reclamation.peoples | length >0 %}
Contributeurs :
{% for people in reclamation.peoples %} {{ people.firstname }} {{ people.lastname }} {% endfor %}
{% endif %}
Mise à jour :
le {{ reclamation.publishedat | date("d M Y") }} par {{ reclamation.Publisher.firstname | default("n/c") }}
Workflow :
le {{ reclamation.validatedat | date("d M Y") }} par {{ reclamation.validator.firstname | default("n/c") }}
  • 1 {% if workflow_has_marked_place(reclamation, 'draft') or workflow_has_marked_place(reclamation, 'rejected') %}Rédaction{% else %}Rédigé{% endif %}
  • 2 {% if workflow_has_marked_place(reclamation, 'review') or workflow_has_marked_place(reclamation, 'draft') or workflow_has_marked_place(reclamation, 'rejected') %}Révision
    (Resp.){% else %}Revu
    (Resp.){% endif%}
  • 3 {% if workflow_has_marked_place(reclamation, 'validation_ok') %}Validé
    {% else %}validation
    {% endif%}
{% set rolep = "" %}{% if reclamation.redacteur == app.user.people %}{% set rolep = "redacteur" %}{% endif %} {% set roles = "" %}{% if reclamation.responsable == app.user.people %}{% set roles = "responsable" %}{% set rolep = "redacteur" %}{% endif %} {% set roler = "" %}{% if app.user.customer.dpo == app.user.people or is_granted('ROLE_ADMIN') %}{% set roler = "dpo" %}{% set roles = "responsable" %}{% set rolep = "redacteur" %}{% endif %} {% for transition in workflow_transitions(reclamation) %} {% if workflow_can(reclamation, transition.name) %} {% if workflow_metadata(reclamation, 'role', transition) in [rolep, roles, roler] %} {{ workflow_metadata(reclamation, 'title', transition) ?: 'n-a'}} {% endif %} {% endif %} {% else %} No actions available. {% endfor %}
{% endif %}


Informations générales


{{ form_widget(formReclamation.designation)}}
{{ form_widget(formReclamation.typereclamations)}}
{{ form_widget(formReclamation.description)}}
{{ form_label(formReclamation.responsable, 'Responsable') }}{{ form_widget(formReclamation.responsable)}}
{{ form_label(formReclamation.suppleant, 'Suppléant') }}{{ form_widget(formReclamation.suppleant)}}
{{ form_label(formReclamation.redacteur, 'Rédacteur') }}{{ form_widget(formReclamation.redacteur)}}
{{ form_label(formReclamation.peoples, 'Contributeurs') }}{{ form_widget(formReclamation.peoples)}}
{{ form_label(formReclamation.declarantnom, 'Nom complet') }}{{ form_widget(formReclamation.declarantnom)}}
{{ form_label(formReclamation.declaranttel, 'Téléphone') }}{{ form_widget(formReclamation.declaranttel)}}
{{ form_label(formReclamation.declarantemail, 'Email') }}{{ form_widget(formReclamation.declarantemail)}}
{{ form_label(formReclamation.anonyme, 'Je souhaite que mon anonymat soit préservé') }}{{ form_widget(formReclamation.anonyme)}}
{{ form_label(formReclamation.information, 'Je souhaite être tenu informé(e) de l\'enquête et des suites proposées') }}{{ form_widget(formReclamation.information)}}
{{ form_widget(formReclamation.actions)}}

Association


{{ form_widget(formReclamation.typeconformite)}}
{{ form_widget(formReclamation.processuses)}}
{{ form_widget(formReclamation.sites)}}

Gestionnaire de fichiers


Notes


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