{% extends '@kohinos/common/layout.html.twig' %} {% block content %}
{% include '@kohinos/block/breadcrumb.html.twig' with {'label' : 'Opérations du compte'|trans } %}

{{ 'Opérations du compte'|trans }} {{ getCurrencyName(currency) }}

{{ form_start(searchForm, {'attr': {'id': 'formListOperations'}}) }} {{ form_row(searchForm._token) }}
{{ form_row(searchForm.moyen) }}
{{ form_row(searchForm.datemin) }}
{{ form_row(searchForm.datemax) }}
{{ form_row(searchForm.submit) }}
{% for operation in operations %} {% endfor %}
{{ 'Date'|trans }} {{ 'Montant'|trans }} {{ 'Type'|trans }} {{ 'Moyen'|trans }} {{ 'Operation'|trans }} {{ 'Référence'|trans }}
{{ operation.createdAt|date('d/m/Y') }} {{ (operation.montant < 0)? '- ':'+ ' }} {{ operation.montant|abs|number_format(2) }} {{ ((isCurrentAccountable(app.user, operation.flux.expediteur) ? 'exp' : 'des')~'_'~operation.flux.parenttype)|trans({}, 'flux') }} {{ operation.flux.moyen|trans }} {% if not isCurrentAccountable(app.user, operation.flux.expediteur) %} {{ operation.flux.expediteur }} {% elseif not isCurrentAccountable(app.user, operation.flux.destinataire) %} {{ operation.flux.destinataire }} {% endif %} {{ operation.flux.reference }}
{% if operations|length > 0 %}
{{ knp_pagination_render(operations) }}
{% endif %}
{% endblock %}