{% macro render_tableRecords(record_list, record_header, record_count, min_page, max_page, destination, search_key, colspan_name='Action', colspan=2) -%} {% with destination=destination, search_key=search_key %} {% include '_search_widget.html' %} {% endwith %}
{% if record_list is not none %}
{% for header in record_header %} {% if header == colspan_name %} {% else %} {% endif %} {% endfor %} {% for record in record_list.items %} {{ caller(loop, record) }} {% endfor %}
{{ header }}{{ header }}
{% else %} No records to show ... {% endif %}
{% with record_list = record_list, min_page= min_page, max_page= max_page, destination=destination %} {% include '_pagination.html' %} {% endwith %}
{%- endmacro %}