oscarmlage / django-cruds-adminlte

django-cruds is simple drop-in django app that creates CRUD for faster prototyping
BSD 3-Clause "New" or "Revised" License
425 stars 82 forks source link

Paginate elements #23

Closed oscarmlage closed 7 years ago

oscarmlage commented 7 years ago

Pagination is not working, in fact, has to be done.

seniorbee commented 7 years ago

When are you planning to implement this feature. It is very important as no one can expect a list page without paging.

oscarmlage commented 7 years ago

TBD:

oscarmlage commented 7 years ago

@JuniorBee Hope it helps, at least in a short term.

luisza commented 7 years ago

mmm pagination is supported right now in cruds.py, but not implemented in template, so you can use

paginate_by

to include pagination object to template, and implement your own template pagination.

see here and here

Also documentation is needed.

oscarmlage commented 7 years ago

I've added a tiny commit - taking advantage of the _paginateby already implemented by @luisza - adding a really simple pagination system in template (just to see if it works for @JuniorBee). I would like to work a bit more on this and to have, at least, a couple of different paginators and let the user decide to use one of the other:

What do you think?, where do you would put the proper setting?.

luisza commented 7 years ago

PR #39 support both cases using template pagination, and other ways to make pagination

Also positions support are done (Bottom, Both, Up)

I also update documentation :100:

oscarmlage commented 7 years ago

I think we can close this ticket, as it's implemented in #39