{% regroup init_task_list by detailer as task_list %} {% if task_list %} {% if user.is_authenticated %}{% endif %} {% for d in task_list %} {% if in_job_detail %} {% endif %} {% for t in d.list %} {% if user.is_authenticated %} {% endif %} {% endfor %} {% endfor %}
TODO
Stairs Description Due
{{ d.grouper.name }}
{% if user.is_staff %} Edit {% elif not t.done and user.pk == t.detailer.pk %}
{% csrf_token %}
{% endif %}
{% if in_job_detail %} {{ t.stair_names }} {% else %} {{ t.job.number }} {{ t.stair_names }} {% endif %} {{ t.description }} {{ t.due|default_if_none:''|date:'SHORT_DATE_FORMAT' }}
{% endif %}