{% extends 'gentelella/base.html' %} {% load i18n gtflows %} {% block title %}{{ task.title }}{% endblock %} {% block content %}

{{ task.title }} {{ task.get_state_display }}

{% if object %}
{% trans 'About' %}
{% if flow %}{{ object }} {{ flow }}{% else %}{{ object }}{% endif %}
{% endif %} {% if task.description %}
{% trans 'Description' %}
{{ task.description|linebreaksbr }}
{% endif %}
{% trans 'Priority' %}
{{ task.priority }} · {{ task.get_priority_display }}
{% trans 'Owner' %}
{{ task.actual_owner|default:_('Nobody yet') }}
{% trans 'For' %}
{% for user in task.potential_owners.all %}{{ user }}{% if not forloop.last %}, {% endif %}{% endfor %}{% for group in task.groups.all %} {{ group }}{% endfor %}
{% if task.info_from %}
{% trans 'Waiting for information from' %}
{{ task.info_from }}
{% endif %} {% if task.due %}
{% trans 'Due' %}
{{ task.due }}
{% endif %} {% if task.outcome %}
{% trans 'Outcome' %}
{{ task.outcome|outcome_label }}
{% endif %}
{% if 'claim' in allowed %}
{% csrf_token %}
{% endif %} {% if 'release' in allowed %}
{% csrf_token %}
{% endif %}
{% if forms.complete %}
{% csrf_token %} {% if task_form %}
{{ task_form }}
{% endif %} {{ forms.complete }} {% for outcome in task.outcome_choices %} {% endfor %}
{% endif %} {% if forms.submit_info %}
{% csrf_token %}{{ forms.submit_info }}
{% endif %} {% if forms.delegate or forms.request_info %}
{% if forms.delegate %}
{% trans 'Delegate' %}
{% csrf_token %}{{ forms.delegate }}
{% endif %} {% if forms.request_info %}
{% trans 'Request information' %}
{% csrf_token %}{{ forms.request_info }}
{% endif %}
{% endif %}
{% trans 'Comments' %}
{% for comment in comments %}
{{ comment.user|default:_('System') }} {{ comment.created_at }}
{{ comment.text|linebreaksbr }}
{% empty %}

{% trans 'No comments.' %}

{% endfor %} {% if forms.comment %}
{% csrf_token %}{{ forms.comment }}
{% endif %}
{% trans 'History' %}
{% for entry in history %} {% endfor %}
{% trans 'When' %}{% trans 'Who' %}{% trans 'What' %}{% trans 'Comment' %}
{{ entry.created_at }}{{ entry.user|default:_('System') }}{{ entry.get_action_display }}{% if entry.to_user %} → {{ entry.to_user }}{% endif %}{% if entry.data.outcome %}: {{ entry.data.outcome|outcome_label }}{% endif %}{{ entry.comment }}
{% trans 'Back to the task inbox' %}
{% endblock %}