{% 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]|trans|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%}
  • 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}}

{% if create_enabled is defined and create_enabled %} {% endif %}
{% endblock %} {% block footerscripts %} {% endblock %}