You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

amount.html.twig 278B

123456789
  1. {% set item = entity.instance %}
  2. {% if item.unit == constant('App\\Entity\\Config\\Unit::UNIT_PERCENT') %}
  3. {% set unit = '%' %}
  4. {% elseif item.unit == constant('App\\Entity\\Config\\Unit::UNIT_AMOUNT') %}
  5. {% set unit = '€' %}
  6. {% endif %}
  7. -{{ item.value }}{{ unit }}