{% load i18n admin_workbook %}{% comment %} A checklist: give it ``checklist`` (a ``Setup``), ``title`` and ``kind``, the name the browser remembers its fold by ("season", "division"). The fold. The server folds it to its progress bar when every required step is done (``Setup.folded``) and opens it otherwise, so it works without scripts. With scripts, it also starts folded on a phone, and a fold the person chose wins over both: a click on the summary keeps it in localStorage as ``wb-checklist-fold:`` ("open" or "folded"), one choice for every checklist of that kind. ``wbChecklist`` (defined in the page's head) applies it as soon as the panel is parsed; until it has, the stylesheet keeps the steps out of sight, so an open panel never shows only to fold. Hiding. "Hide" puts every set-up checklist away: localStorage ``wb-checklists`` is "hidden", and the script in the page's head marks the page with it before anything is drawn. The page head's button (see ``_checklist_show.html``) brings them back. {% 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 %}