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.
 
 
 
 
 

58 lines
2.1 KiB

{% extends request.is_ajax|yesno:'nullcont.htm,abonapp/ext.htm' %}
{% load i18n %}
{% block content %}
<table class="table table-striped table-bordered">
<thead>
<tr>
<th></th>
<th class="col-sm-1">{% trans 'Author' %}</th>
<th class="col-sm-2">{% trans 'Recipients' %}</th>
<th class="col-sm-4">{% trans 'Comment' %}</th>
<th class="col-sm-2">{% trans 'State' %}</th>
<th class="col-sm-1">{% trans 'Type' %}</th>
<th class="col-sm-2">{% trans 'Date of make' %}</th>
</tr>
</thead>
<tbody>
{% for task in tasks %}
<tr>
<td class="text-center"><a href="{% url 'taskapp:edit' task.pk %}" class="btn btn-default" title="{% trans 'View' %}" data-toggle="tooltip">
<span class="glyphicon glyphicon-eye-open"></span>
</a></td>
<td>
{% if task.author %}
<a href="{% url 'acc_app:other_profile' task.author.id %}">{{ task.author.get_short_name }}</a>
{% else %}
{% trans 'No author attached' %}
{% endif %}
</td>
<td>
{% for rec in task.recipients.all %}
<a href="{% url 'acc_app:other_profile' rec.id %}">{{ rec.get_short_name }}</a>
{% empty %}
{% trans 'Recipients not found' %}
{% endfor %}
</td>
<td>{{ task.descr|default:'&mdash;' }}</td>
<td>{{ task.get_state_display }}</td>
<td>{{ task.get_mode_display }}</td>
<td>{{ task.time_of_create|date:"D d E Y H:i:s" }}</td>
</tr>
{% empty %}
<tr>
<td colspan="7">{% trans 'Tasks not found' %}</td>
</tr>
{% endfor %}
</tbody>
<tfoot>
<tr>
<td colspan="7">
{% include 'taskapp/footer_btns.html' %}
</td>
</tr>
</tfoot>
</table>
{% endblock %}