{% extends "admin_layout.html" %} {% from "_form.html" import field_with_errors %} {% block page_title %}[Admin] Show [[ model_name | title ]]{% endblock %} {% block page_content %}

[[ model_name|title ]] #{{ [[ model_name.lower() ]].id }}

General Information

[% for col in meta['columns'] %]
[[ col['col'].name|title ]]
{{ [[ model_name.lower() ]].[[ col['col'].name ]] }}
[%- endfor %]
[% if many_relationships %]
[% for relate in many_relationships %]

[[ relate['cls'] ]]

{% for r in [[ model_name.lower() ]].relate['key'] %}
  • # {{ r.id }}
  • {% endfor %}
    [% endfor %]
    [% endif %] [% if one_relationships %]
    [% for relate in one_relationships %]

    [[ relate['cls'] ]]

    [% for col in relate['meta'] %]
    [[ col['col'].name|title ]]
    {{ [[ model_name.lower() ]].[[ col['col'].name ]] }}
    [%- endfor %]
    [% endfor %]
    [% endif %]
    {% endblock %}