{% for name, column in columns.items() %}
|
{% 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 %}
|
{% endfor %}
{% set value = entity.__getattribute__(key) %}
Edit
|
Delete
|
{% endfor %}