{% extends "default/datatable.html.twig" %} {% block ajout %} {% if app.user.hasright(right_add) %} {{ 'Table.Add' | trans }} {% endif %} {% endblock %} {% block datatable %}
ID | {{'Table.Anomalie.Module' | trans}} | {{'Table.Anomalie.Gravity' | trans}} | {{'Table.Anomalie.Statut' | trans}} | {{'Table.Action' | trans}} |
---|---|---|---|---|
{{ d.id }} | {% if d.module == 1 %} {{ 'Form.Anomalie.Module.Dashboard' | trans}} {% elseif d.module == 2 %} {{ 'Form.Anomalie.Module.Variable' | trans}} {% elseif d.module == 3 %} {{ 'Form.Anomalie.Module.Update' | trans}} {% elseif d.module == 4 %} {{ 'Form.Anomalie.Module.Consultation' | trans}} {% elseif d.module == 5 %} {{ 'Form.Anomalie.Module.Publication' | trans}} {% elseif d.module == 6 %} {{ 'Form.Anomalie.Module.Notification' | trans}} {% elseif d.module == 7 %} {{ 'Form.Anomalie.Module.Parameter' | trans}} {% endif %} | {% if d.gravity == 1 %} {{ 'Form.Anomalie.Gravity.None' | trans}} {% elseif d.gravity == 2 %} {{ 'Form.Anomalie.Gravity.Stop' | trans}} {% elseif d.gravity == 3 %} {{ 'Form.Anomalie.Gravity.Crash' | trans}} {% endif %} | {%if d.statut == 1 %} {{ 'Form.Anomalie.Statut.Declared' | trans}} {% elseif d.statut == 2 %} {{ 'Form.Anomalie.Statut.Ongoing' | trans}} {% elseif d.statut == 3 %} {{ 'Form.Anomalie.Statut.Fixed' | trans}} {% elseif d.statut == 4 %} {{ 'Form.Anomalie.Statut.Evolution' | trans}} {% endif %} | {% if app.user.hasright(right_view) %} {{'Table.View' | trans}} {% endif %} {% if app.user.hasright(right_edit) %} {{'Table.Edit' | trans}} {% endif %} |