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 | |
| 5 | {% block header %} |
| 6 | <h1 class= "title"> |
| 7 | {{ doc.project_name }} |
| 8 | </h1> |
| 9 | {% endblock %} |
| 10 | |
| 11 | {% block style %} |
| 12 | <style> |
| 13 | {% include "templates/includes/projects.css" %} |
| 14 | </style> |
| 15 | {% endblock %} |
| 16 | |
| 17 | |
| 18 | {% block page_content %} |
| 19 | |
| 20 | {% include 'templates/includes/project_search_box.html' %} |
| 21 | |
| 22 | {% if frappe.form_dict.q %} |
| 23 | <p class="text-muted"> <a href="/projects?project={{doc.name}}" class="text-muted"> |
| 24 | Filtered by "{{ frappe.form_dict.q }}" Clear</a></p> |
| 25 | {% else %} |
| 26 | <h3>{{ _("Activity Feed") }}</h3> |
| 27 | <div class='project-timeline'> |
| 28 | {% include "erpnext/templates/includes/projects/timeline.html" %} |
| 29 | </div> |
| 30 | {% if doc.timelines|length > 9 %} |
| 31 | <p><a class='more-timelines small underline'>{{ _("More") }}</a><p> |
| 32 | {% endif %} |
| 33 | {% endif %} |
| 34 | |
| 35 | {% if doc.tasks %} |
| 36 | <div class='project-tasks-section'> |
| 37 | <div> |
| 38 | <a class="btn btn-xs btn-primary pull-right" |
| 39 | href='/tasks?new=1&project={{ doc.project_name }}'>New</a> |
| 40 | <h3>{{ _("Tasks") }}</h3> |
| 41 | </div> |
| 42 | <div class="btn-group btn-toggle"> |
| 43 | <button class="btn btn-xs btn-open-tasks btn-primary active" style="float:left;">Open</button> |
| 44 | <button class="btn btn-xs btn-closed-tasks">Close</button> |
| 45 | </div> |
| 46 | <div class='project-tasks'> |
| 47 | {% include "erpnext/templates/includes/projects/project_tasks.html" %} |
| 48 | </div> |
| 49 | |
| 50 | {% if doc.tasks|length > 4 %} |
| 51 | <p><a id= 'more-tasks' class='more-tasks small underline'>{{ _("More") }}</a><p> |
| 52 | {% endif %} |
| 53 | </div> |
| 54 | {% else %} |
| 55 | <p class="text-muted">No tasks</p> |
| 56 | {% endif %} |
| 57 | |
| 58 | {% if doc.issues %} |
| 59 | <div class='project-issues-section'> |
| 60 | <div> |
| 61 | <a class="btn btn-xs btn-primary pull-right" |
| 62 | href='/issues?new=1&project={{ doc.project_name }}'>New</a> |
| 63 | <h3>{{ _("Issues") }}</h3> |
| 64 | </div> |
| 65 | <div class="btn-group btn-toggle"> |
| 66 | <button class="btn btn-xs btn-open-issues" style="float:left;">Open</button> |
| 67 | <button class="btn btn-xs btn-closed-issues">Close</button> |
| 68 | </div> |
| 69 | <div class='project-issues'> |
| 70 | {% include "erpnext/templates/includes/projects/project_issues.html" %} |
| 71 | </div> |
| 72 | |
| 73 | {% if doc.issues|length > 4 %} |
| 74 | <p><a id='more-issues' class='more-issues small underline'>{{ _("More") }}</a><p> |
| 75 | {% endif %} |
| 76 | </div> |
| 77 | {% else %} |
| 78 | <p class="text-muted">No Issues</p> |
| 79 | {% endif %} |
| 80 | |
| 81 | {% if doc.timelogs %} |
| 82 | <h3>{{ _("Time Logs") }}</h3> |
| 83 | <div class='project-timelogs'> |
| 84 | {% include "erpnext/templates/includes/projects/project_timelogs.html" %} |
| 85 | </div> |
| 86 | {% if doc.timelogs|length > 1 %} |
| 87 | <p><a class='more-timelogs small underline'>{{ _("More") }}</a><p> |
| 88 | {% endif %} |
| 89 | {% else %} |
| 90 | <p class="text-muted">No time logs</p> |
| 91 | {% endif %} |
| 92 | </div> |
| 93 | |
| 94 | <script> |
| 95 | {% include "erpnext/templates/pages/projects.js" %} |
| 96 | </script> |
| 97 | |
| 98 | {% endblock %} |