{% extends "base.html.twig" %} {% block body %}

AUDIT {{ entityname }}

Audit
{% for audit in audits|reverse %} {% endfor %}
Date Par Action Id Détail
{{audit.datesubmit|date("d/m/Y H:i")}} {{audit.username}} {{audit.description}} {{audit.entityid}} {% for key, detail in audit.detail %} {% if audit.description=="UPDATE" %} {{key}} = de {%if detail[0] is empty%}null {%else%}{{detail[0]|join(', ')}}{%endif%} à {%if detail[1] is empty%}null {%else%} {{detail[1]|join(', ')}}{%endif%}
{% else %} id {{detail}} {% endif %} {% endfor %}
{% endblock %} {% block localscript %} {% endblock %}