iamluc / GloomyPagerBundle

This pager/datagrid/crud has advanced filtering & sorting (Array & Entity/QueryBuilder) in addition of pagination
MIT License
10 stars 4 forks source link

CSS and JS file not included in pager #4

Closed pmithrandir closed 11 years ago

pmithrandir commented 11 years ago

Hello.

To make the system works, we need to have the javascript and css file imported. They are in datagrid, but I don't think in Pager.(macros.html.twig) The result is that the pager doesn't allow the user to use the scripts.

I got the javascript error : hideFiltersOpts is not defined

An easy patch for users is to import these file in the final template in your system.

Thanks, Pierre

iamluc commented 11 years ago

Hi,

Yes that's true. If you use the Pager service, you need to write/import everything by yourself. macros.html.twig is just an helper file with default design.

Maybe we could add two more macros : stylesheets() and javascripts()

iamluc commented 11 years ago

Corrected with commit adb3ea3a9f87025f64ee97df8771061ec1483b76