{% import "macros.html" as ui %} {# The plan cards on top of the planner: a click adds a plan to the chosen ones or takes it out. Sent again, out of band, after a change made in the panel, so the progress shown stays right. #} {% macro open_form(query, label, extra="") -%} {%- endmacro %}
{% for card in cards %} {% if card.chosen %}☑{% else %}☐{% endif %} {{ card.title }} {{ card.state }} · {{ card.done }}/{{ card.total }} tasks{% if card.due %} · ⏱ {{ card.due }}{% endif %} {% endfor %} {{ open_form("kind=plan", "+ New plan", "primary plan-card-new") }}