{% extends 'manager/base.html' %} {% block content %}

{{ view.entity.__name__ }}

{% for key in columns.keys() %} {% endfor %} {% for entity in entities %} {% for name, column in columns.items() %} {% endfor %} {% set value = entity.__getattribute__(key) %} {% endfor %}
{{ key }}
{% set column_value = entity.__getattribute__(name) %} {% if column.is_collection %} {{ column_value | list | join(', ') }} {% elif 'datetime' in (column.py_type | string) and column_value %} {{ column_value.strftime(datetime_format) }} {% elif 'date' in (column.py_type | string) and column_value %} {{ column_value.strftime(date_format) }} {% else %} {{ column_value }} {% endif %} Edit Delete
{{ render_pagination(page, max_page) }}
Add
{% endblock %}