From 35fabf76a63ff7e69f823bbc66fe4bf7d067384f Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Tue, 21 Feb 2012 19:03:50 +0530 Subject: [PATCH] updated module pages --- .../page/accounts_browser/accounts_browser.js | 4 +- .../page/accounts_home/accounts_home.html | 8 +- .../buying/page/buying_home/buying_home.html | 49 +++++++ .../buying/page/buying_home/buying_home.js | 3 + erpnext/hr/page/hr_home/hr_home.html | 123 ++++++++++++++++++ erpnext/hr/page/hr_home/hr_home.js | 3 + .../page/production_home/production_home.html | 58 +++++++++ .../page/production_home/production_home.js | 3 + .../page/projects_home/projects_home.html | 35 +++++ .../page/projects_home/projects_home.js | 3 + .../page/sales_browser/sales_browser.js | 4 +- .../page/selling_home/selling_home.html | 12 +- erpnext/startup/modules.js | 2 +- erpnext/stock/page/stock_home/stock_home.html | 20 ++- .../page/support_home/support_home.html | 41 ++++++ .../support/page/support_home/support_home.js | 3 + .../page/website_home/website_home.html | 52 ++++++++ .../website/page/website_home/website_home.js | 3 + 18 files changed, 416 insertions(+), 10 deletions(-) create mode 100644 erpnext/buying/page/buying_home/buying_home.html create mode 100644 erpnext/buying/page/buying_home/buying_home.js create mode 100644 erpnext/hr/page/hr_home/hr_home.html create mode 100644 erpnext/hr/page/hr_home/hr_home.js create mode 100644 erpnext/production/page/production_home/production_home.html create mode 100644 erpnext/production/page/production_home/production_home.js create mode 100644 erpnext/projects/page/projects_home/projects_home.html create mode 100644 erpnext/projects/page/projects_home/projects_home.js create mode 100644 erpnext/support/page/support_home/support_home.html create mode 100644 erpnext/support/page/support_home/support_home.js create mode 100644 erpnext/website/page/website_home/website_home.html create mode 100644 erpnext/website/page/website_home/website_home.js diff --git a/erpnext/accounts/page/accounts_browser/accounts_browser.js b/erpnext/accounts/page/accounts_browser/accounts_browser.js index 2f20a6175a3..863a9ec3532 100644 --- a/erpnext/accounts/page/accounts_browser/accounts_browser.js +++ b/erpnext/accounts/page/accounts_browser/accounts_browser.js @@ -1,7 +1,7 @@ -pscript['onload_Accounts Browser'] = function(){ +pscript['onshow_Accounts Browser'] = function(){ wn.require('lib/js/legacy/widgets/tree.js'); - var route = location.hash; + var route = decodeURIComponent(location.hash); if(route.indexOf('/')!=-1) { var chart_type = route.split('/')[1]; pscript.make_chart(chart_type); diff --git a/erpnext/accounts/page/accounts_home/accounts_home.html b/erpnext/accounts/page/accounts_home/accounts_home.html index e5c8a2e87df..27868e923bc 100644 --- a/erpnext/accounts/page/accounts_home/accounts_home.html +++ b/erpnext/accounts/page/accounts_home/accounts_home.html @@ -1,5 +1,6 @@ -
+
+ ×

Accounts


@@ -51,6 +52,11 @@ title="Lease Agreements" href="#!List/Lease Agreement">Lease Agreements
+
diff --git a/erpnext/buying/page/buying_home/buying_home.html b/erpnext/buying/page/buying_home/buying_home.html new file mode 100644 index 00000000000..52071097af3 --- /dev/null +++ b/erpnext/buying/page/buying_home/buying_home.html @@ -0,0 +1,49 @@ +
+
+ × +

Buying

+
+
+

Purchase Requisition

+

Request for purchase

+

Purchase Order

+

Purchase Orders given to Suppliers

+
+
+

Supplier

+

Supplier Master

+

Item

+

Item Master

+
+
+
+

Reports

+
+
+
+
+
+
Setup
+ +
+ +
+
+
+
\ No newline at end of file diff --git a/erpnext/buying/page/buying_home/buying_home.js b/erpnext/buying/page/buying_home/buying_home.js new file mode 100644 index 00000000000..f5a31cde803 --- /dev/null +++ b/erpnext/buying/page/buying_home/buying_home.js @@ -0,0 +1,3 @@ +pscript['onload_buying-home'] = function(wrapper) { + erpnext.module_page.setup_page('Buying', wrapper); +} \ No newline at end of file diff --git a/erpnext/hr/page/hr_home/hr_home.html b/erpnext/hr/page/hr_home/hr_home.html new file mode 100644 index 00000000000..7d1f27fc2a2 --- /dev/null +++ b/erpnext/hr/page/hr_home/hr_home.html @@ -0,0 +1,123 @@ +
+
+ × +

Human Resources

+
+
+

Attendance

+

Attendance Mark

+

Leave Application

+

Applications for leave

+

Expense Voucher

+

Claims for expenses

+

Salary Slip

+

Monthly salary statement

+

Appraisal

+

Performance appraisal

+
+
+

Employee

+

Employee Master

+
+
+
+

Reports

+
+
+
+
+
+
Leave and Attendance
+ +
+
+
Salary and Payroll
+ +
+
+
Employee Setup
+ +
+
+
+
+
\ No newline at end of file diff --git a/erpnext/hr/page/hr_home/hr_home.js b/erpnext/hr/page/hr_home/hr_home.js new file mode 100644 index 00000000000..fe0756b012e --- /dev/null +++ b/erpnext/hr/page/hr_home/hr_home.js @@ -0,0 +1,3 @@ +pscript['onload_hr-home'] = function(wrapper) { + erpnext.module_page.setup_page('HR', wrapper); +} \ No newline at end of file diff --git a/erpnext/production/page/production_home/production_home.html b/erpnext/production/page/production_home/production_home.html new file mode 100644 index 00000000000..13e24684c2a --- /dev/null +++ b/erpnext/production/page/production_home/production_home.html @@ -0,0 +1,58 @@ +
+
+ × +

Production

+
+
+

Production Order

+

Orders for manufacturing

+

Production Plan

+

Generate Purchase Requisition (MRP) and Production Orders

+
+
+

Bill of Materials

+

Bill of Materials (BOM) Master

+

Item

+

Item Master

+
+
+
+

Reports

+
+
+
+
+
+
Setup
+
+ +
+
+
+
Tools
+ +
+
+
+
+
\ No newline at end of file diff --git a/erpnext/production/page/production_home/production_home.js b/erpnext/production/page/production_home/production_home.js new file mode 100644 index 00000000000..ad687fe0ebe --- /dev/null +++ b/erpnext/production/page/production_home/production_home.js @@ -0,0 +1,3 @@ +pscript['onload_production-home'] = function(wrapper) { + erpnext.module_page.setup_page('Production', wrapper); +} \ No newline at end of file diff --git a/erpnext/projects/page/projects_home/projects_home.html b/erpnext/projects/page/projects_home/projects_home.html new file mode 100644 index 00000000000..5b364b94cee --- /dev/null +++ b/erpnext/projects/page/projects_home/projects_home.html @@ -0,0 +1,35 @@ +
+
+ × +

Projects

+
+
+

Project

+

Project master

+

Task

+

Project activity / task

+

Timesheet

+

Timesheet for tasks

+
+
+

Gantt Chart

+

Gantt chart of all tasks

+
+
+
+

Reports

+
+
+
+
+ +
+
+
+
\ No newline at end of file diff --git a/erpnext/projects/page/projects_home/projects_home.js b/erpnext/projects/page/projects_home/projects_home.js new file mode 100644 index 00000000000..f5e7f8d036a --- /dev/null +++ b/erpnext/projects/page/projects_home/projects_home.js @@ -0,0 +1,3 @@ +pscript['onload_projects-home'] = function(wrapper) { + erpnext.module_page.setup_page('Projects', wrapper); +} \ No newline at end of file diff --git a/erpnext/selling/page/sales_browser/sales_browser.js b/erpnext/selling/page/sales_browser/sales_browser.js index b7fc422e9b9..1937fa6afd5 100644 --- a/erpnext/selling/page/sales_browser/sales_browser.js +++ b/erpnext/selling/page/sales_browser/sales_browser.js @@ -1,7 +1,7 @@ -pscript['onload_Sales Browser'] = function(){ +pscript['onshow_Sales Browser'] = function(){ wn.require('lib/js/legacy/widgets/tree.js'); - var route = location.hash; + var route = decodeURIComponent(location.hash); if(route.indexOf('/')!=-1) { var chart_type = route.split('/')[1]; new SalesBrowser().set_val(chart_type) diff --git a/erpnext/selling/page/selling_home/selling_home.html b/erpnext/selling/page/selling_home/selling_home.html index 2d421b5b6ba..adf4a2b638b 100644 --- a/erpnext/selling/page/selling_home/selling_home.html +++ b/erpnext/selling/page/selling_home/selling_home.html @@ -1,5 +1,6 @@ -
+
+ ×

Selling


@@ -74,7 +75,14 @@
Tools
diff --git a/erpnext/startup/modules.js b/erpnext/startup/modules.js index 35de0e8e706..429920fd630 100644 --- a/erpnext/startup/modules.js +++ b/erpnext/startup/modules.js @@ -3,7 +3,7 @@ wn.provide('erpnext.module_page'); erpnext.module_page.setup_page = function(module, wrapper) { erpnext.module_page.hide_links(wrapper); erpnext.module_page.make_list(module, wrapper); - $(wrapper).find("a").tooltip({ + $(wrapper).find("a[title]").tooltip({ delay: { show: 500, hide: 100 } }); } diff --git a/erpnext/stock/page/stock_home/stock_home.html b/erpnext/stock/page/stock_home/stock_home.html index e1f7817217b..9ba21a43dd1 100644 --- a/erpnext/stock/page/stock_home/stock_home.html +++ b/erpnext/stock/page/stock_home/stock_home.html @@ -1,9 +1,10 @@ -
+
+ ×

Stock


-

Stock Entry

+

Stock Entry

Transfer stock from one warehouse to another

Delivery Note

Delivery (shipment) to customers

@@ -40,6 +41,11 @@ title = "Details of item installations" href="#!List/Installation Note">Installation Note
+ + +
diff --git a/erpnext/support/page/support_home/support_home.html b/erpnext/support/page/support_home/support_home.html new file mode 100644 index 00000000000..9558b1a3b91 --- /dev/null +++ b/erpnext/support/page/support_home/support_home.html @@ -0,0 +1,41 @@ +
+
+ × +

Support

+
+
+

Support Ticket

+

Support queries from customers via email or website

+

Customer Issue

+

Customer Issue against a Serial No (warranty)

+

Maintenance Schedule

+

Plan for scheduled maintenance contracts

+

Maintenance Visit

+

Visit report for maintenance visit

+
+
+

Serial No

+

Single unit of an Item

+
+
+
+

Reports

+
+
+
+
+
+
Tools
+
+ +
+
+
+ +
+
+
\ No newline at end of file diff --git a/erpnext/support/page/support_home/support_home.js b/erpnext/support/page/support_home/support_home.js new file mode 100644 index 00000000000..2ea23151527 --- /dev/null +++ b/erpnext/support/page/support_home/support_home.js @@ -0,0 +1,3 @@ +pscript['onload_support-home'] = function(wrapper) { + erpnext.module_page.setup_page('Support', wrapper); +} \ No newline at end of file diff --git a/erpnext/website/page/website_home/website_home.html b/erpnext/website/page/website_home/website_home.html new file mode 100644 index 00000000000..747ca5aa031 --- /dev/null +++ b/erpnext/website/page/website_home/website_home.html @@ -0,0 +1,52 @@ +
+
+ × +

Support

+
+
+

Web Page

+

Static (content) web page

+

Product

+

Product listed in catolog

+

Blog

+

Weblog (blog) entry

+
+
+

Website Settings

+

Setup of top navigation bar, footer and logo

+
+
+

Style Settings

+

Setup of fonts and background

+
+
+

Products Settings

+

Setup product categories

+
+
+
+

Reports

+
+
+
+
+
+
Tools
+ +
+
+ +
+
+
\ No newline at end of file diff --git a/erpnext/website/page/website_home/website_home.js b/erpnext/website/page/website_home/website_home.js new file mode 100644 index 00000000000..df0afd3483f --- /dev/null +++ b/erpnext/website/page/website_home/website_home.js @@ -0,0 +1,3 @@ +pscript['onload_website-home'] = function(wrapper) { + erpnext.module_page.setup_page('Website', wrapper); +} \ No newline at end of file