{% extends "default/datatable.html.twig" %} {% block custom_css %} {{parent()}} {% endblock %} {% block ajout %} {% if app.user.hasright(right_add) %} {{ 'Table.Add' | trans }} {% endif %} {% endblock %} {% block datatable %} {% for d in datas %} {% endfor %}
{{'Table.Notif.ID' | trans}} {{'Table.Notif.Title' | trans}} {{'Table.Notif.Type' | trans}} {{'Table.Notif.Debut' | trans}} {{'Table.Notif.Fin' | trans}} {{'Table.Action' | trans}}
{{ d.id }} {{ d.title }} {% if d.type == 1 %} {{ 'Form.Notif.Type.Alert' | trans }} {% elseif d.type == 2 %} {{ 'Form.Notif.Type.Agenda' | trans }} {% elseif d.type == 3 %} {{ 'Form.Notif.Type.Maintenance' | trans }} {% else %} {{ 'Form.Notif.Type.Update' | trans }} {% endif %} {{ d.debut | format_datetime('long', 'none', locale=app.request.getLocale()) }} {{ d.fin | format_datetime('long', 'none', locale=app.request.getLocale()) }} {% if app.user.hasright(right_edit) %} {{'Table.Edit' | trans}} {% endif %} {% if app.user.hasright(right_delete) %} {% endif %}
{% include 'notification/modal.html.twig' %} {% endblock %} {% block initialisation %} {{parent()}} {% endblock %} {% block custom_js %} {{parent()}} {% endblock %}