2016-03-16 12:31:22 +00:00
|
|
|
{% extends "templates/web.html" %}
|
|
|
|
|
|
|
|
{% block title %}{{ doc.project_name }}{% endblock %}
|
|
|
|
|
2016-03-23 12:58:50 +00:00
|
|
|
{%- from "templates/includes/projects/macros.html" import back_link -%}
|
|
|
|
|
2016-03-29 05:51:42 +00:00
|
|
|
{% block header_actions %}
|
|
|
|
{% include 'templates/includes/projects/project_search_box.html' %}
|
|
|
|
{% endblock %}
|
|
|
|
|
2016-03-22 10:30:41 +00:00
|
|
|
{% block breadcrumbs %}
|
2016-03-23 12:58:50 +00:00
|
|
|
<div class="page-breadcrumbs" data-html-block="breadcrumbs">
|
2016-03-22 10:30:41 +00:00
|
|
|
<ul class="breadcrumb">
|
|
|
|
<li>
|
|
|
|
<span class="icon icon-angle-left"></span>
|
|
|
|
<a href="/project">Projects</a>
|
2016-03-23 12:58:50 +00:00
|
|
|
</li>
|
2016-03-22 10:30:41 +00:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|
|
|
|
|
2016-03-16 12:31:22 +00:00
|
|
|
|
|
|
|
{% block style %}
|
2016-03-23 08:44:38 +00:00
|
|
|
<style>
|
|
|
|
{% include "templates/includes/projects.css" %}
|
|
|
|
</style>
|
2016-03-23 12:58:50 +00:00
|
|
|
{% endblock %}
|
2016-03-16 12:31:22 +00:00
|
|
|
|
|
|
|
|
|
|
|
{% block page_content %}
|
|
|
|
|
2016-03-29 05:51:42 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-xs-6">
|
|
|
|
<h2 class= "title">
|
|
|
|
{{ doc.project_name }}
|
|
|
|
</h2>
|
|
|
|
</div>
|
|
|
|
<div class="col-xs-6">
|
|
|
|
{% if doc.percent_complete %}
|
|
|
|
<div class="progress progress-hg">
|
|
|
|
<div class="progress-bar progress-bar-warning active" role="progressbar"
|
|
|
|
aria-valuenow="{{ doc.percent_complete|round|int }}"
|
|
|
|
aria-valuemin="0" aria-valuemax="100" style="width:{{ doc.percent_complete|round|int }}%;">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<hr class="small">
|
|
|
|
|
|
|
|
<div class="clearfix">
|
|
|
|
<h4 style="float: left;">{{ _("Tasks") }}</h4>
|
|
|
|
<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>
|
|
|
|
</div>
|
2016-03-23 12:58:50 +00:00
|
|
|
|
2016-03-25 11:49:28 +00:00
|
|
|
<p>
|
|
|
|
<a class='small underline task-status-switch' data-status='Open'>{{ _("Show closed") }}</a>
|
|
|
|
</p>
|
|
|
|
|
2016-03-23 12:58:50 +00:00
|
|
|
{% if doc.tasks %}
|
2016-03-25 11:49:28 +00:00
|
|
|
<div class='project-task-section'>
|
|
|
|
<div class='project-task'>
|
2016-03-16 12:31:22 +00:00
|
|
|
{% include "erpnext/templates/includes/projects/project_tasks.html" %}
|
|
|
|
</div>
|
2016-03-25 11:49:28 +00:00
|
|
|
<p><a id= 'more-task' style='display: none;' class='more-tasks small underline'>{{ _("More") }}</a><p>
|
2016-03-16 12:31:22 +00:00
|
|
|
</div>
|
|
|
|
{% else %}
|
|
|
|
<p class="text-muted">No tasks</p>
|
|
|
|
{% endif %}
|
|
|
|
|
2016-03-23 12:58:50 +00:00
|
|
|
|
|
|
|
<div class='padding'></div>
|
|
|
|
|
2016-03-29 05:51:42 +00:00
|
|
|
<h4>{{ _("Time Logs") }}</h4>
|
2016-03-23 12:58:50 +00:00
|
|
|
|
2016-03-16 12:31:22 +00:00
|
|
|
{% if doc.timelogs %}
|
|
|
|
<div class='project-timelogs'>
|
|
|
|
{% include "erpnext/templates/includes/projects/project_timelogs.html" %}
|
|
|
|
</div>
|
2016-03-23 08:44:38 +00:00
|
|
|
{% if doc.timelogs|length > 9 %}
|
2016-03-16 12:31:22 +00:00
|
|
|
<p><a class='more-timelogs small underline'>{{ _("More") }}</a><p>
|
|
|
|
{% endif %}
|
|
|
|
{% else %}
|
|
|
|
<p class="text-muted">No time logs</p>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
{% include "erpnext/templates/pages/projects.js" %}
|
|
|
|
</script>
|
|
|
|
|
2016-03-23 08:44:38 +00:00
|
|
|
{% endblock %}
|