#}
-{# {{ error(form.vars.errors) }}#}
-
-{# {% if prototypes|default is iterable %}#}
-{# {% for key, subPrototype in prototypes %}#}
-{#
#}
-{# {% endfor %}#}
-{# {% endif %}#}
-
-{#
#}
-{# #}
-{# #}
-{# {{ 'bitbag_sylius_product_bundle.ui.product_variant'|trans }} | #}
-{# {{ 'bitbag_sylius_product_bundle.ui.quantity'|trans }} | #}
-{# {{ 'bitbag_sylius_product_bundle.ui.delete'|trans }} | #}
-{#
#}
-{# #}
-{# #}
-{# {% for child in form %}#}
-{# {{ self.collection_item(child, allow_delete, button_delete_label, loop.index0) }}#}
-{# {% endfor %}#}
-{# #}
-{#
#}
-
-{# {% if prototype is defined and allow_add %}#}
-{#
#}
-{# #}
-{# {{ button_add_label|trans }}#}
-{# #}
-{# {% endif %}#}
-{#
#}
-{# {% endapply %}#}
-{#{%- endblock collection_widget %}#}
-
-{#{% macro collection_item(form, allow_delete, button_delete_label, index) %}#}
-{# {% apply spaceless %}#}
-{# #}
-{# #}
-{# {{ form_row(form.productVariant, {'remote_url': path('bitbag_product_bundle_admin_ajax_product_variants_by_phrase'), 'remote_criteria_type': 'contains', 'remote_criteria_name': 'phrase', 'load_edit_url': path('bitbag_product_bundle_admin_ajax_product_variants_by_codes')}) }} #}
-{# | #}
-{# #}
-{# {{ form_row(form.quantity) }}#}
-{# | #}
-
-{# {% if allow_delete %}#}
-{# #}
-{# #}
-{# #}
-{# {{ button_delete_label|trans }}#}
-{# #}
-{# | #}
-{# {% endif %}#}
-{#
#}
-{# {% endapply %}#}
-{#{% endmacro %}#}
diff --git a/src/Resources/views/Admin/product/form/sections/bundle.html.twig b/src/Resources/views/Admin/product/form/sections/bundle.html.twig
index a488704d..d9845e50 100644
--- a/src/Resources/views/Admin/product/form/sections/bundle.html.twig
+++ b/src/Resources/views/Admin/product/form/sections/bundle.html.twig
@@ -1,8 +1,7 @@
-{#{% form_theme form '@BitBagSyliusProductBundlePlugin/Admin/Form/productBundleItem.html.twig' %}#}
{% set form = hookable_metadata.context.form %}
{% set product = hookable_metadata.context.resource %}
-
+
diff --git a/src/Resources/views/Admin/product/form/sections/bundle/productBundleItem.html.twig b/src/Resources/views/Admin/product/form/sections/bundle/productBundleItem.html.twig
new file mode 100644
index 00000000..77fe9cc8
--- /dev/null
+++ b/src/Resources/views/Admin/product/form/sections/bundle/productBundleItem.html.twig
@@ -0,0 +1,39 @@
+{% from '@SyliusResource/Macros/notification.html.twig' import error %}
+
+{% set form = hookable_metadata.context.form %}
+{% set product_bundle_items = hookable_metadata.context.form.productBundle.productBundleItems %}
+
+
+
+ {{ error(form.vars.errors) }}
+
+
+
+
+
+ {{ 'bitbag_sylius_product_bundle.ui.product_variant'|trans }} |
+ {{ 'bitbag_sylius_product_bundle.ui.quantity'|trans }} |
+ {{ 'bitbag_sylius_product_bundle.ui.delete'|trans }} |
+
+
+
+ {% for product_bundle_form in product_bundle_items %}
+
+
+ {{ form_row(product_bundle_form.children.productVariant) }}
+ |
+
+ {{ form_row(product_bundle_form.children.quantity) }}
+ |
+
+ {{ form_widget(product_bundle_form.vars.button_delete, { label: 'sylius.ui.delete'|trans, attr: { class: 'btn btn-outline-danger w-100','data-test-image-delete': '' }}) }}
+ |
+
+ {% endfor %}
+
+
+
+ {{ form_widget(product_bundle_items.vars.button_add) }}
+
+
+
diff --git a/src/Resources/views/Admin/product/form/side_navigation/bundle.html.twig b/src/Resources/views/Admin/product/form/side_navigation/bundle.html.twig
index 65795eb9..18d5d964 100644
--- a/src/Resources/views/Admin/product/form/side_navigation/bundle.html.twig
+++ b/src/Resources/views/Admin/product/form/side_navigation/bundle.html.twig
@@ -1,10 +1,14 @@
-
+{% set product = hookable_metadata.context.resource %}
+
+{% if product.productBundle is not null %}
+
+{% endif %}
diff --git a/src/Validator/Sequentially.php b/src/Validator/Sequentially.php
index 6412897d..1714f794 100644
--- a/src/Validator/Sequentially.php
+++ b/src/Validator/Sequentially.php
@@ -38,7 +38,7 @@ protected function getCompositeOption(): string
/**
* @return array
|string
*/
- public function getTargets()
+ public function getTargets(): string|array
{
return [self::CLASS_CONSTRAINT, self::PROPERTY_CONSTRAINT];
}