{% macro render(table_data, cfg={}) %} {% if cfg.title %}

{{ cfg.title }}

{% endif %} {% if cfg.head_names %} {% for colname in head_names %} {% endfor %} {% else %} {% if table_data and table_data[0] and table_data[0] is mapping %} {% for colname in table_data[0] %} {% endfor %} {% endif %} {% endif %} {% if table_data %} {% for nrow in range(table_data | length) %} {% set vrow = table_data[nrow] %} {% for item in vrow %} {% set value = vrow[item] if vrow is mapping else item %} {% if value is not iterable or value is string %} {% else %} {% endif %} {% endfor %} {% if cfg.opts: %} {% endif %} {% endfor %} {% else %} {% endif %}
{{colname}}{{colname.replace("_", " ").capitalize()}}
{{ '-' if value is none or value == '' else value }}{{render(value)}} {% set entity_name = cfg.entity_name %} {% set get_id = cfg.get_id %} {% for opt in cfg.opts %} {% if opt.isPostId %}
{% endif %} {% if opt.isPostRow %}
{% endif %} {% if opt.isGetRow %} {{opt.name_action}} {% endif %} {% if opt.isGetId %} {{opt.name_action}} {% endif %} {% endfor %}
0 registros encontrados
{% endmacro %}