simple_pager_results.html.twig 928 B

12345678910111213141516171819202122232425262728293031
  1. {#
  2. This file is part of the Sonata package.
  3. (c) Thomas Rabaix <thomas.rabaix@sonata-project.org>
  4. For the full copyright and license information, please view the LICENSE
  5. file that was distributed with this source code.
  6. #}
  7. {% extends 'SonataAdminBundle:Pager:base_results.html.twig' %}
  8. {% block num_results %}
  9. {% if admin.datagrid.pager.lastPage != admin.datagrid.pager.page %}
  10. {{ 'list_results_count_prefix'|trans({}, 'SonataAdminBundle') }}
  11. {% endif %}
  12. {% transchoice admin.datagrid.pager.nbresults with {'%count%': admin.datagrid.pager.nbresults} from 'SonataAdminBundle' %}list_results_count{% endtranschoice %}
  13. &nbsp;-&nbsp;
  14. {% endblock %}
  15. {% block num_pages %}
  16. {{ admin.datagrid.pager.page }}
  17. /
  18. {% if admin.datagrid.pager.lastPage != admin.datagrid.pager.page %}
  19. ?
  20. {% else %}
  21. {{ admin.datagrid.pager.lastpage }}
  22. {% endif %}
  23. &nbsp;-&nbsp;
  24. {% endblock %}