[%- for column in columns %] {% if "[[ column.name ]]" not in disabled_columns %} {% endif %} [%- endfor %]
: [%- if column.type in ['relationship'] %] [%- if column.multiple %] [%- endif %] {%- for sub_instance in model_views.[[ column.to or column.name ]].model.query.all() %} [%- else %] {% if instance.[[ column.name ]]_id == sub_instance.id %}selected="selected"{% endif %}>{{ sub_instance }} [%- endif %] {%- endfor %} [%- elif column.type in ['choice', ] %] [%- elif column.type in ['number', 'int', 'integer', ] %] [%- elif column.type in ['bool', 'boolean', ] %] [%- elif column.type in ['long_text', ] %] [%- elif column.type in ['file', 'audio', 'video', 'image', 'picture', 'img', ] %]

{{ instance.[[ column.name ]] }}

[%- else %] [%- endif %]