mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-03 13:38:27 +00:00
moved directory structure
This commit is contained in:
1
projects/page/__init__.py
Normal file
1
projects/page/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
from __future__ import unicode_literals
|
||||
1
projects/page/projects/__init__.py
Normal file
1
projects/page/projects/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
from __future__ import unicode_literals
|
||||
6
projects/page/projects/projects.css
Normal file
6
projects/page/projects/projects.css
Normal file
@@ -0,0 +1,6 @@
|
||||
.gantt {
|
||||
-moz-box-sizing: border-box;
|
||||
border: 14px solid #DDDDDD;
|
||||
border-radius: 6px 6px 6px 6px;
|
||||
margin: 20px auto;
|
||||
}
|
||||
0
projects/page/projects/projects.html
Normal file
0
projects/page/projects/projects.html
Normal file
24
projects/page/projects/projects.js
Normal file
24
projects/page/projects/projects.js
Normal file
@@ -0,0 +1,24 @@
|
||||
// ERPNext - web based ERP (http://erpnext.com)
|
||||
// Copyright (C) 2012 Web Notes Technologies Pvt Ltd
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
pscript.onload_Projects = function(wrapper) {
|
||||
wn.ui.make_app_page({parent:wrapper, title:'Gantt Chart: All Tasks', single_column:true});
|
||||
if(!erpnext.show_task_gantt)
|
||||
wn.require('app/js/gantt_task.js');
|
||||
|
||||
var gantt_area = $('<div>').appendTo($(wrapper).find('.layout-main'));
|
||||
erpnext.show_task_gantt(gantt_area);
|
||||
}
|
||||
29
projects/page/projects/projects.py
Normal file
29
projects/page/projects/projects.py
Normal file
@@ -0,0 +1,29 @@
|
||||
# ERPNext - web based ERP (http://erpnext.com)
|
||||
# Copyright (C) 2012 Web Notes Technologies Pvt Ltd
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
from __future__ import unicode_literals
|
||||
import webnotes
|
||||
|
||||
@webnotes.whitelist()
|
||||
def get_tasks():
|
||||
cond = ''
|
||||
if webnotes.form_dict.get('project'):
|
||||
cond = ' and project="%s"' % webnotes.form_dict.get('project')
|
||||
return webnotes.conn.sql("""select name, project, subject, exp_start_date, exp_end_date,
|
||||
description, status from tabTask where
|
||||
project is not null
|
||||
and exp_start_date is not null
|
||||
and exp_end_date is not null %s""" % cond, as_dict=True)
|
||||
27
projects/page/projects/projects.txt
Normal file
27
projects/page/projects/projects.txt
Normal file
@@ -0,0 +1,27 @@
|
||||
# Page, Projects
|
||||
[
|
||||
|
||||
# These values are common in all dictionaries
|
||||
{
|
||||
'creation': '2010-12-14 10:23:31',
|
||||
'docstatus': 0,
|
||||
'modified': '2010-12-30 14:43:47',
|
||||
'modified_by': 'Administrator',
|
||||
'owner': 'Administrator'
|
||||
},
|
||||
|
||||
# These values are common for all Page
|
||||
{
|
||||
'doctype': 'Page',
|
||||
'module': 'Projects',
|
||||
'name': '__common__',
|
||||
'page_name': 'Projects',
|
||||
'standard': 'Yes'
|
||||
},
|
||||
|
||||
# Page, Projects
|
||||
{
|
||||
'doctype': 'Page',
|
||||
'name': 'Projects'
|
||||
}
|
||||
]
|
||||
1
projects/page/projects_home/__init__.py
Normal file
1
projects/page/projects_home/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
from __future__ import unicode_literals
|
||||
38
projects/page/projects_home/projects_home.html
Normal file
38
projects/page/projects_home/projects_home.html
Normal file
@@ -0,0 +1,38 @@
|
||||
<div class="layout-wrapper layout-wrapper-background">
|
||||
<div class="appframe-area"></div>
|
||||
<div class="layout-main-section">
|
||||
<div style="width: 48%; float: left;">
|
||||
<h4><a href="#!List/Task">Task</a></h4>
|
||||
<p class="help">Project activity / task</p>
|
||||
<br>
|
||||
<h4><a href="#!List/Project">Project</a></h4>
|
||||
<p class="help">Project master</p>
|
||||
<br>
|
||||
<h4><a href="#!List/Timesheet">Timesheet</a></h4>
|
||||
<p class="help">Timesheet for tasks</p>
|
||||
</div>
|
||||
<div style="width: 48%; float: right;">
|
||||
<h4><a href="#!Projects">Gantt Chart</a></h4>
|
||||
<p class="help">Gantt chart of all tasks</p>
|
||||
</div>
|
||||
<div style="clear: both"></div>
|
||||
<hr>
|
||||
<h3>Reports</h3>
|
||||
<div class="reports-list"></div>
|
||||
</div>
|
||||
<div class="layout-side-section">
|
||||
<div class="psidebar">
|
||||
<div class="section">
|
||||
<div class="section-head">Setup</div>
|
||||
<div class="section-body">
|
||||
<div class="section-item">
|
||||
<a class="section-link"
|
||||
title = "Types of activities for Time Sheets"
|
||||
href="#!List/Activity Type">Activity Type</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div style="clear: both;"></div>
|
||||
</div>
|
||||
20
projects/page/projects_home/projects_home.js
Normal file
20
projects/page/projects_home/projects_home.js
Normal file
@@ -0,0 +1,20 @@
|
||||
// ERPNext - web based ERP (http://erpnext.com)
|
||||
// Copyright (C) 2012 Web Notes Technologies Pvt Ltd
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
pscript['onload_projects-home'] = function(wrapper) {
|
||||
wrapper.appframe = new wn.ui.AppFrame($(wrapper).find('.appframe-area'), 'Projects');
|
||||
erpnext.module_page.setup_page('Projects', wrapper);
|
||||
}
|
||||
28
projects/page/projects_home/projects_home.txt
Normal file
28
projects/page/projects_home/projects_home.txt
Normal file
@@ -0,0 +1,28 @@
|
||||
# Page, projects-home
|
||||
[
|
||||
|
||||
# These values are common in all dictionaries
|
||||
{
|
||||
'creation': '2012-02-21 13:24:22',
|
||||
'docstatus': 0,
|
||||
'modified': '2012-02-21 13:24:22',
|
||||
'modified_by': u'Administrator',
|
||||
'owner': u'Administrator'
|
||||
},
|
||||
|
||||
# These values are common for all Page
|
||||
{
|
||||
'doctype': 'Page',
|
||||
'module': u'Projects',
|
||||
'name': '__common__',
|
||||
'page_name': u'projects-home',
|
||||
'standard': u'Yes',
|
||||
'title': u'Projects Home'
|
||||
},
|
||||
|
||||
# Page, projects-home
|
||||
{
|
||||
'doctype': 'Page',
|
||||
'name': u'projects-home'
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user