{% extends 'themes/'~layout_dir~'/layout.html' %}
{% block body %}
{% include 'themes/default/modules/PortalModule/module.actions.html' %}
{% if module_config.grid.entries_limit is divisible by(3) %}
{% set row_limit = 3 %}
{% set col_size = 4 %}
{% elseif module_config.grid.entries_limit > 4 %}
{% set row_limit = 4 %}
{% set col_size = 3 %}
{% elseif module_config.grid.entries_limit == 1 %}
{% set row_limit = 1 %}
{% set col_size = 12 %}
{% else %}
{% set row_limit = 2 %}
{% set col_size = 6 %}
{% endif %}
{% for record in records %}
{% for fieldname in grid_fields %}
{% if loop.index==1 and record[fieldname] is defined %}
{% if fieldname == "imagename" %}
{% for imagename,imagedetails in record["images"][fieldname] %}
{% endfor %}
{% else %}
{{record[fieldname]|raw}}
{% endif %}
{% endif %}
{% endfor %}
{% for fieldname in grid_fields %}
{% if loop.index>1 and record[fieldname] is defined %}
{% if fieldname == "imagename" %}
{% for imagename,imagedetails in record["images"][fieldname] %}
{% endfor %}
{% else %}
{{fieldname|trans}}: {{record[fieldname]|trans|raw}} {% endif %}
{% endif %}
{% endfor %}
zoom_in
{% if edit_enabled is defined and edit_enabled %}
mode_edit
{% endif %}
{% if pdf_download_enabled is defined and pdf_download_enabled and app.download_enabled %}
picture_as_pdf{{"Download PDF"|trans}}
{% endif %}
{% if loop.index is divisible by(row_limit) %}
{% endif %}
{% endfor %}
{% if not inherited_view %}
{% set show_pages = 2 %}
{%if current_page>show_pages+1%}
{% if not inherited_view and total_pages > 0 %}{{"Showing page"|trans}} {{current_page}} of {{total_pages}} - {%endif%}{{"Total Records"|trans}}: {{total_records}}
{% if create_enabled is defined and create_enabled %}