{% load humanize %} {% load custom_tags_and_filters %}

{{ task.tool.name }} task

Primary tool owner: {{ task.tool.primary_owner }}
{% if task.tool.backup_owners.all.exists %}Backup tool owner{{ task.tool.backup_owners.all.count|pluralize }}: {% for x in task.tool.backup_owners.all %}{{ x }}{% if not forloop.last %}, {% else %}{% endif %}{% endfor %}{% endif %}

{% if task.tool.in_use %} {% if task.tool.get_current_usage_event.operator.id == user.id %} {% url 'disable_tool' task.tool.id as disable_tool_url %} {% button id="interlock" type="delete" onclick="disable_tool('"|concat:disable_tool_url|concat:"');" value="Disable tool" icon="glyphicon-stop" %} {% else %} {% button type="warn" disabled="disabled" icon="glyphicon-ban-circle" value="Tool in use" %} {% endif %} {% else %} {% if user.active_project_count == 1 %} {% url 'enable_tool' tool_id=task.tool.id user_id=user.id project_id=user.active_projects.0.id staff_charge='false' as enable_tool_one_project %} {% button id="interlock" type="save" onclick="enable_tool('"|concat:enable_tool_one_project|concat:"');" value="Enable tool" icon="glyphicon-play" %} {% elif user.active_project_count > 1 %}
{% endif %} {% endif %} {% url 'calendar' item_type='tool' item_id=task.tool.id as tool_calendar_url %} {% button value="Calendar" icon="glyphicon-share-alt" url=tool_calendar_url target="_blank" %} {% url 'tool_control' tool_id=task.tool.id as tool_control_url %} {% button value="Tool control" icon="glyphicon-share-alt" url=tool_control_url target="_blank" %}
Created by {{ task.creator }} on {{ task.creation_time }} ({{ task.creation_time|naturaltime }}).

{% if task.last_updated and task.last_updated_by %} Last updated by {{ task.last_updated_by }} on {{ task.last_updated }} ({{ task.last_updated|naturaltime }}). {% endif %}

{% csrf_token %}
{% if initial_assessment_categories %}
{% endif %} {% if task_statuses %}
{% endif %}
{% if task.task_images %}
images:
{% endif %}
{% button type="save" value="Save task" %}

Problem description

{{ task.problem_description|linebreaksbr }}

{% if task.progress_description %}

Progress

{{ task.progress_description|linebreaksbr }}

{% endif %} {% if rendered_configuration_html %}

Configuration

{{ rendered_configuration_html }}

{% endif %}