{% load static i18n %}{% comment %} The Kanban board. One column per value of the board's field, each a list of cards. Moving a card has two ways in, and neither is the only one. Drag and drop for the pointer, and a "Move to…" menu on every card for the keyboard, for touch screens where HTML5 drag never fires, and for anybody who prefers to say where a card goes rather than carry it there. The menu is a real form posting to the same endpoint, so it works with JavaScript switched off; vantage-listviews.js upgrades it to a fetch. Nothing about moving is drawn unless the server already said this person may move cards — model-level change permission and a field the change form would let them write. Each move is still checked again, per object, on the way in. {% endcomment %}
{% csrf_token %}

{% if view_field.options or kanban_can_move %}
{% include "vantage/list_views/field_picker.html" %} {% if kanban_can_move %}

{% translate "Drag a card to another column, or use its “Move to” menu." %}

{% endif %}
{% endif %}
{% for column in kanban_columns %}

{{ column.label }}

{{ column.count }}
    {% for card in column.cards %}
  1. {{ card.title }} {% include "vantage/list_views/card_fields.html" %} {% if kanban_can_move %}
    {% translate "Move to…" %} {{ card.title }}
    {% csrf_token %} {% for target in kanban_columns %}{% if target.key != column.key %} {% endif %}{% endfor %}
    {% endif %}
  2. {% endfor %}
{% if not column.cards %}

{% translate "Nothing here" %}

{% endif %} {% if column.more_url %} {% blocktranslate count counter=column.remaining %}Show more ({{ counter }} hidden){% plural %}Show more ({{ counter }} hidden){% endblocktranslate %} {% endif %}
{% endfor %}
{% if kanban_can_move %}{% endif %}