2016-03-16 18:01:22 +05:30
|
|
|
{% extends "templates/web.html" %}
|
|
|
|
|
|
|
|
{% block title %}{{ doc.project_name }}{% endblock %}
|
|
|
|
|
2016-05-02 11:43:44 +05:30
|
|
|
{% block header %}
|
|
|
|
<h1>{{ doc.project_name }}</h1>
|
2016-03-22 16:00:41 +05:30
|
|
|
{% endblock %}
|
|
|
|
|
2016-03-16 18:01:22 +05:30
|
|
|
{% block style %}
|
2016-03-23 14:14:38 +05:30
|
|
|
<style>
|
|
|
|
{% include "templates/includes/projects.css" %}
|
|
|
|
</style>
|
2016-03-23 18:28:50 +05:30
|
|
|
{% endblock %}
|
2016-03-16 18:01:22 +05:30
|
|
|
|
|
|
|
|
|
|
|
{% block page_content %}
|
2016-05-02 11:43:44 +05:30
|
|
|
{% if doc.percent_complete %}
|
|
|
|
<div class="progress progress-hg">
|
|
|
|
<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 }}"
|
|
|
|
aria-valuemin="0" aria-valuemax="100" style="width:{{ doc.percent_complete|round|int }}%;">
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-03-19 11:48:32 +05:30
|
|
|
{% endif %}
|
2016-03-30 11:00:42 +05:30
|
|
|
|
2016-03-29 11:21:42 +05:30
|
|
|
<div class="clearfix">
|
|
|
|
<h4 style="float: left;">{{ _("Tasks") }}</h4>
|
2019-03-19 11:48:32 +05:30
|
|
|
<a class="btn btn-secondary btn-light btn-sm" style="float: right; position: relative; top: 10px;" href='/tasks?new=1&project={{ doc.project_name }}'>{{ _("New task") }}</a>
|
2016-03-29 11:21:42 +05:30
|
|
|
</div>
|
2016-03-23 18:28:50 +05:30
|
|
|
|
2016-03-25 17:19:28 +05:30
|
|
|
<p>
|
2016-07-05 12:12:39 +05:30
|
|
|
<!-- <a class='small underline task-status-switch' data-status='Open'>{{ _("Show closed") }}</a> -->
|
2016-03-25 17:19:28 +05:30
|
|
|
</p>
|
|
|
|
|
2016-03-23 18:28:50 +05:30
|
|
|
{% if doc.tasks %}
|
2016-03-25 17:19:28 +05:30
|
|
|
<div class='project-task-section'>
|
|
|
|
<div class='project-task'>
|
2016-03-16 18:01:22 +05:30
|
|
|
{% include "erpnext/templates/includes/projects/project_tasks.html" %}
|
|
|
|
</div>
|
2016-03-25 17:19:28 +05:30
|
|
|
<p><a id= 'more-task' style='display: none;' class='more-tasks small underline'>{{ _("More") }}</a><p>
|
2016-03-16 18:01:22 +05:30
|
|
|
</div>
|
|
|
|
{% else %}
|
2017-01-20 12:00:25 +02:00
|
|
|
<p class="text-muted">{{ _("No tasks") }}</p>
|
2016-03-16 18:01:22 +05:30
|
|
|
{% endif %}
|
|
|
|
|
2016-03-23 18:28:50 +05:30
|
|
|
|
|
|
|
<div class='padding'></div>
|
|
|
|
|
2016-07-05 12:12:39 +05:30
|
|
|
<h4>{{ _("Timesheets") }}</h4>
|
2016-03-23 18:28:50 +05:30
|
|
|
|
2016-07-05 12:12:39 +05:30
|
|
|
{% if doc.timesheets %}
|
2016-03-16 18:01:22 +05:30
|
|
|
<div class='project-timelogs'>
|
2016-07-05 12:12:39 +05:30
|
|
|
{% include "erpnext/templates/includes/projects/project_timesheets.html" %}
|
2016-03-16 18:01:22 +05:30
|
|
|
</div>
|
2016-07-05 12:12:39 +05:30
|
|
|
{% if doc.timesheets|length > 9 %}
|
2016-03-16 18:01:22 +05:30
|
|
|
<p><a class='more-timelogs small underline'>{{ _("More") }}</a><p>
|
|
|
|
{% endif %}
|
|
|
|
{% else %}
|
2017-01-20 12:00:25 +02:00
|
|
|
<p class="text-muted">{{ _("No time sheets") }}</p>
|
2016-03-16 18:01:22 +05:30
|
|
|
{% endif %}
|
2018-09-10 13:40:43 +02:00
|
|
|
|
|
|
|
{% if doc.attachments %}
|
|
|
|
<div class='padding'></div>
|
|
|
|
|
|
|
|
<h4>{{ _("Attachments") }}</h4>
|
|
|
|
<div class="project-attachments">
|
|
|
|
{% for attachment in doc.attachments %}
|
|
|
|
<div class="attachment">
|
|
|
|
<a class="no-decoration attachment-link" href="{{ attachment.file_url }}" target="blank">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-xs-9">
|
|
|
|
<span class="indicator red file-name"> {{ attachment.file_name }}</span>
|
|
|
|
</div>
|
|
|
|
<div class="col-xs-3">
|
|
|
|
<span class="pull-right file-size">{{ attachment.file_size }}</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
2016-03-16 18:01:22 +05:30
|
|
|
</div>
|
|
|
|
|
|
|
|
<script>
|
2018-09-10 13:40:43 +02:00
|
|
|
{% include "frappe/public/js/frappe/provide.js" %}
|
|
|
|
{% include "frappe/public/js/frappe/form/formatters.js" %}
|
2016-03-16 18:01:22 +05:30
|
|
|
</script>
|
|
|
|
|
2016-03-23 14:14:38 +05:30
|
|
|
{% endblock %}
|