{% load i18n admin_workbook %}{% comment %} A checklist: give it ``checklist`` (a ``Setup``) and ``title``. Each step has a title, a note, a link and whether it is done. Open at a desk; folded to its progress bar on a phone. {% endcomment %}

{{ title }}

{% if checklist.complete %}{% icon "circle-check" %} {% trans "All done" %}{% else %}{% blocktrans with done=checklist.done total=checklist.total %}{{ done }} of {{ total }} done{% endblocktrans %}{% endif %} {% if checklist.next_step and not checklist.complete %}{% blocktrans with step=checklist.next_step.label %}Next: {{ step }}{% endblocktrans %}{% endif %}
    {% for step in checklist.steps %}
  1. {{ step.label }}{% if step.optional %}{% trans "optional" %}{% endif %} {% if step.done %}{% trans "Done:" %}{% else %}{% trans "To do:" %}{% endif %} {{ step.detail|default:"" }}
  2. {% endfor %}