Kanchan Chauhan | b3fe6a4 | 2016-03-16 18:01:22 +0530 | [diff] [blame] | 1 | {% extends "templates/web.html" %} |
| 2 | |
| 3 | {% block title %}{{ doc.project_name }}{% endblock %} |
| 4 | |
Kanchan Chauhan | 239b351 | 2016-05-02 11:43:44 +0530 | [diff] [blame] | 5 | {% block header %} |
| 6 | <h1>{{ doc.project_name }}</h1> |
Kanchan Chauhan | 2ad801c | 2016-03-22 16:00:41 +0530 | [diff] [blame] | 7 | {% endblock %} |
| 8 | |
Kanchan Chauhan | b3fe6a4 | 2016-03-16 18:01:22 +0530 | [diff] [blame] | 9 | {% block style %} |
Kanchan Chauhan | e14389e | 2016-03-23 14:14:38 +0530 | [diff] [blame] | 10 | <style> |
| 11 | {% include "templates/includes/projects.css" %} |
| 12 | </style> |
Rushabh Mehta | b2269dd | 2016-03-23 18:28:50 +0530 | [diff] [blame] | 13 | {% endblock %} |
Kanchan Chauhan | b3fe6a4 | 2016-03-16 18:01:22 +0530 | [diff] [blame] | 14 | |
| 15 | |
| 16 | {% block page_content %} |
Kanchan Chauhan | 239b351 | 2016-05-02 11:43:44 +0530 | [diff] [blame] | 17 | {% 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> |
| 23 | {% endif %} |
Rushabh Mehta | df7e523 | 2016-03-30 11:00:42 +0530 | [diff] [blame] | 24 | |
Kanchan Chauhan | b566d42 | 2016-03-29 11:21:42 +0530 | [diff] [blame] | 25 | <div class="clearfix"> |
| 26 | <h4 style="float: left;">{{ _("Tasks") }}</h4> |
mnatalia | e094075 | 2017-01-20 12:00:25 +0200 | [diff] [blame] | 27 | <a class="btn btn-secondary btn-default btn-sm" style="float: right; position: relative; top: 10px;" href='/tasks?new=1&project={{ doc.project_name }}'>{{ _("New task") }}</a> |
Kanchan Chauhan | b566d42 | 2016-03-29 11:21:42 +0530 | [diff] [blame] | 28 | </div> |
Rushabh Mehta | b2269dd | 2016-03-23 18:28:50 +0530 | [diff] [blame] | 29 | |
Rushabh Mehta | c20c536 | 2016-03-25 17:19:28 +0530 | [diff] [blame] | 30 | <p> |
Kanchan Chauhan | 6d76359c | 2016-07-05 12:12:39 +0530 | [diff] [blame] | 31 | <!-- <a class='small underline task-status-switch' data-status='Open'>{{ _("Show closed") }}</a> --> |
Rushabh Mehta | c20c536 | 2016-03-25 17:19:28 +0530 | [diff] [blame] | 32 | </p> |
| 33 | |
Rushabh Mehta | b2269dd | 2016-03-23 18:28:50 +0530 | [diff] [blame] | 34 | {% if doc.tasks %} |
Rushabh Mehta | c20c536 | 2016-03-25 17:19:28 +0530 | [diff] [blame] | 35 | <div class='project-task-section'> |
| 36 | <div class='project-task'> |
Kanchan Chauhan | b3fe6a4 | 2016-03-16 18:01:22 +0530 | [diff] [blame] | 37 | {% include "erpnext/templates/includes/projects/project_tasks.html" %} |
| 38 | </div> |
Rushabh Mehta | c20c536 | 2016-03-25 17:19:28 +0530 | [diff] [blame] | 39 | <p><a id= 'more-task' style='display: none;' class='more-tasks small underline'>{{ _("More") }}</a><p> |
Kanchan Chauhan | b3fe6a4 | 2016-03-16 18:01:22 +0530 | [diff] [blame] | 40 | </div> |
| 41 | {% else %} |
mnatalia | e094075 | 2017-01-20 12:00:25 +0200 | [diff] [blame] | 42 | <p class="text-muted">{{ _("No tasks") }}</p> |
Kanchan Chauhan | b3fe6a4 | 2016-03-16 18:01:22 +0530 | [diff] [blame] | 43 | {% endif %} |
| 44 | |
Rushabh Mehta | b2269dd | 2016-03-23 18:28:50 +0530 | [diff] [blame] | 45 | |
Rushabh Mehta | b2269dd | 2016-03-23 18:28:50 +0530 | [diff] [blame] | 46 | <div class='padding'></div> |
| 47 | |
Kanchan Chauhan | 6d76359c | 2016-07-05 12:12:39 +0530 | [diff] [blame] | 48 | <h4>{{ _("Timesheets") }}</h4> |
Rushabh Mehta | b2269dd | 2016-03-23 18:28:50 +0530 | [diff] [blame] | 49 | |
Kanchan Chauhan | 6d76359c | 2016-07-05 12:12:39 +0530 | [diff] [blame] | 50 | {% if doc.timesheets %} |
Kanchan Chauhan | b3fe6a4 | 2016-03-16 18:01:22 +0530 | [diff] [blame] | 51 | <div class='project-timelogs'> |
Kanchan Chauhan | 6d76359c | 2016-07-05 12:12:39 +0530 | [diff] [blame] | 52 | {% include "erpnext/templates/includes/projects/project_timesheets.html" %} |
Kanchan Chauhan | b3fe6a4 | 2016-03-16 18:01:22 +0530 | [diff] [blame] | 53 | </div> |
Kanchan Chauhan | 6d76359c | 2016-07-05 12:12:39 +0530 | [diff] [blame] | 54 | {% if doc.timesheets|length > 9 %} |
Kanchan Chauhan | b3fe6a4 | 2016-03-16 18:01:22 +0530 | [diff] [blame] | 55 | <p><a class='more-timelogs small underline'>{{ _("More") }}</a><p> |
| 56 | {% endif %} |
| 57 | {% else %} |
mnatalia | e094075 | 2017-01-20 12:00:25 +0200 | [diff] [blame] | 58 | <p class="text-muted">{{ _("No time sheets") }}</p> |
Kanchan Chauhan | b3fe6a4 | 2016-03-16 18:01:22 +0530 | [diff] [blame] | 59 | {% endif %} |
| 60 | </div> |
| 61 | |
| 62 | <script> |
| 63 | {% include "erpnext/templates/pages/projects.js" %} |
| 64 | </script> |
| 65 | |
Kanchan Chauhan | e14389e | 2016-03-23 14:14:38 +0530 | [diff] [blame] | 66 | {% endblock %} |