blob: 7e294e076b3a60ac9b43e3817c67a22adf1bffbd [file] [log] [blame]
Kanchan Chauhanb3fe6a42016-03-16 18:01:22 +05301{% extends "templates/web.html" %}
2
3{% block title %}{{ doc.project_name }}{% endblock %}
4
Kanchan Chauhan239b3512016-05-02 11:43:44 +05305{% block header %}
6 <h1>{{ doc.project_name }}</h1>
Kanchan Chauhan2ad801c2016-03-22 16:00:41 +05307{% endblock %}
8
Kanchan Chauhanb3fe6a42016-03-16 18:01:22 +05309{% block style %}
Kanchan Chauhane14389e2016-03-23 14:14:38 +053010 <style>
11 {% include "templates/includes/projects.css" %}
12 </style>
Rushabh Mehtab2269dd2016-03-23 18:28:50 +053013{% endblock %}
Kanchan Chauhanb3fe6a42016-03-16 18:01:22 +053014
15
16{% block page_content %}
Kanchan Chauhan239b3512016-05-02 11:43:44 +053017{% if doc.percent_complete %}
18<div class="progress progress-hg">
19 <div class="progress-bar progress-bar-{{ "warning" if doc.percent_complete|round < 100 else "success" }} active" role="progressbar" aria-valuenow="{{ doc.percent_complete|round|int }}"
20 aria-valuemin="0" aria-valuemax="100" style="width:{{ doc.percent_complete|round|int }}%;">
21 </div>
22</div>
Faris Ansari5f8b3582019-03-19 11:48:32 +053023{% endif %}
Rushabh Mehtadf7e5232016-03-30 11:00:42 +053024
Kanchan Chauhanb566d422016-03-29 11:21:42 +053025<div class="clearfix">
26 <h4 style="float: left;">{{ _("Tasks") }}</h4>
Faris Ansari5f8b3582019-03-19 11:48:32 +053027 <a class="btn btn-secondary btn-light btn-sm" style="float: right; position: relative; top: 10px;" href='/tasks?new=1&project={{ doc.project_name }}'>{{ _("New task") }}</a>
Kanchan Chauhanb566d422016-03-29 11:21:42 +053028</div>
Rushabh Mehtab2269dd2016-03-23 18:28:50 +053029
Rushabh Mehtac20c5362016-03-25 17:19:28 +053030<p>
Kanchan Chauhan6d76359c2016-07-05 12:12:39 +053031<!-- <a class='small underline task-status-switch' data-status='Open'>{{ _("Show closed") }}</a> -->
Rushabh Mehtac20c5362016-03-25 17:19:28 +053032</p>
33
Rushabh Mehtab2269dd2016-03-23 18:28:50 +053034{% if doc.tasks %}
Rushabh Mehtac20c5362016-03-25 17:19:28 +053035 <div class='project-task-section'>
36 <div class='project-task'>
Kanchan Chauhanb3fe6a42016-03-16 18:01:22 +053037 {% include "erpnext/templates/includes/projects/project_tasks.html" %}
38 </div>
Rushabh Mehtac20c5362016-03-25 17:19:28 +053039 <p><a id= 'more-task' style='display: none;' class='more-tasks small underline'>{{ _("More") }}</a><p>
Kanchan Chauhanb3fe6a42016-03-16 18:01:22 +053040 </div>
41{% else %}
mnataliae0940752017-01-20 12:00:25 +020042 <p class="text-muted">{{ _("No tasks") }}</p>
Kanchan Chauhanb3fe6a42016-03-16 18:01:22 +053043{% endif %}
44
Rushabh Mehtab2269dd2016-03-23 18:28:50 +053045
Rushabh Mehtab2269dd2016-03-23 18:28:50 +053046<div class='padding'></div>
47
Kanchan Chauhan6d76359c2016-07-05 12:12:39 +053048<h4>{{ _("Timesheets") }}</h4>
Rushabh Mehtab2269dd2016-03-23 18:28:50 +053049
Kanchan Chauhan6d76359c2016-07-05 12:12:39 +053050{% if doc.timesheets %}
Kanchan Chauhanb3fe6a42016-03-16 18:01:22 +053051 <div class='project-timelogs'>
Kanchan Chauhan6d76359c2016-07-05 12:12:39 +053052 {% include "erpnext/templates/includes/projects/project_timesheets.html" %}
Kanchan Chauhanb3fe6a42016-03-16 18:01:22 +053053 </div>
Kanchan Chauhan6d76359c2016-07-05 12:12:39 +053054 {% if doc.timesheets|length > 9 %}
Kanchan Chauhanb3fe6a42016-03-16 18:01:22 +053055 <p><a class='more-timelogs small underline'>{{ _("More") }}</a><p>
56 {% endif %}
57{% else %}
mnataliae0940752017-01-20 12:00:25 +020058 <p class="text-muted">{{ _("No time sheets") }}</p>
Kanchan Chauhanb3fe6a42016-03-16 18:01:22 +053059{% endif %}
JodeQ10dfd4a2018-09-10 13:40:43 +020060
61{% if doc.attachments %}
62<div class='padding'></div>
63
64<h4>{{ _("Attachments") }}</h4>
65 <div class="project-attachments">
66 {% for attachment in doc.attachments %}
67 <div class="attachment">
68 <a class="no-decoration attachment-link" href="{{ attachment.file_url }}" target="blank">
69 <div class="row">
70 <div class="col-xs-9">
71 <span class="indicator red file-name"> {{ attachment.file_name }}</span>
72 </div>
73 <div class="col-xs-3">
74 <span class="pull-right file-size">{{ attachment.file_size }}</span>
75 </div>
76 </div>
77 </a>
78 </div>
79 {% endfor %}
80 </div>
81{% endif %}
82
Kanchan Chauhanb3fe6a42016-03-16 18:01:22 +053083</div>
84
85<script>
JodeQ10dfd4a2018-09-10 13:40:43 +020086 {% include "frappe/public/js/frappe/provide.js" %}
87 {% include "frappe/public/js/frappe/form/formatters.js" %}
Kanchan Chauhanb3fe6a42016-03-16 18:01:22 +053088</script>
89
Kanchan Chauhane14389e2016-03-23 14:14:38 +053090{% endblock %}