{# This file is part of the Sonata package. (c) Thomas Rabaix For the full copyright and license information, please view the LICENSE file that was distributed with this source code. #} {% extends admin.getTemplate('base_list_field') %} {% block field%} {%- if value is null -%}   {%- else -%} {% set currency = app.user.getCurrency() %} {% if currency is null %} {% set currency = default_currency %} {% endif %} {% if value is not null %} {% if value < 0 %} {# @todo Fix Temporary but seem PhP version problem 5.5, 5.6... #} -{{ value|abs|localizedcurrency(currency) }} {% else %} {{ value|abs|localizedcurrency(currency) }} {% endif %} {% endif %} {%- endif -%} {% endblock %}