EasyCorp / EasyAdminBundle

EasyAdmin is a fast, beautiful and modern admin generator for Symfony applications.
MIT License
4.03k stars 1.02k forks source link

Filters not in a modal form #4880

Closed fdiedler closed 2 years ago

fdiedler commented 2 years ago

Hi,

Is it possible to have all filters on the same page of the list of entities instead of a modal form ? screen

The filters are on a modal form and I think it is not user friendly for end users. Is it possible to embed the filters in the page where products are displayed ?

Thanks,

fdiedler commented 2 years ago

Does anybody can help me ? I found nothing about rendering custom filters in the official documentation.

Thanks,

jmeyo commented 2 years ago

You could definitely display that form not within a modal, you will have to override some templates and remove the modal effect. Somewhere in Resources/views/crud/includes/_filters_modal.html.twig for the modal content, you will need to find the launch button.

I am fine with modals, wanted to have it larger, and wanted to use modal-xl (maybe mdb related). Anyhow, easyadmin is having fixed width for the modal, so I had to override some styles:

#modal-filters .modal-dialog {
    max-width: 800px
}
javiereguiluz commented 2 years ago

I'm really sorry but I'm closing this feature request because we don't have the resources to implement an alternative or configurable way of displaying forms. I hope you can understand us. Thanks!

klemens-u commented 6 months ago

Hi @fdiedler, did you come up with a solution for non-modal Easyadmin filters? I have the same requirement. Thank you!

klemens-u commented 5 months ago

I implemented a prototype, see #6179