|
|
@ -19,14 +19,14 @@ |
|
|
<thead> |
|
|
<thead> |
|
|
<tr> |
|
|
<tr> |
|
|
<th>#</th> |
|
|
<th>#</th> |
|
|
<th class="col-sm-4">{% trans 'Description' %}</th> |
|
|
|
|
|
<th class="col-sm-1">{% trans 'Task author' %}</th> |
|
|
|
|
|
|
|
|
<th class="col-sm-3">{% trans 'Name' %}</th> |
|
|
|
|
|
<th class="col-sm-1">{% trans 'Address' %}</th> |
|
|
<th class="col-sm-1">{% trans 'The nature of the damage' %}</th> |
|
|
<th class="col-sm-1">{% trans 'The nature of the damage' %}</th> |
|
|
|
|
|
<th class="col-sm-3">{% trans 'Description' %}</th> |
|
|
|
|
|
<th class="col-sm-1">{% trans 'Task author' %}</th> |
|
|
<th class="col-sm-1">{% trans 'Condition' %}</th> |
|
|
<th class="col-sm-1">{% trans 'Condition' %}</th> |
|
|
<th class="col-sm-1">{% trans 'A priority' %}</th> |
|
|
|
|
|
<th class="col-sm-1">{% trans 'Date of create' %}</th> |
|
|
<th class="col-sm-1">{% trans 'Date of create' %}</th> |
|
|
<th class="col-sm-1">{% trans 'Attachment' %}</th> |
|
|
|
|
|
<th class="col-sm-2" colspan="3">{% trans 'Actions' %}</th> |
|
|
|
|
|
|
|
|
<th class="col-sm-1">{% trans 'Actions' %}</th> |
|
|
</tr> |
|
|
</tr> |
|
|
</thead> |
|
|
</thead> |
|
|
<tbody> |
|
|
<tbody> |
|
|
@ -47,14 +47,23 @@ |
|
|
{% endif %} |
|
|
{% endif %} |
|
|
|
|
|
|
|
|
<td><a href="{% url 'taskapp:view' task.id %}" target="_blank">{{ task.id }}</a></td> |
|
|
<td><a href="{% url 'taskapp:view' task.id %}" target="_blank">{{ task.id }}</a></td> |
|
|
<td>{{ task.descr }}</td> |
|
|
|
|
|
<td><a href="{% url 'acc_app:other_profile' task.author.id %}" title="{{ task.author.get_full_name }}">{{ task.author.username }}</a></td> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{% if task.abon and task.abon.group %} |
|
|
|
|
|
<td><a href="{% url 'abonapp:abon_home' task.abon.group.pk task.abon.pk %}" target="_blank">{{ task.abon.get_full_name }}</a></td> |
|
|
|
|
|
<td>{{ task.abon.street|default:_('Not assigned') }} {{ task.abon.house|default:_('Not assigned') }}</td> |
|
|
|
|
|
{% else %} |
|
|
|
|
|
<td>{% trans 'User does not exist' %}</td> |
|
|
|
|
|
<td>---</td> |
|
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
|
<td>{{ task.get_mode_display }}</td> |
|
|
<td>{{ task.get_mode_display }}</td> |
|
|
|
|
|
<td>{{ task.descr }}</td> |
|
|
|
|
|
<td><a href="{% url 'acc_app:other_profile' task.author.pk %}" |
|
|
|
|
|
title="{{ task.author.get_full_name }}">{{ task.author.username }}</a></td> |
|
|
<td>{{ task.get_state_display }}</td> |
|
|
<td>{{ task.get_state_display }}</td> |
|
|
<td>{{ task.get_priority_display }}</td> |
|
|
|
|
|
<td>{{ task.time_of_create|date:'d N Y H:i:s' }}</td> |
|
|
<td>{{ task.time_of_create|date:'d N Y H:i:s' }}</td> |
|
|
<td>{% if task.attachment %}<a href="{{ task.attachment.url }}" target="_blank">{{ task.get_attachment_fname|truncatechars:32 }}</a>{% else %}―{% endif %}</td> |
|
|
|
|
|
<td colspan="3" class="btn-group btn-group-justified"> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<td class="btn-group btn-group-justified"> |
|
|
{% if perms.taskapp.change_task %} |
|
|
{% if perms.taskapp.change_task %} |
|
|
<a href="{% url 'taskapp:edit' task.id %}" class="btn btn-default btn-sm" title="{% trans 'Edit' %}"> |
|
|
<a href="{% url 'taskapp:edit' task.id %}" class="btn btn-default btn-sm" title="{% trans 'Edit' %}"> |
|
|
<span class="glyphicon glyphicon-edit"></span> |
|
|
<span class="glyphicon glyphicon-edit"></span> |
|
|
@ -69,13 +78,13 @@ |
|
|
</tr> |
|
|
</tr> |
|
|
{% empty %} |
|
|
{% empty %} |
|
|
<tr> |
|
|
<tr> |
|
|
<td colspan="12">{% trans 'The list is empty' %}</td> |
|
|
|
|
|
|
|
|
<td colspan="9">{% trans 'The list is empty' %}</td> |
|
|
</tr> |
|
|
</tr> |
|
|
{% endfor %} |
|
|
{% endfor %} |
|
|
</tbody> |
|
|
</tbody> |
|
|
<tfoot> |
|
|
<tfoot> |
|
|
<tr> |
|
|
<tr> |
|
|
<td colspan="12"> |
|
|
|
|
|
|
|
|
<td colspan="9"> |
|
|
{% if perms.taskapp.add_task %} |
|
|
{% if perms.taskapp.add_task %} |
|
|
<a href="{% url 'taskapp:add' %}" class="btn btn-sm btn-success" title="{% trans 'Add new task' %}"> |
|
|
<a href="{% url 'taskapp:add' %}" class="btn btn-sm btn-success" title="{% trans 'Add new task' %}"> |
|
|
<span class="glyphicon glyphicon-plus"></span> {% trans 'Add new task' %} |
|
|
<span class="glyphicon glyphicon-plus"></span> {% trans 'Add new task' %} |
|
|
|