{% extends "templates/web.html" %} {% block title %} {{ doc.project_name }} {% endblock %} {% block head_include %} {% endblock %} {% block header %}

{{ doc.project_name }}

{% endblock %} {% block style %} {% endblock %} {% block page_content %} {{ progress_bar(doc.percent_complete) }}

Status:

Progress: {{ doc.percent_complete }} %

Hours Spent: {{ doc.actual_time }}

{{ progress_bar(doc.percent_complete) }} {% if doc.tasks %}

Tasks

Status

End Date

Assigned To

{% include "erpnext/templates/includes/projects/project_tasks.html" %}
{% else %}

{{ _("No Tasks") }}

{% endif %} {% if doc.timesheets %}

Timesheets

Status

From

To

Modified By

Modified On

{% include "erpnext/templates/includes/projects/project_timesheets.html" %}
{% else %}

{{ _("No Timesheets") }}

{% endif %} {% if doc.attachments %}

{{ _("Attachments") }}

{% for attachment in doc.attachments %}
{{ attachment.file_name }}
{{ attachment.file_size }}
{% endfor %}
{% endif %} {% endblock %} {% macro progress_bar(percent_complete) %} {% if percent_complete %}
{% else %}
{% endif %} {% endmacro %} {% macro task_row(task, indent) %}
{% if task.parent_task %} {% endif %} {{ task.subject }}
{{ task.status }}
{% if task.exp_end_date %} {{ task.exp_end_date }} {% else %} -- {% endif %}
{% if task["_assign"] %} {% set assigned_users = json.loads(task["_assign"])%} {% for user in assigned_users %} {% set user_details = frappe.db.get_value("User", user, ["full_name", "user_image"], as_dict = True)%} {% if user_details.user_image %} {% else %}
{{ frappe.utils.get_abbr(user_details.full_name) }}
{% endif %} {% endfor %} {% endif %}
{{ frappe.utils.pretty_date(task.modified) }}
{% if task.children %} {% for child in task.children %} {{ task_row(child, indent + 30) }} {% endfor %} {% endif %} {% endmacro %}