{% extends 'themes/'~layout_dir~'/layout.html' %} {% block body %}
{% include 'themes/default/modules/PortalModule/module.actions.html' %}
search {% if inherited_view %} {{modulename|trans}} related through {{parent_module|trans}} {% else %} {{app.translator.trans('LBL_RECORDS_LIST')}} {% if total_records>0 %}page {{current_page}} of {{total_pages}} - {% endif %}Records: {{total_records}} {% endif %} search
{% if total_records>0 %}
    {% if not inherited_view %} {% set show_pages = 2 %} {%if current_page>show_pages+1%}
  • chevron_left
  • {%endif%} {% for i in 1..total_pages %} {% if i>(current_page-3) and i<(current_page+3) %}
  • {{i}}
  • {% endif %} {% endfor %} {%if current_page<(total_pages-show_pages)%}
  • chevron_right
  • {%endif%} {%endif%}
{% for fieldname in list_fields %} {% endfor %} {% for record in records %} {% for fieldname in list_fields %} {% endfor %} {% endfor %}
{% if app.request.query.get('sort')==fieldname %} arrow_drop_{% if app.request.query.get('order')=='desc' %}up{%else%}down{%endif%} {%endif%}{{app.translator.trans(fieldname)}}
{{record[fieldname]|raw}}

{% endif %}
{% if not inherited_view and total_records > 0 %}
    {% set show_pages = 2 %} {%if current_page>show_pages+1%}
  • chevron_left
  • {%endif%} {% for i in 1..total_pages %} {% if i>(current_page-3) and i<(current_page+3) %}
  • {{i}}
  • {% endif %} {% endfor %} {%if current_page<(total_pages-show_pages)%}
  • chevron_right
  • {%endif%}
{%endif%}

{% if not inherited_view and total_pages > 0 %}{{"Showing page"|trans}} {{current_page}} of {{total_pages}} - {%endif%}{{"Total Records"|trans}}: {{total_records}}

{% endblock %} {% block footerscripts %} {% endblock %}