Skip to content

Commit a2ec0f9

Browse files
committed
added description for uploaded images in image gallery
1 parent b17aaa0 commit a2ec0f9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/Form/PostType.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace TwinElements\PostBundle\Form;
44

5+
use TwinElements\FormExtensions\Type\FileWithTitleType;
56
use TwinElements\SeoBundle\Form\Admin\SeoType;
67
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface;
78
use Symfony\Component\Form\AbstractType;
@@ -76,7 +77,7 @@ public function buildForm(FormBuilderInterface $builder, array $options)
7677
'required' => false
7778
])
7879
->add('imageAlbum', TECollectionType::class, [
79-
'entry_type' => TEUploadType::class,
80+
'entry_type' => FileWithTitleType::class,
8081
'entry_options' => [
8182
'file_type' => 'image',
8283
'label' => $this->translator->translate('admin_type.image_album.choose_image')

0 commit comments

Comments
 (0)