blob: f50d455b17b8ba0cc186620d12dd3ac1aab6b623 [file] [log] [blame]
Kanchan Chauhanb3fe6a42016-03-16 18:01:22 +05301{% extends "templates/web.html" %}
2
3{% block title %}{{ doc.project_name }}{% endblock %}
4
Rushabh Mehtab2269dd2016-03-23 18:28:50 +05305{%- from "templates/includes/projects/macros.html" import back_link -%}
Kanchan Chauhan239b3512016-05-02 11:43:44 +05306{% block header %}
7 <h1>{{ doc.project_name }}</h1>
Kanchan Chauhan2ad801c2016-03-22 16:00:41 +05308{% endblock %}
9
Kanchan Chauhanb3fe6a42016-03-16 18:01:22 +053010{% block style %}
Kanchan Chauhane14389e2016-03-23 14:14:38 +053011 <style>
12 {% include "templates/includes/projects.css" %}
13 </style>
Rushabh Mehtab2269dd2016-03-23 18:28:50 +053014{% endblock %}
Kanchan Chauhanb3fe6a42016-03-16 18:01:22 +053015
16
17{% block page_content %}
Kanchan Chauhan239b3512016-05-02 11:43:44 +053018{% if doc.percent_complete %}
19<div class="progress progress-hg">
20 <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 }}"
21 aria-valuemin="0" aria-valuemax="100" style="width:{{ doc.percent_complete|round|int }}%;">
22 </div>
23</div>
24{% endif %}
Rushabh Mehtadf7e5232016-03-30 11:00:42 +053025
Kanchan Chauhanb566d422016-03-29 11:21:42 +053026<div class="clearfix">
27 <h4 style="float: left;">{{ _("Tasks") }}</h4>
Rushabh Mehtadf7e5232016-03-30 11:00:42 +053028 <a class="btn btn-secondary btn-default btn-sm" style="float: right; position: relative; top: 10px;" href='/tasks?new=1&project={{ doc.project_name }}{{ back_link(doc) }}'>New task</a>
Kanchan Chauhanb566d422016-03-29 11:21:42 +053029</div>
Rushabh Mehtab2269dd2016-03-23 18:28:50 +053030
Rushabh Mehtac20c5362016-03-25 17:19:28 +053031<p>
Rushabh Mehtac20c5362016-03-25 17:19:28 +053032<a class='small underline task-status-switch' data-status='Open'>{{ _("Show closed") }}</a>
33</p>
34
Rushabh Mehtab2269dd2016-03-23 18:28:50 +053035{% if doc.tasks %}
Rushabh Mehtac20c5362016-03-25 17:19:28 +053036 <div class='project-task-section'>
37 <div class='project-task'>
Kanchan Chauhanb3fe6a42016-03-16 18:01:22 +053038 {% include "erpnext/templates/includes/projects/project_tasks.html" %}
39 </div>
Rushabh Mehtac20c5362016-03-25 17:19:28 +053040 <p><a id= 'more-task' style='display: none;' class='more-tasks small underline'>{{ _("More") }}</a><p>
Kanchan Chauhanb3fe6a42016-03-16 18:01:22 +053041 </div>
42{% else %}
43 <p class="text-muted">No tasks</p>
44{% endif %}
45
Rushabh Mehtab2269dd2016-03-23 18:28:50 +053046
Rushabh Mehtab2269dd2016-03-23 18:28:50 +053047<div class='padding'></div>
48
Kanchan Chauhanb566d422016-03-29 11:21:42 +053049<h4>{{ _("Time Logs") }}</h4>
Rushabh Mehtab2269dd2016-03-23 18:28:50 +053050
Kanchan Chauhanb3fe6a42016-03-16 18:01:22 +053051{% if doc.timelogs %}
Kanchan Chauhanb3fe6a42016-03-16 18:01:22 +053052 <div class='project-timelogs'>
53 {% include "erpnext/templates/includes/projects/project_timelogs.html" %}
54 </div>
Kanchan Chauhane14389e2016-03-23 14:14:38 +053055 {% if doc.timelogs|length > 9 %}
Kanchan Chauhanb3fe6a42016-03-16 18:01:22 +053056 <p><a class='more-timelogs small underline'>{{ _("More") }}</a><p>
57 {% endif %}
58{% else %}
59 <p class="text-muted">No time logs</p>
60{% endif %}
61</div>
62
63<script>
64 {% include "erpnext/templates/pages/projects.js" %}
65</script>
66
Kanchan Chauhane14389e2016-03-23 14:14:38 +053067{% endblock %}