2016-03-16 12:31:22 +00:00
|
|
|
{% extends "templates/web.html" %}
|
|
|
|
|
2021-07-01 11:47:34 +00:00
|
|
|
{% block title %}
|
|
|
|
{{ doc.project_name }}
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block head_include %}
|
2022-07-06 09:40:39 +00:00
|
|
|
<link rel="stylesheet" href="/assets/frappe/css/fonts/fontawesome/font-awesome.min.css">
|
2021-07-01 11:47:34 +00:00
|
|
|
{% endblock %}
|
2016-03-16 12:31:22 +00:00
|
|
|
|
2016-05-02 06:13:44 +00:00
|
|
|
{% block header %}
|
2022-11-21 12:12:53 +00:00
|
|
|
<h3 class="my-account-header">{{ doc.project_name }}</h3>
|
2016-03-22 10:30:41 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
2016-03-16 12:31:22 +00:00
|
|
|
{% block style %}
|
2021-07-01 11:47:34 +00:00
|
|
|
<style>
|
|
|
|
{
|
|
|
|
% include "templates/includes/projects.css"%
|
|
|
|
}
|
|
|
|
</style>
|
2016-03-23 12:58:50 +00:00
|
|
|
{% endblock %}
|
2016-03-16 12:31:22 +00:00
|
|
|
|
|
|
|
{% block page_content %}
|
2022-11-21 12:12:53 +00:00
|
|
|
<div class="web-list-item transaction-list-item">
|
|
|
|
<div class="row align-items-center">
|
|
|
|
<div class="col-sm-4 "><b>Status: {{ doc.status }}</b></div>
|
|
|
|
<div class="col-sm-4 "><b>Progress: {{ doc.percent_complete }}%</b></div>
|
|
|
|
<div class="col-sm-4 "><b>Hours Spent: {{ doc.actual_time | round }}</b></div>
|
|
|
|
</div>
|
2021-07-01 11:47:34 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
{{ progress_bar(doc.percent_complete) }}
|
|
|
|
|
2022-11-21 12:12:53 +00:00
|
|
|
<hr>
|
|
|
|
|
|
|
|
<div class="row align-items-center">
|
|
|
|
<div class="col-sm-6 my-account-header"> <h4>Tasks</h4></div>
|
|
|
|
<div class="col-sm-6 text-right">
|
|
|
|
<a class="btn btn-secondary btn-light btn-sm" href='/tasks/new?project={{ doc.project_name }}'>{{ _("New task") }}</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-11-21 14:07:57 +00:00
|
|
|
{% if doc.tasks %}
|
2022-11-21 12:12:53 +00:00
|
|
|
<div class="website-list">
|
|
|
|
<div class="result">
|
|
|
|
<div class="web-list-item transaction-list-item">
|
|
|
|
<div class="row align-items-center">
|
|
|
|
<div class="col-sm-4"><b>Tasks</b></div>
|
|
|
|
<div class="col-sm-2"><b>Status</b></div>
|
|
|
|
<div class="col-sm-2"><b>End Date</b></div>
|
|
|
|
<div class="col-sm-2"><b>Assignment</b></div>
|
|
|
|
<div class="col-sm-2"><b>Modified On</b></div>
|
2021-07-01 11:47:34 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-11-21 12:12:53 +00:00
|
|
|
{% include "erpnext/templates/includes/projects/project_tasks.html" %}
|
2021-07-01 11:47:34 +00:00
|
|
|
</div>
|
2022-11-21 12:12:53 +00:00
|
|
|
</div>
|
2021-07-01 11:47:34 +00:00
|
|
|
{% else %}
|
2022-11-21 14:07:57 +00:00
|
|
|
{{ empty_state('Task')}}
|
2021-07-01 11:47:34 +00:00
|
|
|
{% endif %}
|
|
|
|
|
2022-11-21 12:12:53 +00:00
|
|
|
<h4 class="my-account-header">Timesheets</h4>
|
2022-11-21 14:07:57 +00:00
|
|
|
{% if doc.timesheets %}
|
2021-07-01 11:47:34 +00:00
|
|
|
<div class="website-list">
|
|
|
|
<div class="result">
|
|
|
|
<div class="web-list-item transaction-list-item">
|
2022-11-21 12:12:53 +00:00
|
|
|
<div class="row align-items-center">
|
|
|
|
<div class="col-xs-2"><b>Timesheet</b></div>
|
|
|
|
<div class="col-xs-2"><b>Status</b></div>
|
|
|
|
<div class="col-xs-2"><b>From</b></div>
|
|
|
|
<div class="col-xs-2"><b>To</b></div>
|
|
|
|
<div class="col-xs-2"><b>Modified By</b></div>
|
|
|
|
<div class="col-xs-2"><b>Modified On</b></div>
|
2021-07-01 11:47:34 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-11-21 12:12:53 +00:00
|
|
|
{% include "erpnext/templates/includes/projects/project_timesheets.html" %}
|
2021-07-01 11:47:34 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% else %}
|
2022-11-21 14:07:57 +00:00
|
|
|
{{ empty_state('Timesheet')}}
|
2021-07-01 11:47:34 +00:00
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if doc.attachments %}
|
|
|
|
<div class='padding'></div>
|
|
|
|
|
|
|
|
<h4>{{ _("Attachments") }}</h4>
|
|
|
|
<div class="project-attachments">
|
|
|
|
{% for attachment in doc.attachments %}
|
|
|
|
<div class="attachment">
|
|
|
|
<a class="no-decoration attachment-link" href="{{ attachment.file_url }}" target="blank">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-xs-9">
|
|
|
|
<span class="indicator red file-name">
|
|
|
|
{{ attachment.file_name }}</span>
|
|
|
|
</div>
|
|
|
|
<div class="col-xs-3">
|
|
|
|
<span class="pull-right file-size">{{ attachment.file_size }}</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2018-09-10 11:40:43 +00:00
|
|
|
|
2016-03-16 12:31:22 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<script>
|
2022-11-21 12:12:53 +00:00
|
|
|
{ % include "frappe/public/js/frappe/provide.js" % }
|
|
|
|
{ % include "frappe/public/js/frappe/form/formatters.js" % }
|
|
|
|
</script>
|
2016-03-16 12:31:22 +00:00
|
|
|
|
2016-03-23 08:44:38 +00:00
|
|
|
{% endblock %}
|
2021-07-01 11:47:34 +00:00
|
|
|
|
|
|
|
{% macro progress_bar(percent_complete) %}
|
|
|
|
{% if percent_complete %}
|
2022-11-21 12:12:53 +00:00
|
|
|
<span class="small py-2">Project Progress:</span>
|
|
|
|
<div class="progress progress-hg" style="height: 15px;">
|
|
|
|
<div
|
|
|
|
class="progress-bar progress-bar-{{ 'warning' if percent_complete|round < 100 else 'success' }} active"\
|
|
|
|
role="progressbar" aria-valuenow="{{ percent_complete|round|int }}" aria-valuemin="0"\
|
|
|
|
aria-valuemax="100" style="width:{{ percent_complete|round|int }}%;">
|
|
|
|
</div>
|
2021-07-01 11:47:34 +00:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
{% endmacro %}
|
2022-11-21 14:07:57 +00:00
|
|
|
|
|
|
|
|
|
|
|
{% macro empty_state(section_name) %}
|
|
|
|
<div class="frappe-list align-items-center">
|
|
|
|
<div class=" text-muted flex justify-center align-center" style="">
|
|
|
|
<div class=" text-muted flex text-center">
|
|
|
|
<div class="msg-box no-border">
|
|
|
|
<div>
|
|
|
|
<img src="/assets/frappe/images/ui-states/list-empty-state.svg" alt="Generic Empty State" class="null-state">
|
|
|
|
</div>
|
|
|
|
<p>You haven't created a {{ section_name }} yet</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endmacro %}
|