{% load tags %}
{% if compact or data.metadata.compact or request.GET.compact or request|mobile %}
{% include "app/queryset/cards.html" with compact=True %}
{% else %}
{% if data.data %}
{% with image_key=data.data.0.data|image_key %}
{% for row in data.data %}
{% if image_key %}
{% for k, v in row.data.items %}
{% if k == image_key %}
{% endif %}
{% endfor %}
{% endif %}
{{ row.description }}
{% include "app/queryset/checkbox.html" %}
{% for k, v in row.data.items %}
{% if k != image_key %}
{{ k }}
{% include 'app/valueset/value.html' %}
{% endif %}
{% endfor %}
{% include "app/actions.html" with uuid=data.uuid target="instance" actions=data.actions.instance id=row.id|stringformat:'s' enabled=row.actions %}