{% extends "layout.html" %} {%set pk = model.pk_attr%} {% block header %}

{{ model.label }}

{% endblock %} {% block modal %} {% include "modals/loading.html" %} {% include "modals/error.html" %} {% include "modals/delete.html" %} {% endblock %} {% block content %}

#{{ obj[pk] }}

{%if model.can_delete(request)%} {%endif%} {%if model.can_edit(request)%} {%endif%}
{%for field in model._extract_fields('DETAIL') %} {%endfor%}
{{ _("Attribute") }} {{ _("Value") }}
{{field.label}}
{% with data=obj[field.name] %} {% if data == None%} {% include "displays/_null.html" %} {%elif (data | is_iter) and (data |length) ==0%} {% include "displays/_empty.html" %} {%else%} {% include field.display_template %} {%endif%} {% endwith %}
{% endblock %} {% block script %} {% endblock %}