{% extends '@AdminLTE/layout/mesodd-layout.html.twig' %} {% block page_title %}{% trans %}evaluation.title{% endtrans %}{% endblock %} {% block page_content %} {{ form_start(form) }} {% embed '@AdminLTE/Widgets/box-widget.html.twig' %} {% block box_body %}
| Activité | Nature | Cible | {{(app.session.get('_commune') or app.session.get('_departement')) ? '# Arr.' : '# Com.'}} | Sensibilité | Appréciation | Suggestion | {# nouvelle colonne #} {% if (is_granted('ROLE_MANAGER')) %}{% endif %} {% for notation in notations %} |
|---|---|---|---|---|---|---|---|
| {{ notation.activity.code }} - {{ notation.activity.name }} | {{ notation.nature.name }} | {% if notation.target %} {{ notation.target.name }} {% endif %} | {{ notation.nbOfLocation }} | {{ notation.sensitivity|number_format(2) }} % | {{ notation.appreciation.name }} | {# --- 🔹 Colonne suggestion avec modal formaté --- #}
{% set suggestion = suggestions[notation.activity.id] ?? null %}
{% if suggestion %}
{% set formattedSuggestion = suggestion
|replace({'**': ''})
|replace({'**': ''})
|replace({'1.': ' 1.'}) |replace({'2.': ' 2.'}) |replace({'3.': ' 3.'}) |raw %} {% else %} Aucune suggestion {% endif %} |
{# Colonne actions (reste inchangée) #}
{% if (is_granted('ROLE_MANAGER') or is_granted('ROLE_FOCAL')) %}
{% trans %}basics.update{% endtrans %}
{% if notation.duplicated %} {% else %} {% trans %}basics.duplicate{% endtrans %} {% endif %} |
{% endif %}