From f2f29453124527034eb5153bc50481e6496c3f2e Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Sun, 24 Nov 2019 11:25:16 +0100 Subject: [PATCH] Add twig pagination for the grid --- .../views/Resource/grid_theme.html.twig | 23 ++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/src/ThemeBundle/Resources/views/Resource/grid_theme.html.twig b/src/ThemeBundle/Resources/views/Resource/grid_theme.html.twig index 81ba231e28..2516e81804 100644 --- a/src/ThemeBundle/Resources/views/Resource/grid_theme.html.twig +++ b/src/ThemeBundle/Resources/views/Resource/grid_theme.html.twig @@ -164,4 +164,25 @@ -{% endblock grid_column_filter_type_input %} \ No newline at end of file +{% endblock grid_column_filter_type_input %} + + +{# ---------------------------------------------------- grid_pager_selectpage -------------------------------------------------- #} +{% block grid_pager_selectpage %} + {{ 'Page'|trans }} + {% spaceless %} + + + = grid.pageCount-1 %}disabled="disabled"{% endif %} onclick="return {{ grid.hash }}_nextPage();"/> {{ 'of %count%'|trans({ '%count%' : grid.pageCount }) }} + {% endspaceless %} +{% endblock grid_pager_selectpage %} +{# ---------------------------------------------------- grid_pager_results_perpage -------------------------------------------------- #} +{% block grid_pager_results_perpage %} + {{ ', Display'|trans }} + {{ 'Items per page'|trans }} +{% endblock grid_pager_results_perpage %} +