diff --git a/EMS/core-bundle/src/Form/DataField/CollectionItemFieldType.php b/EMS/core-bundle/src/Form/DataField/CollectionItemFieldType.php index dd350525f..6dda88dd5 100644 --- a/EMS/core-bundle/src/Form/DataField/CollectionItemFieldType.php +++ b/EMS/core-bundle/src/Form/DataField/CollectionItemFieldType.php @@ -6,7 +6,6 @@ use EMS\CoreBundle\Entity\FieldType; use EMS\CoreBundle\Form\DataTransformer\DataFieldModelTransformer; use EMS\CoreBundle\Form\DataTransformer\DataFieldViewTransformer; -use EMS\CoreBundle\Form\Field\SubmitEmsType; use Symfony\Component\Form\Extension\Core\Type\HiddenType; use Symfony\Component\Form\FormBuilderInterface; @@ -80,14 +79,6 @@ public function buildForm(FormBuilderInterface $builder, array $options): void ->addModelTransformer(new DataFieldModelTransformer($fieldType, $this->formRegistry)); } } - - $builder->add('remove_collection_item', SubmitEmsType::class, [ - 'attr' => [ - 'class' => 'btn btn-danger btn-sm remove-content-button', - ], - 'label' => 'Remove', - 'icon' => 'fa fa-trash', - ]); } /** diff --git a/EMS/core-bundle/src/Resources/views/form/fields.html.twig b/EMS/core-bundle/src/Resources/views/form/fields.html.twig index 1cd62c6e4..0d65c05f2 100644 --- a/EMS/core-bundle/src/Resources/views/form/fields.html.twig +++ b/EMS/core-bundle/src/Resources/views/form/fields.html.twig @@ -616,7 +616,9 @@