{% extends "base.html" %} {% from "components/ui.html" import confirm_dialog, page_header %} {% block content %} {% set actions %} {% if current_user.is_admin or task.created_by == current_user.id %}
{{ _('Edit Task') }} {% if task.status in ['todo','review'] %}
{% elif task.status == 'in_progress' %}
{% elif task.status == 'done' %}
{% endif %}
{% endif %} {% endset %} {{ page_header('fas fa-tasks', task.name, subtitle_text=_('Task details and history.'), actions_html=actions, breadcrumbs=[{'text': _('Tasks'), 'url': url_for('tasks.list_tasks')}, {'text': task.name}]) }}
{% if task.description %}

Description

{{ task.description | markdown | safe }}
{% endif %}

Time Entries

{% for entry in time_entries %} {% else %} {% endfor %}
Date Duration User Notes Actions
{{ entry.start_time|user_date }} {{ entry.duration_formatted }} {{ entry.user.display_name }} {% if entry.notes %}{{ entry.notes|striptags|truncate(40) }}{% else %}-{% endif %}
{% if current_user.is_admin or entry.user_id == current_user.id %} {% endif %}
No time has been logged for this task.

Details

Status

{{ task.status_display }}

Priority

{{ task.priority_display }}

Project

{{ task.project.name }} {% if task.project.code_display %} {{ task.project.code_display }} {% endif %}

{% if task.assigned_user %}

Assigned To

{{ task.assigned_user.display_name }}

{% endif %} {% if task.tags %}

{{ _('Tags') }}

{% for tag in task.tag_list %} {{ tag }} {% endfor %}

{% endif %} {% if task.due_date %}

Due Date

{{ task.due_date|format_date }}

{% endif %}

{{ _('Estimated') }}

{% if task.estimated_hours %}{{ task.estimated_hours }} {{ _('h') }}{% else %}{% endif %}

{% if current_user.is_admin or task.created_by == current_user.id %} {{ confirm_dialog( 'confirmDeleteTask-' ~ task.id, 'Delete Task', 'Are you sure you want to delete this task? This action cannot be undone.', 'Delete', 'Cancel', 'danger' ) }} {% endif %} {% for entry in time_entries %} {% if current_user.is_admin or entry.user_id == current_user.id %} {{ confirm_dialog( 'confirmDeleteEntry-' ~ entry.id, 'Delete Time Entry', 'Are you sure you want to delete this time entry? This action cannot be undone.', 'Delete', 'Cancel', 'danger' ) }} {% endif %} {% endfor %} {% endblock %}