You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
75 lines
3.6 KiB
75 lines
3.6 KiB
{% extends request.is_ajax|yesno:'nullcont.htm,taskapp/ext.htm' %}
|
|
{% block content %}
|
|
|
|
<div class="table-responsive">
|
|
<table class="table table-striped table-bordered">
|
|
<thead>
|
|
<tr>
|
|
<th>#</th>
|
|
<th class="col-sm-2">Пару слов..</th>
|
|
<th class="col-sm-1">Кому назначена</th>
|
|
<th class="col-sm-1">Кто назначил</th>
|
|
<th class="col-sm-1">Характер поломки</th>
|
|
<th class="col-sm-1">Состояние</th>
|
|
<th class="col-sm-1">Приоритет</th>
|
|
<th class="col-sm-1">Устройство</th>
|
|
<th class="col-sm-1">Дата создания</th>
|
|
<th class="col-sm-1">Приложение</th>
|
|
<th class="col-sm-2" colspan="3">Действия</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for task in tasks %}
|
|
|
|
{% if task.priority == 'E' %}
|
|
<tr class="success">
|
|
{% elif task.priority == 'C' %}
|
|
<tr>
|
|
{% elif task.priority == 'A' %}
|
|
<tr class="danger">
|
|
{% else %}
|
|
<tr>{% endif %}
|
|
|
|
<td>{{ task.id }}</td>
|
|
<td>{{ task.descr }}</td>
|
|
<td><a href="{% url 'other_profile' task.recipient.id %}" title="{{ task.recipient.get_full_name }}">{{ task.recipient.username }}</a></td>
|
|
<td><a href="{% url 'other_profile' task.author.id %}" title="{{ task.author.get_full_name }}">{{ task.author.username }}</a></td>
|
|
<td>{{ task.get_mode_display }}</td>
|
|
<td>{{ task.get_state_display }}</td>
|
|
<td>{{ task.get_priority_display }}</td>
|
|
<td><a href="{% url 'devs_view_link' task.device.id %}" target="_blank">{{ task.device.ip_address }}</a></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.attachment.name }}</a>{% else %}―{% endif %}</td>
|
|
<td colspan="3" class="btn-group btn-group-justified">
|
|
<a href="{% url 'task_begin' task.id %}" class="btn btn-primary btn-xs" title="Начать">
|
|
<span class="glyphicon glyphicon-cog"></span>
|
|
</a>
|
|
<a href="{% url 'task_finish' task.id %}" class="btn btn-success btn-xs" title="Завершить">
|
|
<span class="glyphicon glyphicon-ok"></span>
|
|
</a>
|
|
<a href="{% url 'task_edit' task.id %}" class="btn btn-default btn-xs" title="Редактировать">
|
|
<span class="glyphicon glyphicon-edit"></span>
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
{% empty %}
|
|
<tr>
|
|
<td colspan="13">Список пуст</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
<tfoot>
|
|
<tr>
|
|
<td colspan="13">
|
|
<a href="{% url 'task_add' %}" class="btn btn-sm btn-success" title="Создать новую задачу">
|
|
<span class="glyphicon glyphicon-plus"></span> Добавить задачу
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
</tfoot>
|
|
</table>
|
|
</div>
|
|
|
|
{% include 'toolbar_page.html' with pag=tasks %}
|
|
|
|
{% endblock %}
|