mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-01 20:48:27 +00:00
moved directory structure
This commit is contained in:
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'
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user