vendor/sonata-project/intl-bundle/src/Resources/views/CRUD/list_decimal.html.twig line 1

Open in your IDE?
  1. {#
  2. This file is part of the Sonata package.
  3. (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
  4. For the full copyright and license information, please view the LICENSE
  5. file that was distributed with this source code.
  6. #}
  7. {% extends admin.getTemplate('base_list_field') %}
  8. {% block field%}
  9.     {%- if value is null -%}
  10.         &nbsp;
  11.     {%- else -%}
  12.         {% set attributes = field_description.options.attributes|default({}) %}
  13.         {% set textAttributes = field_description.options.textAttributes|default({}) %}
  14.         {% set locale = field_description.options.locale|default(null) %}
  15.         {{ value | number_format_decimal(attributes, textAttributes, locale) }}
  16.     {%- endif -%}
  17. {% endblock %}