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.

пре 3 година
пре 3 година
пре 3 година
пре 3 година
пре 3 година
пре 3 година
пре 3 година
пре 3 година
пре 3 година
пре 3 година
пре 3 година
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. {# @var ea \EasyCorp\Bundle\EasyAdminBundle\Context\AdminContext #}
  2. {# @var paginator \EasyCorp\Bundle\EasyAdminBundle\Orm\EntityPaginator #}
  3. {% trans_default_domain 'EasyAdminBundle' %}
  4. <div class="col-sm-12 col-md-6">
  5. {# <div class="nb-results">
  6. {{ 'paginator.results'|trans({'%count%': paginator.numResults})|raw }}
  7. </div> #}
  8. <div class="items-per-page btn-group">
  9. {% set itemsPerPage = [15,30,50,100,200] %}
  10. {% for itemPerPage in itemsPerPage %}
  11. {% set url = ea_url({listMaxResults: itemPerPage, page : "1"}) %}
  12. <a href="{{ url }}"
  13. class="btn btn-sm {{ paginator.pageSize == itemPerPage ? 'btn-secondary' : 'btn-default' }}">{{ itemPerPage }}</a>
  14. {% endfor %}
  15. </div>
  16. </div>
  17. <div class="col-sm-12 col-md-6">
  18. <div class="float-sm-right">
  19. <ul class="pagination pagination-sm">
  20. <li class="page-item {{ not paginator.hasPreviousPage ? 'disabled' }}">
  21. <a class="page-link" href="{{ not paginator.hasPreviousPage ? '#' : paginator.generateUrlForPage(paginator.previousPage) }}" {{ not paginator.hasPreviousPage ? 'aria-disabled="true"' }}>
  22. <i class="ti ti-arrow-left"></i> <span class="btn-label">{{ 'paginator.previous'|trans }}</span>
  23. </a>
  24. </li>
  25. {% for page in paginator.pageRange %}
  26. {% if page != 0 %}
  27. <li class="page-item {{ page == paginator.currentPage ? 'active' }} {{ page is null ? 'disabled' }}">
  28. {% if page is null %}
  29. <span class="page-link">&hellip;</span>
  30. {% else %}
  31. <a class="page-link" href="{{ paginator.generateUrlForPage(page) }}">{{ page }}</a>
  32. {% endif %}
  33. </li>
  34. {% endif %}
  35. {% endfor %}
  36. <li class="page-item {{ not paginator.hasNextPage ? 'disabled' }}">
  37. <a class="page-link" href="{{ not paginator.hasNextPage ? '#' : paginator.generateUrlForPage(paginator.nextPage) }}" {{ not paginator.hasNextPage ? 'aria-disabled="true"' }}>
  38. <span class="btn-label">{{ 'paginator.next'|trans }}</span> <i class="ti ti-arrow-right"></i>
  39. </a>
  40. </li>
  41. </ul>
  42. </div>
  43. </div>