{% block oro_promotion_discount_options_widget %}
{{ form_row(form.discount_type) }} {{ form_row(form.amount_discount_value) }} {{ form_row(form.percent_discount_value) }} {{ form_rest(form) }}
{% endblock %} {% block oro_promotion_buy_x_get_y_discount_options_widget %}
{{ form_row(form.discount_type) }} {{ form_row(form.discount_product_unit_code) }} {{ form_row(form.buy_x) }} {{ form_row(form.get_y) }} {{ form_row(form.amount_discount_value) }} {{ form_row(form.percent_discount_value) }} {{ form_rest(form) }}
{% endblock %} {% block oro_promotion_line_item_discount_options_widget %}
{{ form_row(form.discount_type) }} {{ form_row(form.amount_discount_value) }} {{ form_row(form.percent_discount_value) }} {{ form_row(form.apply_to) }} {{ form_row(form.discount_product_unit_code) }} {{ form_rest(form) }}
{% endblock %} {% block oro_promotion_discount_configuration_widget %} {% set dataPrototypes = [] %} {% for prototypeKey, prototypeForm in prototypes %} {% set dataPrototypes = dataPrototypes|merge({(prototypeKey): form_widget(prototypeForm)}) %} {% endfor %}
{{ form_row(form.type, {attr: {'data-role': 'discount-form-choice'}}) }}
{{ form_widget(form.options) }}
{% endblock %} {% block oro_promotion_coupon_add_row %} {% set addButtonId = form.coupon.vars.id ~ '-add-button' %} {% set addedCouponsContainerId = form.addedCoupons.vars.id ~ '-added-coupons-container' %}
{{ form_row(form.coupon, {attr: {class: 'coupon-select'}}) }}
{{ form_row(form.addedCoupons, {attr: {'data-role': 'added-coupons-field'}}) }}
{% endblock %} {% block oro_promotion_coupon_dashes_sequence_widget %} {% apply spaceless %} {{ form_widget(form) }} {% endapply %} {% endblock %} {% block oro_promotion_applied_promotion_widget %} {% if form.vars.value %}
{{ form_widget(form.active, {attr: {'data-role': 'applied-promotion-active'}}) }} {{ form_widget(form.sourcePromotionId) }}
{% endif %} {% endblock %} {% block oro_promotion_applied_coupon_collection_widget %} {% import '@OroUI/macros.html.twig' as UI %}
{{ 'oro.promotion.all_label'|trans }}
{% if not form.vars.entity.disablePromotions %} {{ UI.clientLink({ 'dataUrl': path('oro_action_widget_form', { operationName: 'oro_promotion_add_coupon_form', entityClass: oro_class_name(form.vars.entity), entityId: {id: form.vars.entity.id} }), 'aCss': 'btn', 'dataAttributes': { 'role': 'add' }, 'label': 'oro.promotion.ui.add_coupon_code.label'|trans, 'widget': { 'type': 'dialog', 'multiple': false, 'options': { 'alias': dialogWidgetAlias, 'dialogOptions': { 'okText': 'oro.promotion.ui.apply_button.label'|trans, 'width': 600, 'autoResize': true, 'title': 'oro.promotion.ui.add_coupon_codes.title'|trans, 'allowMaximize': true, 'allowMinimize': false, 'dblclick': false, 'modal': true, 'maximizedHeightDecreaseBy': 'minimize-bar' } } } }) }} {% endif %}
{% if form.vars.entity.disablePromotions %}
{{ 'oro.order.disable_promotions.disabled_for_oder'|trans }}
{% else %} {% import '@OroOrder/Order/macros.html.twig' as order_macros %}
{{ order_macros.hiddenCollection(form) }}
{% endif %} {% endblock %} {% block oro_promotion_applied_coupon_widget %}
{{ form_widget(form.couponCode, {attr: {'data-role': 'applied-coupon-code'}}) }} {{ form_widget(form.sourcePromotionId, {attr: {'data-role': 'applied-coupon-source-promotion-id'}}) }} {{ form_widget(form.sourceCouponId, {attr: {'data-role': 'applied-coupon-source-coupon-id'}}) }}
{% endblock %}