symfony2admingenerator / AdmingeneratorGeneratorBundle

(old-legacy) Admingenerator for Symfony2, parse generator.yml files to build classes
http://symfony2admingenerator.org/
MIT License
360 stars 125 forks source link

Filter by Date range #794

Closed davidwiniarz closed 10 years ago

davidwiniarz commented 10 years ago

So here I come with a new ver. of admingeneratorbundle.

Well, it's hard to say, but I'm a little dissapointed.Is there any chance to filter by date range? F.E by created_at between start date nad end date?

It was possible in the previous version simply by filling the filterform with a datepicker_range type.

How can we do that here?

sescandell commented 10 years ago

Hi @deyvid5

This is still possible. I don't know what is the last version you used saying "it was available before" but, depending on when it is, forms types have moved to another bundle. So basically, you can still use date range filtering capacities by using the afe_daterange_picker from here : https://github.com/symfony2admingenerator/AvocodeFormExtensionsBundle

You also have an (old) sample here: https://github.com/sescandell/AdminGeneratorIssue699/blob/master/src/Acme/DemoBundle/Resources/config/Poll-generator.yml#L38

davidwiniarz commented 10 years ago

Well, I must admit, that I was trying to make Avocode work, but with no effect. Everytime I wrote "afe_daterange_picker" I got message sth like - "This type in unknown -> in this sense".

sescandell commented 10 years ago

My mistake it is afe_date_picker and afe_datetime_picker.

Have look on the documentation here: https://github.com/symfony2admingenerator/AvocodeFormExtensionsBundle/blob/master/Resources/doc/documentation.md