You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
1.5KB

  1. {# @var ea \EasyCorp\Bundle\EasyAdminBundle\Context\AdminContext #}
  2. {# @var paginator \EasyCorp\Bundle\EasyAdminBundle\Orm\EntityPaginator #}
  3. {% trans_default_domain 'EasyAdminBundle' %}
  4. <p class="m-0 text-muted">
  5. {{ 'paginator.results'|trans({'%count%': paginator.numResults})|raw }}
  6. </p>
  7. <ul class="pagination m-0 ms-auto">
  8. <li class="page-item {{ not paginator.hasPreviousPage ? 'disabled' }}">
  9. <a class="page-link" href="{{ not paginator.hasPreviousPage ? '#' : paginator.generateUrlForPage(paginator.previousPage) }}" {{ not paginator.hasPreviousPage ? 'aria-disabled="true"' }}>
  10. <i class="ti ti-arrow-left"></i> <span class="btn-label">{{ 'paginator.previous'|trans }}</span>
  11. </a>
  12. </li>
  13. {% for page in paginator.pageRange %}
  14. <li class="page-item {{ page == paginator.currentPage ? 'active' }} {{ page is null ? 'disabled' }}">
  15. {% if page is null %}
  16. <span class="page-link">&hellip;</span>
  17. {% else %}
  18. <a class="page-link" href="{{ paginator.generateUrlForPage(page) }}">{{ page }}</a>
  19. {% endif %}
  20. </li>
  21. {% endfor %}
  22. <li class="page-item {{ not paginator.hasNextPage ? 'disabled' }}">
  23. <a class="page-link" href="{{ not paginator.hasNextPage ? '#' : paginator.generateUrlForPage(paginator.nextPage) }}" {{ not paginator.hasNextPage ? 'aria-disabled="true"' }}>
  24. <span class="btn-label">{{ 'paginator.next'|trans }}</span> <i class="ti ti-arrow-right"></i>
  25. </a>
  26. </li>
  27. </ul>