|
|
|
@ -63,7 +63,11 @@ |
|
|
|
|
target="{{ action.target }}" {% if action.confirm %} onclick="return confirm('{{ action.confirmMessage }}')"{% endif %} |
|
|
|
|
{% for name, value in action.attributes %} {{ name }}="{{ value }}" {% endfor %} |
|
|
|
|
> |
|
|
|
|
{{ action.title|trans }} |
|
|
|
|
{% if action.attributes.icon is defined and action.attributes.icon %} |
|
|
|
|
<i class="fas {{ action.attributes.icon }} "></i> |
|
|
|
|
{% else %} |
|
|
|
|
{{ action.title|trans }} |
|
|
|
|
{% endif %} |
|
|
|
|
</a> |
|
|
|
|
{% endif %} |
|
|
|
|
{% endfor %} |
|
|
|
@ -168,21 +172,21 @@ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{# ---------------------------------------------------- grid_pager_selectpage -------------------------------------------------- #} |
|
|
|
|
{% block grid_pager_selectpage %} |
|
|
|
|
{{ 'Page'|trans }} |
|
|
|
|
{% spaceless %} |
|
|
|
|
<input type="button" class="btn btn-secondary prev" {% if grid.page <= 0 %}disabled="disabled"{% endif %} value="<" onclick="return {{ grid.hash }}_previousPage();"/> |
|
|
|
|
<input type="text" class="current" value="{{ grid.page + 1 }}" size="2" onkeypress="return {{ grid.hash }}_enterPage(event, parseInt(this.value)-1);"/> |
|
|
|
|
<input type="button" value=">" class="btn btn-secondary next" {% if grid.page >= grid.pageCount-1 %}disabled="disabled"{% endif %} onclick="return {{ grid.hash }}_nextPage();"/> {{ 'of %count%'|trans({ '%count%' : grid.pageCount }) }} |
|
|
|
|
{% endspaceless %} |
|
|
|
|
{% endblock grid_pager_selectpage %} |
|
|
|
|
{#{% block grid_pager_selectpage %}#} |
|
|
|
|
{# {{ 'Page'|trans }}#} |
|
|
|
|
{# {% spaceless %}#} |
|
|
|
|
{# <input type="button" class="btn btn-secondary prev" {% if grid.page <= 0 %}disabled="disabled"{% endif %} value="<" onclick="return {{ grid.hash }}_previousPage();"/>#} |
|
|
|
|
{# <input type="text" class="form-control current" value="{{ grid.page + 1 }}" size="2" onkeypress="return {{ grid.hash }}_enterPage(event, parseInt(this.value)-1);"/>#} |
|
|
|
|
{# <input type="button" value=">" class="btn btn-secondary next" {% if grid.page >= 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 }} |
|
|
|
|
<select onchange="return {{ grid.hash }}_resultsPerPage(this.value);"> |
|
|
|
|
{% for key, value in grid.limits %} |
|
|
|
|
<option value="{{ key }}"{% if (key == grid.limit) %} selected="selected"{% endif %}>{{ value }}</option> |
|
|
|
|
{% endfor %} |
|
|
|
|
</select> {{ 'Items per page'|trans }} |
|
|
|
|
{% endblock grid_pager_results_perpage %} |
|
|
|
|
{#{% block grid_pager_results_perpage %}#} |
|
|
|
|
{# {{ ', Display'|trans }}#} |
|
|
|
|
{# <select onchange="return {{ grid.hash }}_resultsPerPage(this.value);">#} |
|
|
|
|
{# {% for key, value in grid.limits %}#} |
|
|
|
|
{# <option value="{{ key }}"{% if (key == grid.limit) %} selected="selected"{% endif %}>{{ value }}</option>#} |
|
|
|
|
{# {% endfor %}#} |
|
|
|
|
{# </select> {{ 'Items per page'|trans }}#} |
|
|
|
|
{#{% endblock grid_pager_results_perpage %}#} |
|
|
|
|
|
|
|
|
|