a2lix / TranslationFormBundle

Ease translations with some dedicated Symfony form types
https://a2lix.fr/bundles/translation-form
MIT License
330 stars 138 forks source link

compatibility with easycorp/easyadmin-bundle v3.4.2 and so bootstrap5 #359

Closed justin-petermann closed 2 years ago

justin-petermann commented 3 years ago

I am targeting this branch, because it's logics...

Closes none issue... i had a problem a contribute... you can change after if you wants, but in new version

the tabs didn't work anymore with new version of easyadmin from 3 days ago

Changelog

add file src/Resources/views/bootstrap_5_layout.html.twig

### Added
add file src/Resources/views/bootstrap_5_layout.html.twig

### Changed

nothing else

### Deprecated

### Removed

### Fixed

### Security

To do

Subject

Ishadijcks commented 3 years ago

I have the same problem, but using this layout doesn't fix it.

Did you manage to find a workaround @justin-petermann?

jmeyo commented 3 years ago

You have to add this form theme through the easyadmin method.

While waiting for this form theme to be merged you can add it in your templates directory and then configure it through the congiurueCrud method.

If you want to add it globally, add this in your dashboard (considering you added this form theme in templates/admin/a2lix_bootstrap_5_layout.html.twig):

    public function configureCrud(): Crud
    {
        return Crud::new()
            ->addFormTheme('admin/a2lix_bootstrap_5_layout.html.twig')

            // other global crud settings
            ->setDefaultSort(['id' => 'DESC'])
            ->setPaginatorPageSize(15)
;
    }
tchapi commented 2 years ago

This is a duplicate of https://github.com/a2lix/TranslationFormBundle/pull/360 that has just been merged :)