{% extends "admin/base.html" %}{% block content %}
{% set ns = namespace(current_section=none, in_fieldset=false) %}{% for row in rows %}{% if row.section != ns.current_section %}{% if ns.in_fieldset %}{% endif %}{% if row.section is not none %}
{{ row.section }}{% set ns.in_fieldset = true %}{% else %}{% set ns.in_fieldset = false %}{% endif %}{% set ns.current_section = row.section %}{% endif %}{% if row.kind == "readonly" %}
{{ row.value }}
{% elif row.kind == "checkbox" %}
{% if row.error %}
{{ row.error }}
{% endif %}
{% elif row.kind == "number" %}
{% if row.lookup_href %} Look up{% endif %}{% if row.error %}
{{ row.error }}
{% endif %}
{% else %}
{% if row.lookup_href %} Look up{% endif %}{% if row.error %}
{{ row.error }}
{% endif %}
{% endif %}{% endfor %}{% if ns.in_fieldset %}
{% endif %}{% if inlines %}{% for inline in inlines %}

{{ inline.struct_name }}

{% for col in inline.fields %}{% endfor %}{% for row in inline.rows %}{% for val in row.values %}{% endfor %}{% endfor %}
{{ col }}
{{ val }}
{% endfor %}{% endif %}{% if has_change_permission %}{% endif %}{% if not is_add and has_delete_permission %} Delete{% endif %}
{% endblock %}