|
|
|
|
|
|
|
|
{% set itemsPerPage = [10,20,30,50,100,200] %} |
|
|
{% set itemsPerPage = [10,20,30,50,100,200] %} |
|
|
{% for itemPerPage in itemsPerPage %} |
|
|
{% for itemPerPage in itemsPerPage %} |
|
|
<a href="{{ path('easyadmin', _request_parameters|merge({ maxResults: itemPerPage, page : "1" })) }}" |
|
|
<a href="{{ path('easyadmin', _request_parameters|merge({ maxResults: itemPerPage, page : "1" })) }}" |
|
|
class="btn btn-sm {{ paginator.maxPerPage == itemPerPage ? 'btn-outline-secondary' : 'btn-secondary'}}">{{ itemPerPage }}</a> |
|
|
|
|
|
|
|
|
class="btn btn-sm {{ paginator.maxPerPage == itemPerPage ? 'btn-outline-secondary' : 'btn-secondary' }}">{{ itemPerPage }}</a> |
|
|
{% endfor %} |
|
|
{% endfor %} |
|
|
|
|
|
|
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
{% set _column_label = metadata.label|trans(_trans_parameters) %} |
|
|
{% set _column_label = metadata.label|trans(_trans_parameters) %} |
|
|
{% set _column_icon = isSortingField ? (nextSortDirection == 'DESC' ? 'fa-arrow-up' : 'fa-arrow-down') : 'fa-sort' %} |
|
|
{% set _column_icon = isSortingField ? (nextSortDirection == 'DESC' ? 'fa-arrow-up' : 'fa-arrow-down') : 'fa-sort' %} |
|
|
{% set isFilteredField = false %} |
|
|
{% set isFilteredField = false %} |
|
|
{% if filters_form[field] is defined and filters_form[field].vars.value is not empty %} {% set isFilteredField = false %} |
|
|
|
|
|
{% set isFilteredField = true %} |
|
|
|
|
|
|
|
|
{% if filters_form[field] is defined and filters_form[field].vars.value is not empty %} |
|
|
|
|
|
{% if (metadata['dataType'] == 'datetime' or metadata['dataType'] == 'date') %} |
|
|
|
|
|
{% if filters_form[field]['dateStart'].vars.value is not empty and filters_form[field]['dateEnd'].vars.value is not empty %} |
|
|
|
|
|
{% set isFilteredField = true %} |
|
|
|
|
|
{% endif %} |
|
|
|
|
|
{% else %} |
|
|
|
|
|
{% set isFilteredField = true %} |
|
|
|
|
|
{% endif %} |
|
|
{% endif %} |
|
|
{% endif %} |
|
|
|
|
|
|
|
|
|
|
|
|