|
|
|
@ -1,5 +1,6 @@ |
|
|
|
{% extends request.is_ajax|yesno:'bajax.html,base.html' %} |
|
|
|
{% load i18n %} |
|
|
|
{% load tasktags %} |
|
|
|
{% block main %} |
|
|
|
|
|
|
|
<ol class="breadcrumb"> |
|
|
|
@ -18,8 +19,8 @@ |
|
|
|
<table class="table table-striped table-bordered"> |
|
|
|
<thead> |
|
|
|
<tr> |
|
|
|
<th class="hidden-xs">#</th> |
|
|
|
<th class="col-sm-3">{% trans 'Name' %}</th> |
|
|
|
<th class="col-sm-1 hidden-xs">#</th> |
|
|
|
<th class="col-sm-2">{% 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-3">{% trans 'Description' %}</th> |
|
|
|
@ -35,18 +36,21 @@ |
|
|
|
{% if task.is_relevant %} |
|
|
|
<tr class="text-muted"> |
|
|
|
{% else %} |
|
|
|
{% if task.priority == 'E' %} |
|
|
|
<tr class="success"> |
|
|
|
{% elif task.priority == 'C' %} |
|
|
|
<tr> |
|
|
|
{% elif task.priority == 'A' %} |
|
|
|
<tr class="danger"> |
|
|
|
{% else %} |
|
|
|
<tr> |
|
|
|
{% endif %} |
|
|
|
<tr> |
|
|
|
{% endif %} |
|
|
|
|
|
|
|
<td class="hidden-xs"><a href="{% url 'taskapp:view' task.pk %}">{{ task.pk }}</a></td> |
|
|
|
<td class="hidden-xs"> |
|
|
|
<a href="{% url 'taskapp:view' task.pk %}"> |
|
|
|
{% if not task.is_relevant %} |
|
|
|
{% if task.priority == 'E' %} |
|
|
|
<span class="glyphicon glyphicon-ok-circle text-success"></span> |
|
|
|
{% elif task.priority == 'A' %} |
|
|
|
<span class="glyphicon glyphicon-exclamation-sign text-danger"></span> |
|
|
|
{% endif %} |
|
|
|
{% endif %} |
|
|
|
{{ task.pk }} |
|
|
|
</a> |
|
|
|
</td> |
|
|
|
|
|
|
|
{% if task.abon and task.abon.group %} |
|
|
|
<td><a href="{% url 'abonapp:abon_home' task.abon.group.pk task.abon.pk %}">{{ task.abon.get_full_name }}</a></td> |
|
|
|
@ -58,16 +62,27 @@ |
|
|
|
|
|
|
|
<td>{{ task.get_mode_display }}</td> |
|
|
|
<td>{{ task.descr }}</td> |
|
|
|
<td>{% if task.author %} |
|
|
|
<a href="{% url 'acc_app:other_profile' task.author.pk %}" title="{{ task.author.get_full_name }}" data-toggle="tooltip"> |
|
|
|
{{ task.author.username }} |
|
|
|
</a> |
|
|
|
{% else %} |
|
|
|
{% trans 'Not assigned' %} |
|
|
|
{% endif %} |
|
|
|
</td> |
|
|
|
<td>{% if task.author %} |
|
|
|
<a href="{% url 'acc_app:other_profile' task.author.pk %}" title="{{ task.author.get_full_name }}" data-toggle="tooltip"> |
|
|
|
{{ task.author.username }} |
|
|
|
</a> |
|
|
|
{% else %} |
|
|
|
{% trans 'Not assigned' %} |
|
|
|
{% endif %} |
|
|
|
</td> |
|
|
|
<td>{{ task.get_state_display }}</td> |
|
|
|
<td class="hidden-xs">{{ task.time_of_create|date:'d E H:i' }}</td> |
|
|
|
|
|
|
|
<td class="hidden-xs"> |
|
|
|
{% is_today task.time_of_create as is_timecreate_is_today %} |
|
|
|
{% is_yesterday task.time_of_create as is_timecreate_is_yesterday %} |
|
|
|
{% if is_timecreate_is_today %} |
|
|
|
{% trans 'Today' %} {{ task.time_of_create|date:'H:i' }} |
|
|
|
{% elif is_timecreate_is_yesterday %} |
|
|
|
{% trans 'Yesterday' %} {{ task.time_of_create|date:'H:i' }} |
|
|
|
{% else %} |
|
|
|
{{ task.time_of_create|date:'d E H:i' }} |
|
|
|
{% endif %} |
|
|
|
</td> |
|
|
|
|
|
|
|
<td class="btn-group btn-group-sm btn-group-justified"> |
|
|
|
{% if perms.taskapp.change_task %} |
|
|
|
|