{% extends request.is_ajax|yesno:'bajax.html,base.html' %} {% load i18n tasktags %} {% block title %}{% trans 'All tasks' %}{% endblock %} {% block breadcrumb %} {% endblock %} {% block page-header %} {% trans 'Records of all the tasks in the system' %} {% endblock %} {% block main %}
{% for task in tasks %} {% if task.is_relevant %} {% else %} {% endif %} {% if task.abon and task.abon.group %} {% else %} {% endif %} {% empty %} {% endfor %}
{% trans 'Name and comment count' %} {% trans 'Address' %} {% trans 'The nature of the damage' %} {% trans 'Description' %} {% trans 'Task author' %} {% trans 'Condition' %} {% trans 'Actions' %}
{# Task state #} {% if not task.is_relevant %} {% if task.priority == 'E' %} {% elif task.priority == 'A' %} {% endif %} {% endif %} {{ task.abon.get_full_name }} {% if task.comment_count > 0 %}({{ task.comment_count }}){% endif %} {{ task.abon.group.title }}, {{ task.abon.street|default:_('Not assigned') }} {{ task.abon.house|default:_('Not assigned') }}{% trans 'User does not exist' %} ---{{ task.get_mode_display }} {{ task.descr|default:_('None') }} {% if task.author %} {{ task.author.username }} {% else %} {% trans 'Not assigned' %} {% endif %} {{ task.get_state_display }} {% if perms.taskapp.change_task %} {% endif %} {% if perms.taskapp.can_remind %} {% endif %}
{% trans 'The list is empty' %}
{% if perms.taskapp.add_task %} {% trans 'Add new task' %} {% endif %}
{% endblock %}