{% comment %} kanban A kanban view for displaying records from a queryset in a kanban board format. Supports drag-and-drop functionality for moving items between columns. Parameters: - content_type_id (int): The content type ID for the model being displayed. - queryset (QuerySet): The Django queryset containing the records to be displayed. - fields (list): The list of fields to display on each card. - preference (UserListViewPreference): The user's view preferences. - kanban_groups (list): List of groups with 'value', 'label', 'items', 'count' keys. - kanban_group_by_field (ApplicationField): The field used for grouping. {% endcomment %} {% load bloomerp %}
{% if kanban_groups %} {% for group in kanban_groups %}

{{ group.label }}

{{ group.count }}
{% for object in group.items %}
{{ object }}
{% for field in fields %}
{{ field.field|title }}: {% with value=object|getattr_filter:field.field %} {{ value|default:"-" }} {% endwith %}
{% endfor %}
{% empty %}
No items
{% endfor %}
{% endfor %} {% else %}

No grouping selected

Select a field to group by in the display options

{% endif %}