{% block content %} {% import '@OroUI/macros.html.twig' as UI %} {% set options = entity.discountConfiguration.options %} {% if options['discount_type'] == constant('Oro\\Bundle\\PromotionBundle\\Discount\\DiscountInterface::TYPE_AMOUNT') %} {% set discountValue = options['discount_value']|oro_format_currency({currency: options['discount_currency']}) %} {% else %} {% set discountValue = options['discount_value']|oro_format_percent %} {% endif %} {% set data = [ UI.renderProperty( 'oro.promotion.discountconfiguration.type.discount.label'|trans, ('oro.discount.type.choices.' ~ entity.discountConfiguration.type)|trans ), UI.renderProperty( 'oro.promotion.discountconfiguration.options.type.label'|trans, ('oro.discount_options.general.type.choices.' ~ options['discount_type'])|trans ), UI.renderProperty('oro.promotion.discountconfiguration.options.discount_value.label'|trans, discountValue) ]|merge(data|default({})) %} {{ UI.scrollSubblock(null, data) }} {% endblock %}