updated module pages
diff --git a/erpnext/accounts/page/accounts_browser/accounts_browser.js b/erpnext/accounts/page/accounts_browser/accounts_browser.js
index 2f20a61..863a9ec 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 e5c8a2e..27868e9 100644
--- a/erpnext/accounts/page/accounts_home/accounts_home.html
+++ b/erpnext/accounts/page/accounts_home/accounts_home.html
@@ -1,5 +1,6 @@
-<div class="layout-wrapper layout-wrapper-background" id="page-selling-home">
+<div class="layout-wrapper layout-wrapper-background">
<div class="layout-main-section">
+ <a class="close" onclick="window.history.back();">×</a>
<h1>Accounts</h1>
<hr>
<div style="width: 48%; float: left;">
@@ -51,6 +52,11 @@
title="Lease Agreements"
href="#!List/Lease Agreement">Lease Agreements</a>
</div>
+ <div class="section-item">
+ <a class="section-link"
+ title = "Helper for managing return of goods (sales or purchase)"
+ href="#!Form/Sales and Purchase Return Wizard/Sales and Purchase Return Wizard">Sales or Purchase Returns</a>
+ </div>
</div>
</div>
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 0000000..5207109
--- /dev/null
+++ b/erpnext/buying/page/buying_home/buying_home.html
@@ -0,0 +1,49 @@
+<div class="layout-wrapper layout-wrapper-background">
+ <div class="layout-main-section">
+ <a class="close" onclick="window.history.back();">×</a>
+ <h1>Buying</h1>
+ <hr>
+ <div style="width: 48%; float: left;">
+ <h4><a href="#!List/Purchase Requisition">Purchase Requisition</a></h4>
+ <p class="help">Request for purchase</p>
+ <h4><a href="#!List/Purchase Order">Purchase Order</a></h4>
+ <p class="help">Purchase Orders given to Suppliers</p>
+ </div>
+ <div style="width: 48%; float: right;">
+ <h4><a href="#!List/Supplier">Supplier</a></h4>
+ <p class="help">Supplier Master</p>
+ <h4><a href="#!List/Item">Item</a></h4>
+ <p class="help">Item Master</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 = "Tax and charges structure master"
+ href="#!List/Purchase Other Charges">Purchase Other Charges</a>
+ </div>
+ <div class="section-item">
+ <a class="section-link"
+ title = "Supplier classification"
+ href="#!List/Supplier Type">Supplier Type</a>
+ </div>
+ <div class="section-item">
+ <a class="section-link"
+ title = "Helper for managing return of goods (sales or purchase)"
+ href="#!Form/Sales and Purchase Return Wizard/Sales and Purchase Return Wizard">Purchase Returns</a>
+ </div>
+ </div>
+ </div>
+
+ </div>
+ </div>
+ <div style="clear: both;"></div>
+</div>
\ 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 0000000..f5a31cd
--- /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 0000000..7d1f27f
--- /dev/null
+++ b/erpnext/hr/page/hr_home/hr_home.html
@@ -0,0 +1,123 @@
+<div class="layout-wrapper layout-wrapper-background">
+ <div class="layout-main-section">
+ <a class="close" onclick="window.history.back();">×</a>
+ <h1>Human Resources</h1>
+ <hr>
+ <div style="width: 48%; float: left;">
+ <h4><a href="#!List/Attendance">Attendance</a></h4>
+ <p class="help">Attendance Mark</p>
+ <h4><a href="#!List/Leave Application">Leave Application</a></h4>
+ <p class="help">Applications for leave</p>
+ <h4><a href="#!List/Expense Voucher">Expense Voucher</a></h4>
+ <p class="help">Claims for expenses</p>
+ <h4><a href="#!List/Salary Slip">Salary Slip</a></h4>
+ <p class="help">Monthly salary statement</p>
+ <h4><a href="#!List/Appraisal">Appraisal</a></h4>
+ <p class="help">Performance appraisal</p>
+ </div>
+ <div style="width: 48%; float: right;">
+ <h4><a href="#!List/Employee">Employee</a></h4>
+ <p class="help">Employee Master</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">Leave and Attendance</div>
+ <div class="section-body">
+ <div class="section-item">
+ <a class="section-link"
+ title = "Upload and update attendance from a spreadsheet file (csv)"
+ href="#!Form/Attendance Control Panel/Attendance Control Panel">Upload attendance</a>
+ </div>
+ <div class="section-item">
+ <a class="section-link"
+ title = "Leave allocation helper"
+ href="#!Form/Leave Control Panel/Leave Control Panel">Allocate Leaves</a>
+ </div>
+ <div class="section-item">
+ <a class="section-link"
+ title = "Allocate leaves"
+ href="#!List/Leave Allocation">Leave Allocation</a>
+ </div>
+
+ <div class="section-item">
+ <a class="section-link"
+ title = "Type of leaves like casual, sick etc."
+ href="#!List/Leave Type">Leave Type</a>
+ </div>
+ <div class="section-item">
+ <a class="section-link"
+ title = "List of holidays"
+ href="#!List/Leave Allocation">Holiday List</a>
+ </div>
+ </div>
+ </div>
+ <div class="section">
+ <div class="section-head">Salary and Payroll</div>
+ <div class="section-body">
+ <div class="section-item">
+ <a class="section-link"
+ title = "Monthly salary template with earnings and deductions"
+ href="#!List/Salary Structure">Salary Structure</a>
+ </div>
+ <div class="section-item">
+ <a class="section-link"
+ title = "Generate Salary Slips"
+ href="#!Form/Salary Manager/Salary Manager">Process Payroll</a>
+ </div>
+ <div class="section-item">
+ <a class="section-link"
+ title = "Benefit types like basic salary, allowances etc."
+ href="#!List/Earning Type">Earning Type</a>
+ </div>
+ <div class="section-item">
+ <a class="section-link"
+ title = "tax and other salary deductions"
+ href="#!List/Deduction Type">Deduction Type</a>
+ </div>
+ </div>
+ </div>
+ <div class="section">
+ <div class="section-head">Employee Setup</div>
+ <div class="section-body">
+ <div class="section-item">
+ <a class="section-link"
+ title = "Type of employment master"
+ href="#!List/Employment Type">Employment Type</a>
+ </div>
+ <div class="section-item">
+ <a class="section-link"
+ title = "Template for employee performance appraisals"
+ href="#!List/KRA Template">Key Performance Area (KRA) Template</a>
+ </div>
+ <div class="section-item">
+ <a class="section-link"
+ title = "Company branches (for employee records)"
+ href="#!List/Branch">Branch</a>
+ </div>
+ <div class="section-item">
+ <a class="section-link"
+ title = "Company departments"
+ href="#!List/Department">Department</a>
+ </div>
+ <div class="section-item">
+ <a class="section-link"
+ title = "Company departments"
+ href="#!List/Designation">Designation</a>
+ </div>
+ <div class="section-item">
+ <a class="section-link"
+ title = "Employee grades"
+ href="#!List/Grade">Grade</a>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ <div style="clear: both;"></div>
+</div>
\ 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 0000000..fe0756b
--- /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 0000000..13e2468
--- /dev/null
+++ b/erpnext/production/page/production_home/production_home.html
@@ -0,0 +1,58 @@
+<div class="layout-wrapper layout-wrapper-background">
+ <div class="layout-main-section">
+ <a class="close" onclick="window.history.back();">×</a>
+ <h1>Production</h1>
+ <hr>
+ <div style="width: 48%; float: left;">
+ <h4><a href="#!List/Production Order">Production Order</a></h4>
+ <p class="help">Orders for manufacturing</p>
+ <h4><a href="#!Form/Production Planning Tool/Production Planning Tool">Production Plan</a></h4>
+ <p class="help">Generate Purchase Requisition (MRP) and Production Orders</p>
+ </div>
+ <div style="width: 48%; float: right;">
+ <h4><a href="#!List/Bill Of Materials">Bill of Materials</a></h4>
+ <p class="help">Bill of Materials (BOM) Master</p>
+ <h4><a href="#!List/Item">Item</a></h4>
+ <p class="help">Item Master</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 = "Workstation master"
+ href="#!List/Workstation">Workstations</a>
+ </div>
+ </div>
+ </div>
+ <div class="section">
+ <div class="section-head">Tools</div>
+ <div class="section-body">
+ <div class="section-item">
+ <a class="section-link"
+ title = "browse bill of materials in a tree"
+ href="#!Bill of Materials">BOM Browser</a>
+ </div>
+ <div class="section-item">
+ <a class="section-link"
+ title = "Replace item/sub-assembly from a sub-assembly from all BOMs"
+ href="#!Form/BOM Replace Utility/BOM Replace Utility">BOM Replace Item</a>
+ </div>
+ <div class="section-item">
+ <a class="section-link"
+ title = "Update delivery dates in all Sales Orders"
+ href="#!Form/Update Delivery Date/Update Delivery Date">Update Delivery Dates</a>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ <div style="clear: both;"></div>
+</div>
\ 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 0000000..ad687fe
--- /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 0000000..5b364b9
--- /dev/null
+++ b/erpnext/projects/page/projects_home/projects_home.html
@@ -0,0 +1,35 @@
+<div class="layout-wrapper layout-wrapper-background">
+ <div class="layout-main-section">
+ <a class="close" onclick="window.history.back();">×</a>
+ <h1>Projects</h1>
+ <hr>
+ <div style="width: 48%; float: left;">
+ <h4><a href="#!List/Project">Project</a></h4>
+ <p class="help">Project master</p>
+ <h4><a href="#!List/Task">Task</a></h4>
+ <p class="help">Project activity / task</p>
+ <h4><a href="#!List/Task">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"></div>
+ <div class="section-body">
+ <div class="section-item">
+ </div>
+ </div>
+ </div>-->
+ </div>
+ </div>
+ <div style="clear: both;"></div>
+</div>
\ 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 0000000..f5e7f8d
--- /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 b7fc422..1937fa6 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 2d421b5..adf4a2b 100644
--- a/erpnext/selling/page/selling_home/selling_home.html
+++ b/erpnext/selling/page/selling_home/selling_home.html
@@ -1,5 +1,6 @@
-<div class="layout-wrapper layout-wrapper-background" id="page-selling-home">
+<div class="layout-wrapper layout-wrapper-background">
<div class="layout-main-section">
+ <a class="close" onclick="window.history.back();">×</a>
<h1>Selling</h1>
<hr>
<div style="width: 48%; float: left;">
@@ -74,7 +75,14 @@
<div class="section-head">Tools</div>
<div class="section-body">
<div class="section-item">
- <a class="section-link" href="#!Sales Dashboard">Sales Dashboard</a>
+ <a class="section-link"
+ title = "sales trends"
+ href="#!Sales Dashboard">Sales Dashboard</a>
+ </div>
+ <div class="section-item">
+ <a class="section-link"
+ title = "Helper for managing return of goods (sales or purchase)"
+ href="#!Form/Sales and Purchase Return Wizard/Sales and Purchase Return Wizard">Sales Returns</a>
</div>
</div>
</div>
diff --git a/erpnext/startup/modules.js b/erpnext/startup/modules.js
index 35de0e8..429920f 100644
--- a/erpnext/startup/modules.js
+++ b/erpnext/startup/modules.js
@@ -3,7 +3,7 @@
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 e1f7817..9ba21a4 100644
--- a/erpnext/stock/page/stock_home/stock_home.html
+++ b/erpnext/stock/page/stock_home/stock_home.html
@@ -1,9 +1,10 @@
-<div class="layout-wrapper layout-wrapper-background" id="page-selling-home">
+<div class="layout-wrapper layout-wrapper-background">
<div class="layout-main-section">
+ <a class="close" onclick="window.history.back();">×</a>
<h1>Stock</h1>
<hr>
<div style="width: 48%; float: left;">
- <h4><a href="#!List/Stock Entry">Stock Entry</a></h4>
+ <h4><a ahref="#!List/Stock Entry">Stock Entry</a></h4>
<p class="help">Transfer stock from one warehouse to another</p>
<h4><a href="#!List/Delivery Note">Delivery Note</a></h4>
<p class="help">Delivery (shipment) to customers</p>
@@ -42,6 +43,11 @@
</div>
<div class="section-item">
<a class="section-link"
+ title = "Details packages against a delivery"
+ href="#!List/Packing Slip">Packing Slip</a>
+ </div>
+ <div class="section-item">
+ <a class="section-link"
title = "Readings of incoming quality inspections"
href="#!List/List/QA Inspection Report">Incoming Inspection</a>
</div>
@@ -55,6 +61,16 @@
title = "Distribute costs on Purchase Receipts and add them to item value"
href="#!List/Landed Cost Wizard">Landed Cost Wizard</a>
</div>
+ <div class="section-item">
+ <a class="section-link"
+ title = "Change Unit of Measure (UOM) of an item"
+ href="#!Form/Stock UOM Replace Utility/Stock UOM Replace Utility">UOM Replace Utility</a>
+ </div>
+ <div class="section-item">
+ <a class="section-link"
+ title = "Helper for managing return of goods (sales or purchase)"
+ href="#!Form/Sales and Purchase Return Wizard/Sales and Purchase Return Wizard">Sales or Purchase Returns</a>
+ </div>
</div>
</div>
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 0000000..9558b1a
--- /dev/null
+++ b/erpnext/support/page/support_home/support_home.html
@@ -0,0 +1,41 @@
+<div class="layout-wrapper layout-wrapper-background">
+ <div class="layout-main-section">
+ <a class="close" onclick="window.history.back();">×</a>
+ <h1>Support</h1>
+ <hr>
+ <div style="width: 48%; float: left;">
+ <h4><a ahref="#!List/Support Ticket">Support Ticket</a></h4>
+ <p class="help">Support queries from customers via email or website</p>
+ <h4><a href="#!List/Customer Issue">Customer Issue</a></h4>
+ <p class="help">Customer Issue against a Serial No (warranty)</p>
+ <h4><a href="#!List/Maintenance Schedule">Maintenance Schedule</a></h4>
+ <p class="help">Plan for scheduled maintenance contracts</p>
+ <h4><a href="#!List/Maintenance Visit">Maintenance Visit</a></h4>
+ <p class="help">Visit report for maintenance visit</p>
+ </div>
+ <div style="width: 48%; float: right;">
+ <h4><a href="#!List/Serial No">Serial No</a></h4>
+ <p class="help">Single unit of an Item</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">Tools</div>
+ <div class="section-body">
+ <div class="section-item">
+ <a class="section-link"
+ title = "Pull support issue from support email account"
+ href="#!Form/Email Settings/Email Settings">Email Settings</a>
+ </div>
+ </div>
+ </div>
+ </div>
+
+ </div>
+ <div style="clear: both;"></div>
+</div>
\ 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 0000000..2ea2315
--- /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 0000000..747ca5a
--- /dev/null
+++ b/erpnext/website/page/website_home/website_home.html
@@ -0,0 +1,52 @@
+<div class="layout-wrapper layout-wrapper-background">
+ <div class="layout-main-section">
+ <a class="close" onclick="window.history.back();">×</a>
+ <h1>Support</h1>
+ <hr>
+ <div style="width: 48%; float: left;">
+ <h4><a ahref="#!List/Web Page">Web Page</a></h4>
+ <p class="help">Static (content) web page</p>
+ <h4><a href="#!List/Product">Product</a></h4>
+ <p class="help">Product listed in catolog</p>
+ <h4><a href="#!List/Blog">Blog</a></h4>
+ <p class="help">Weblog (blog) entry</p>
+ </div>
+ <div style="width: 48%; float: right;">
+ <h4><a href="#!Form/Website Settings/Website Settings">Website Settings</a></h4>
+ <p class="help">Setup of top navigation bar, footer and logo</p>
+ </div>
+ <div style="width: 48%; float: right;">
+ <h4><a href="#!Form/Style Settings/Style Settings">Style Settings</a></h4>
+ <p class="help">Setup of fonts and background</p>
+ </div>
+ <div style="width: 48%; float: right;">
+ <h4><a href="#!Form/Products Settings/Products Settings">Products Settings</a></h4>
+ <p class="help">Setup product categories</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">Tools</div>
+ <div class="section-body">
+ <div class="section-item">
+ <a class="section-link"
+ title = "About Us page"
+ href="#!Form/About Us Settings/About Us Settings">About Us Settings</a>
+ </div>
+ <div class="section-item">
+ <a class="section-link"
+ title = "Contact Us page"
+ href="#!Form/Contact Us Settings/Contact Us Settings">Contact Us Settings</a>
+ </div>
+ </div>
+ </div>
+ </div>
+
+ </div>
+ <div style="clear: both;"></div>
+</div>
\ 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 0000000..df0afd3
--- /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