diff --git a/src/DependencyInjection/SetonoSyliusCatalogPromotionExtension.php b/src/DependencyInjection/SetonoSyliusCatalogPromotionExtension.php index 2c628cd..817319e 100644 --- a/src/DependencyInjection/SetonoSyliusCatalogPromotionExtension.php +++ b/src/DependencyInjection/SetonoSyliusCatalogPromotionExtension.php @@ -118,6 +118,20 @@ public function prepend(ContainerBuilder $container): void 'sortable' => null, ], ], + 'actions' => [ + 'main' => [ + 'back_to_catalog_promotions' => [ + 'type' => 'default', + 'label' => 'setono_sylius_catalog_promotion.ui.back_to_catalog_promotions', + 'icon' => 'chevron left', + 'options' => [ + 'link' => [ + 'route' => 'setono_sylius_catalog_promotion_admin_promotion_index', + ] + ] + ], + ] + ] ], 'setono_sylius_catalog_promotion_admin_promotion' => [ 'driver' => [ @@ -156,6 +170,16 @@ public function prepend(ContainerBuilder $container): void ], 'actions' => [ 'main' => [ + 'list_of_updates' => [ + 'type' => 'default', + 'label' => 'setono_sylius_catalog_promotion.ui.list_of_updates', + 'icon' => 'list', + 'options' => [ + 'link' => [ + 'route' => 'setono_sylius_catalog_promotion_admin_catalog_promotion_update_index', + ] + ] + ], 'create' => [ 'type' => 'create', ], diff --git a/src/Resources/translations/messages.en.yaml b/src/Resources/translations/messages.en.yaml index 504fe41..4788b13 100644 --- a/src/Resources/translations/messages.en.yaml +++ b/src/Resources/translations/messages.en.yaml @@ -35,11 +35,14 @@ setono_sylius_catalog_promotion: promotions: Catalog promotions ui: all: All + back_to_catalog_promotions: Back to catalog promotions catalog_promotion_updates: Catalog promotion updates catalog_promotions: Catalog promotions edit_promotion: Edit catalog promotion + list_of_updates: List of updates manage_promotions: Manage catalog promotions new_promotion: Create new catalog promotion + no_error: No error products_updated: Products updated products_updated_less_than_estimated: The number of products updated is less than the estimated number of products to update. This may be due to the fact that some products were filtered/edited/removed after the initial processing started. promotion: Catalog promotion @@ -47,4 +50,3 @@ setono_sylius_catalog_promotion: rules_explanation: If you don't add any rules, the promotion will be applied to all products triggered_by: Triggered by updated_at: Updated at - no_error: No error