admin_cms_pages_index:
  path: /
  methods: GET
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Improve\Design\CmsPageController::indexAction'
    _legacy_controller: AdminCmsContent
    _legacy_link: AdminCmsContent

admin_cms_pages_search:
  path: /search
  methods: POST
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Improve\Design\CmsPageController::searchAction'
    _legacy_controller: AdminCmsContent
    _legacy_link: AdminCmsContent:submitFiltercms

admin_cms_pages_create:
  path: /new
  methods: [ GET, POST ]
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Improve\Design\CmsPageController::createAction'
    _legacy_controller: AdminCmsContent
    _legacy_link: AdminCmsContent:addcms

admin_cms_pages_edit:
  path: /{cmsPageId}/edit
  methods: [ GET, POST ]
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Improve\Design\CmsPageController::editAction'
    _legacy_controller: AdminCmsContent
    _legacy_link: AdminCmsContent:updatecms
    _legacy_parameters:
      id_cms: cmsPageId
  requirements:
    cmsPageId: \d+

admin_cms_pages_toggle:
  path: /{cmsId}/toggle-status
  methods: POST
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Improve\Design\CmsPageController::toggleCmsAction'
    _legacy_controller: AdminCmsContent
    _legacy_link: AdminCmsContent:statuscms
    _legacy_parameters:
      id_cms: cmsId
  requirements:
    cmsId: \d+

admin_cms_pages_delete:
  path: /{cmsId}/delete
  methods: DELETE
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Improve\Design\CmsPageController::deleteCmsAction'
    _legacy_controller: AdminCmsContent
    _legacy_link: AdminCmsContent:deletecms
    _legacy_parameters:
      id_cms: cmsId
  requirements:
    cmsId: \d+

admin_cms_pages_bulk_enable_status:
  path: /bulk-enable-status
  methods: POST
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Improve\Design\CmsPageController::bulkEnableCmsPageStatusAction'
    _legacy_controller: AdminCmsContent
    _legacy_link: AdminCmsContent:submitBulkenableSelectioncms

admin_cms_pages_bulk_disable_status:
  path: /bulk-disable-status
  methods: POST
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Improve\Design\CmsPageController::bulkDisableCmsPageStatusAction'
    _legacy_controller: AdminCmsContent
    _legacy_link: AdminCmsContent:submitBulkdisableSelectioncms

admin_cms_pages_bulk_delete:
  path: /bulk-delete
  methods: POST
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Improve\Design\CmsPageController::bulkDeleteCmsPageAction'
    _legacy_controller: AdminCmsContent
    _legacy_link: AdminCmsContent:submitBulkdeletecms

admin_cms_pages_search_cms_category:
  path: /category/search
  methods: POST
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\CommonController::searchGridAction'
    gridDefinitionFactoryService: prestashop.core.grid.definition.factory.cms_page_category
    redirectRoute: admin_cms_pages_index
    redirectQueryParamsToKeep:
      - 'id_cms_category'
    _legacy_link: AdminCmsContent:submitFiltercms_category

admin_cms_pages_category_create:
  path: /category/new
  methods: [ GET, POST ]
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Improve\Design\CmsPageController::createCmsCategoryAction'
    _legacy_controller: AdminCmsContent
    _legacy_link: AdminCmsContent:addcms_category

admin_cms_pages_category_edit:
  path: /category/{cmsCategoryId}/edit
  methods: [ GET, POST ]
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Improve\Design\CmsPageController::editCmsCategoryAction'
    _legacy_controller: AdminCmsContent
    _legacy_link: AdminCmsContent:updatecms_category
    _legacy_parameters:
      id_cms_category: cmsCategoryId
  requirements:
    cmsCategoryId: \d+

admin_cms_pages_category_delete:
  path: /category/{cmsCategoryId}/delete
  methods: DELETE
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Improve\Design\CmsPageController::deleteCmsCategoryAction'
    _legacy_controller: AdminCmsContent
    _legacy_link: AdminCmsContent:deletecms_category
    _legacy_parameters:
      id_cms_category: cmsCategoryId
  requirements:
    cmsCategoryId: \d+

admin_cms_pages_category_delete_bulk:
  path: /category/delete-bulk
  methods: POST
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Improve\Design\CmsPageController::deleteBulkCmsCategoryAction'
    _legacy_controller: AdminCmsContent
    _legacy_link: AdminCmsContent:submitBulkdeletecms_category

admin_cms_pages_category_toggle:
  path: /category/{cmsCategoryId}/toggle-status
  methods: POST
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Improve\Design\CmsPageController::toggleCmsCategoryAction'
    _legacy_controller: AdminCmsContent
    _legacy_link: AdminCmsContent:statuscms_category
    _legacy_parameters:
      id_cms_category: cmsCategoryId
  requirements:
    cmsCategoryId: \d+

admin_cms_pages_category_bulk_status_enable:
  path: /category/bulk-enable-status
  methods: POST
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Improve\Design\CmsPageController::bulkCmsPageCategoryStatusEnableAction'
    _legacy_controller: AdminCmsContent
    _legacy_link: AdminCmsContent:submitBulkenableSelectioncms_category

admin_cms_pages_category_bulk_status_disable:
  path: /category/bulk-disable-status
  methods: POST
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Improve\Design\CmsPageController::bulkCmsPageCategoryStatusDisableAction'
    _legacy_controller: AdminCmsContent
    _legacy_link: AdminCmsContent:submitBulkdisableSelectioncms_category

admin_cms_pages_category_update_position:
  path: /category/update-position
  methods: POST
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Improve\Design\CmsPageController::updateCmsCategoryPositionAction'
    _legacy_controller: AdminCmsContent
    _legacy_link: AdminCmsContent:updatecms_category

admin_cms_pages_update_position:
  path: /update-position
  methods: POST
  defaults:
    _controller: 'PrestaShopBundle\Controller\Admin\Improve\Design\CmsPageController::updateCmsPositionAction'
    _legacy_controller: AdminCmsContent
    _legacy_link: AdminCmsContent:updatecms
