blob: 199d63c7a6d1974c6eb028bbe8e55b060b4c4cfe [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 -%}
6
Kanchan Chauhanb566d422016-03-29 11:21:42 +05307{% block header_actions %}
8{% include 'templates/includes/projects/project_search_box.html' %}
9{% endblock %}
10
Kanchan Chauhan2ad801c2016-03-22 16:00:41 +053011{% block breadcrumbs %}
Rushabh Mehtab2269dd2016-03-23 18:28:50 +053012 <div class="page-breadcrumbs" data-html-block="breadcrumbs">
Kanchan Chauhan2ad801c2016-03-22 16:00:41 +053013 <ul class="breadcrumb">
14 <li>
15 <span class="icon icon-angle-left"></span>
16 <a href="/project">Projects</a>
Rushabh Mehtab2269dd2016-03-23 18:28:50 +053017 </li>
Kanchan Chauhan2ad801c2016-03-22 16:00:41 +053018 </ul>
19 </div>
20{% endblock %}
21
Kanchan Chauhanb3fe6a42016-03-16 18:01:22 +053022
23{% block style %}
Kanchan Chauhane14389e2016-03-23 14:14:38 +053024 <style>
25 {% include "templates/includes/projects.css" %}
26 </style>
Rushabh Mehtab2269dd2016-03-23 18:28:50 +053027{% endblock %}
Kanchan Chauhanb3fe6a42016-03-16 18:01:22 +053028
29
30{% block page_content %}
31
Kanchan Chauhanb566d422016-03-29 11:21:42 +053032<div class="row">
33<div class="col-xs-6">
34<h2 class= "title">
35 {{ doc.project_name }}
36</h2>
37</div>
38<div class="col-xs-6">
39 {% if doc.percent_complete %}
40 <div class="progress progress-hg">
41 <div class="progress-bar progress-bar-warning active" role="progressbar"
42 aria-valuenow="{{ doc.percent_complete|round|int }}"
43 aria-valuemin="0" aria-valuemax="100" style="width:{{ doc.percent_complete|round|int }}%;">
44 </div>
45 </div>
46 {% endif %}
47</div>
48</div>
49<hr class="small">
50
51<div class="clearfix">
52 <h4 style="float: left;">{{ _("Tasks") }}</h4>
53 <a class="btn btn-secondary btn-default" style="float: right; position: relative; top: 20px;" href='/tasks?new=1&project={{ doc.project_name }}{{ back_link(doc) }}'>New task</a>
54</div>
Rushabh Mehtab2269dd2016-03-23 18:28:50 +053055
Rushabh Mehtac20c5362016-03-25 17:19:28 +053056<p>
Rushabh Mehtac20c5362016-03-25 17:19:28 +053057<a class='small underline task-status-switch' data-status='Open'>{{ _("Show closed") }}</a>
58</p>
59
Rushabh Mehtab2269dd2016-03-23 18:28:50 +053060{% if doc.tasks %}
Rushabh Mehtac20c5362016-03-25 17:19:28 +053061 <div class='project-task-section'>
62 <div class='project-task'>
Kanchan Chauhanb3fe6a42016-03-16 18:01:22 +053063 {% include "erpnext/templates/includes/projects/project_tasks.html" %}
64 </div>
Rushabh Mehtac20c5362016-03-25 17:19:28 +053065 <p><a id= 'more-task' style='display: none;' class='more-tasks small underline'>{{ _("More") }}</a><p>
Kanchan Chauhanb3fe6a42016-03-16 18:01:22 +053066 </div>
67{% else %}
68 <p class="text-muted">No tasks</p>
69{% endif %}
70
Rushabh Mehtab2269dd2016-03-23 18:28:50 +053071
Rushabh Mehtab2269dd2016-03-23 18:28:50 +053072<div class='padding'></div>
73
Kanchan Chauhanb566d422016-03-29 11:21:42 +053074<h4>{{ _("Time Logs") }}</h4>
Rushabh Mehtab2269dd2016-03-23 18:28:50 +053075
Kanchan Chauhanb3fe6a42016-03-16 18:01:22 +053076{% if doc.timelogs %}
Kanchan Chauhanb3fe6a42016-03-16 18:01:22 +053077 <div class='project-timelogs'>
78 {% include "erpnext/templates/includes/projects/project_timelogs.html" %}
79 </div>
Kanchan Chauhane14389e2016-03-23 14:14:38 +053080 {% if doc.timelogs|length > 9 %}
Kanchan Chauhanb3fe6a42016-03-16 18:01:22 +053081 <p><a class='more-timelogs small underline'>{{ _("More") }}</a><p>
82 {% endif %}
83{% else %}
84 <p class="text-muted">No time logs</p>
85{% endif %}
86</div>
87
88<script>
89 {% include "erpnext/templates/pages/projects.js" %}
90</script>
91
Kanchan Chauhane14389e2016-03-23 14:14:38 +053092{% endblock %}