{% extends admin.getTemplate('base_list_field') %} {% block field %} {% apply spaceless %} {%- if object.minimumCotisation is not null and object.amount is not null -%} {%- set diff = object.amount - object.minimumCotisation -%} {%- set diffAbs = diff < 0 ? -diff : diff -%} {%- if diff == 0 -%} = 0,00€ {%- elseif diff > 0 -%} +{{ diffAbs|number_format(2, ',', ' ') }}€ {%- else -%} −{{ diffAbs|number_format(2, ',', ' ') }}€ {%- endif -%} {%- else -%} {%- endif -%} {% endapply %} {% endblock %}