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.
 
 
 
 
 

43 lines
1.7 KiB

{% load i18n %}
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">{% trans 'Task details' %}</h3>
</div>
<div class="panel-body">
<p>{% trans 'Description' %}: {{ task.descr|default:'' }}</p>
{% trans 'Task author' %}:
{% if task and 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 %}
<i>{% trans 'Not assigned' %}</i>
{% endif %}<br>
{% trans 'Implementers' %}:
<ul>
{% for recipient in task.recipients.all %}
<li><a href="{% url 'acc_app:other_profile' recipient.pk %}">{{ recipient.get_full_name }}</a></li>
{% endfor %}
</ul>
{% trans 'A priority' %}: {{ task.get_priority_display }}<br>
{% trans 'The task is valid until' %} {{ task.out_date|date:'d E Y' }}<br>
{% trans 'Date of create' %} {{ task.time_of_create|date:'d E Y H:i:s' }}<br>
{{ time_diff }}<br>
{% trans 'Task type' %}: {{ task.get_mode_display }}<br>
{% trans 'Condition' %}: {{ task.get_state_display }}<br>
{% trans 'Subscriber' %}
{% if task.abon %}
<a href="{% url 'abonapp:abon_home' task.abon.group.pk task.abon.username %}">{{ task.abon.get_full_name }}</a>
{% else %}
<i>{% trans 'Not assigned' %}</i>
{% endif %}<br>
{% if task.attachment %}
{% trans 'Attachment' %}:
<a href="{{ task.attachment.url }}" class="thumbnail">
<img src="{{ task.attachment.url }}">
</a>
{% endif %}
</div>
</div>