diff --git a/combo/apps/wcs/templates/combo/wcs/current_drafts.html b/combo/apps/wcs/templates/combo/wcs/current_drafts.html index 9e7489e3..1a1e1b09 100644 --- a/combo/apps/wcs/templates/combo/wcs/current_drafts.html +++ b/combo/apps/wcs/templates/combo/wcs/current_drafts.html @@ -17,4 +17,5 @@ {% endif %} {% endfor %} +{% include "combo/pagination.html" %} {% endblock %} diff --git a/combo/apps/wcs/templates/combo/wcs/current_forms.html b/combo/apps/wcs/templates/combo/wcs/current_forms.html index e4adb0cd..38ce44a1 100644 --- a/combo/apps/wcs/templates/combo/wcs/current_forms.html +++ b/combo/apps/wcs/templates/combo/wcs/current_forms.html @@ -6,4 +6,5 @@ {% include "combo/wcs/list_of_forms.html" with forms=forms %} {% endfor %} +{% include "combo/pagination.html" %} {% endblock %} diff --git a/combo/apps/wcs/templates/combo/wcs/user_all_forms.html b/combo/apps/wcs/templates/combo/wcs/user_all_forms.html index 10b83e76..82d4fc89 100644 --- a/combo/apps/wcs/templates/combo/wcs/user_all_forms.html +++ b/combo/apps/wcs/templates/combo/wcs/user_all_forms.html @@ -6,4 +6,5 @@ {% include "combo/wcs/list_of_forms.html" with forms=forms %} {% endfor %} +{% include "combo/pagination.html" %} {% endblock %} diff --git a/combo/apps/wcs/templates/combo/wcs/user_done_forms.html b/combo/apps/wcs/templates/combo/wcs/user_done_forms.html index be4c61bc..754fc43c 100644 --- a/combo/apps/wcs/templates/combo/wcs/user_done_forms.html +++ b/combo/apps/wcs/templates/combo/wcs/user_done_forms.html @@ -6,4 +6,5 @@ {% include "combo/wcs/list_of_forms.html" with forms=forms %} {% endfor %} +{% include "combo/pagination.html" %} {% endblock %} diff --git a/combo/public/static/js/combo.public.js b/combo/public/static/js/combo.public.js index 0ba0b76f..66b974bc 100644 --- a/combo/public/static/js/combo.public.js +++ b/combo/public/static/js/combo.public.js @@ -279,4 +279,43 @@ $(function() { return false; }); + // pagination in cells with list of items + $(document).on('combo:cell-loaded', function(ev, cell) { + var $pagination = $(cell).find('.cell-items-pagination'); + if ($pagination.length == 0) return; + var page_index = 0; + var paginate_by = parseInt($pagination.data('paginate-by')); + // Get all
  • inside the same div as us, ignoring whether they are part of + // different