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

{{ model.label }}

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

#{{ obj[pk] }}

{% with pk=obj[pk] %} {% include "row-actions.html" %} {% endwith %}
{% block details_table %}
{% for field in model.get_fields_list(request, 'DETAIL' | ra) %} {% 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 %}
{% endblock %} {% block head_css %} {{ super() }} {% for link in model._additional_css_links(request, "DETAIL" | ra) %} {% endfor %} {% endblock %} {% block script %} {{ super() }} {% for link in model._additional_js_links(request, "DETAIL" | ra) %} {% endfor %} {% endblock %}