#@todo: add legacy links after page is fully migrated
admin_cart_rules_index:
  path: /
  methods: [GET]
  defaults:
    _controller: 'PrestaShopBundle:Admin/Sell/Catalog/CartRule:index'
    _legacy_controller: AdminCartRules
    #    _legacy_link: AdminCartRule

admin_cart_rules_search:
    path: /search
    methods: [GET]
    defaults:
        _controller: 'PrestaShopBundle:Admin/Sell/Catalog/CartRule:search'
        _legacy_controller: AdminCartRules
    options:
      expose: true

admin_cart_rules_search_grid:
  path: /
  methods: [POST]
  defaults:
    _controller: PrestaShopBundle:Admin\Common:searchGrid
    gridDefinitionFactoryServiceId: prestashop.core.grid.definition.factory.cart_rule
    redirectRoute: admin_cart_rules_index
    _legacy_controller: AdminCartRules

admin_cart_rule_toggle_status:
  path: /{cartRuleId}/toggle-status
  methods: [POST]
  defaults:
    _controller: 'PrestaShopBundle:Admin/Sell/Catalog/CartRule:toggleStatus'
    _legacy_controller: AdminCartRules
   # _legacy_link: AdminCartRules:statuscart_rule
    _legacy_parameters:
      id_cart_rule: cartRuleId
  requirements:
    cartRuleId: \d+

admin_cart_rules_delete:
  path: /{cartRuleId}/delete
  methods: [POST, DELETE]
  defaults:
    _controller: 'PrestaShopBundle:Admin\Sell\Catalog\CartRule:delete'
    _legacy_controller: AdminCartRules
    #    _legacy_link: AdminCartRules:deletecart_rule
    _legacy_parameters:
      id_cart_rule: cartRuleId
  requirements:
    cartRuleId: \d+

admin_cart_rules_bulk_delete:
  path: /bulk-delete
  methods: [POST]
  defaults:
    _controller: 'PrestaShopBundle:Admin\Sell\Catalog\CartRule:bulkDelete'
    _legacy_controller: AdminCartRules
#    _legacy_link: AdminCartRules:submitBulkdeletecart_rule

admin_cart_rules_bulk_enable_status:
  path: /bulk-enable
  methods: [POST]
  defaults:
    _controller: 'PrestaShopBundle:Admin/Sell/Catalog/CartRule:bulkEnable'
    _legacy_controller: AdminCartRules
#    _legacy_link: AdminCartRules:submitBulkenableSelectioncart_rule

admin_cart_rules_bulk_disable_status:
  path: /bulk-disable
  methods: [POST]
  defaults:
    _controller: 'PrestaShopBundle:Admin/Sell/Catalog/CartRule:bulkDisable'
    _legacy_controller: AdminCartRules
#   _legacy_link: AdminCartRules:submitBulkdisableSelectioncart_rule
