Skip to content
Snippets Groups Projects
Commit 23de561f authored by sebastien dupuy's avatar sebastien dupuy
Browse files

Preparation affichage synthese indice de maturite

parent a7a79566
No related branches found
No related tags found
No related merge requests found
......@@ -13,6 +13,11 @@ maturity_survey_edit:
methods: ['GET', 'POST']
controller: 'App\Domain\Maturity\Controller\SurveyController:editAction'
maturity_survey_synthese:
path: '/synthese/{id}'
methods: ['GET']
controller: 'App\Domain\Maturity\Controller\SurveyController:SyntheseAction'
maturity_survey_report:
path: '/bilan/{id}'
methods: ['GET']
......
......@@ -82,10 +82,14 @@
{% endif %}
{% if is_granted('ROLE_USER') %}
{% if object.referentiel is defined and object.referentiel.id is defined %}
<a aria-label="{{ 'action.edit'|trans }}" href="{{ path('maturity_survey_edit', { 'id': object.id }) }}">
<i class="fa fa-pencil-alt"></i>
{{ 'action.edit'|trans }}
</a>
<a aria-label="{{ 'action.synthese'|trans }}" href="{{ path('/indice-de-maturite/synthese/{id}', { 'id': object.id }) }}">
<i class="fa fa-pencil-alt"></i>
{{ 'action.edit'|trans }}
</a>
<a aria-label="{{ 'action.edit'|trans }}" href="{{ path('maturity_survey_edit', { 'id': object.id }) }}">
<i class="fa fa-pencil-alt"></i>
{{ 'action.edit'|trans }}
</a>
{% endif %}
<a aria-label="{{ 'action.delete'|trans }}" href="{{ path('maturity_survey_delete', { 'id': object.id }) }}">
<i class="fa fa-trash"></i>
......
{% extends 'base.html.twig' %}
{% set bodyClass = 'maturity_survey form edit' %}
{% set menuItem = 'maturity_survey' %}
{% block title %}{{ 'maturity.survey.title.edit'|trans }} - {{ parent() }}{% endblock %}
{% block body_head %}
<h1>
{{ 'maturity.survey.title.edit'|trans }}
<small>{{ form.vars.value.createdAt|date("d/m/Y") }}</small>
{% if form.vars.value.referentiel and form.vars.value.referentiel.name %}
<small>Référentiel : {{ form.vars.value.referentiel.name}}</small>
{% endif %}
</h1>
{% endblock %}
{% block breadcrumb %}
{% set breadcrumb = [
{ 'name': 'maturity.survey.breadcrumb.list'|trans, 'link': path('maturity_survey_list') },
{ 'name': 'maturity.survey.breadcrumb.edit'|trans }
] %}
{% include '_breadcrumb.html.twig' with {'breadcrumb': breadcrumb} %}
{% endblock %}
{% block body %}
{{ include('Maturity/Survey/_form.html.twig') }}
{% endblock %}
{% block javascripts %}
{{ include('Maturity/Survey/_form_js.html.twig') }}
{% endblock %}
......@@ -13,6 +13,7 @@ action:
download: Télécharger
draft: Enregistrer un brouillon
duplicate: Dupliquer
synthese: Synthèse
edit: Modifier
share: Partager
export: Exporter
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment