{% extends 'layout_admin.html.twig' %} {% block content %}
{{ form_row(form_filter.code) }}
{{ form_row(form_filter.point_de_vente) }}
{{ form_row(form_filter.used_at) }}
{{ form_row(form_filter.action) }}

{% for entity in pager.currentPageResults %} {% endfor %}
{% include 'sort.html.twig' with { 'col' : 'q.id', 'name': 'form.id' } %} {% include 'sort.html.twig' with { 'col' : 'q.code', 'name': 'form.code' } %} {% include 'sort.html.twig' with { 'col' : 'q.countCode', 'name': 'nombre d\'utilisations' } %} {% include 'sort.html.twig' with { 'col' : 'q2.nom', 'name': 'form.point_de_vente' } %} {% include 'sort.html.twig' with { 'col' : 'q.date_debut_validite', 'name': 'Début de la validite' } %} {% include 'sort.html.twig' with { 'col' : 'q.date_fin_validite', 'name': 'Fin de la validite' } %} {% include 'sort.html.twig' with { 'col' : 'q.action', 'name': 'Action' } %} {% include 'sort.html.twig' with { 'col' : 'q.used_at', 'name': 'Utilisé le:' } %}
{{ entity.id }} {{ entity.code }} {{ entity.countCode ? entity.countCode : 0 }} {% if entity.pointDeVente %} {{entity.pointDeVente.getUniqueName}} {% endif %} {{ entity.dateDebutValidite | date('d/m/Y à H:i:s') }} {{ entity.dateFinValidite | date('d/m/Y à H:i:s') }} {{ entity.actionToPrint }} {% if null != entity.usedAt %}{{ entity.usedAt| date('d/m/Y à H:i:s') }}{% endif %}
{% if pager.haveToPaginate %}
{{ pagerfanta(pager, 'twitter_bootstrap3', {'prev_message': 'Previous'|trans, 'next_message': 'Next'|trans}) }}
{% endif %}
{% endblock %} {% block my_js %} {{ parent() }} {{ encore_entry_script_tags('admin_codeSpecial_index') }} {% endblock %}