balance.html.twig 270 Bytes
Newer Older
Julien Jorry committed
1 2 3 4 5 6 7
{% extends '@SonataAdmin/CRUD/base_list_field.html.twig' %}
{% set currency = field_description.options.currency|default('mlc') %}
{% block field%}
{%- spaceless %}
    <span>{{ object.getAccountWithCurrency(currency).balance }}</span>
{% endspaceless -%}
{% endblock %}