From ce1d5276ffd7ce2b15cddf1bcba247f3c5ff2abf Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Wed, 9 Jan 2013 16:39:27 +0530 Subject: [PATCH] added moduleview --- .../page/accounts_home/accounts_home.html | 142 ----------- accounts/page/accounts_home/accounts_home.js | 193 +++++++++++++-- buying/page/buying_home/buying_home.html | 90 ------- buying/page/buying_home/buying_home.js | 122 ++++++++-- .../supplier_quotations.txt | 19 -- home/page/desktop/desktop.css | 1 - hr/page/hr_home/hr_home.html | 135 ----------- hr/page/hr_home/hr_home.js | 161 +++++++++++-- .../manufacturing_home.html | 48 ---- .../manufacturing_home/manufacturing_home.js | 79 +++++-- .../locale/_messages_doc.json | 10 - .../bom_replace_tool/locale/hi-doc.json | 10 - .../page/projects_home/projects_home.html | 38 --- projects/page/projects_home/projects_home.js | 66 ++++-- public/js/modules.js | 2 + selling/page/sales_browser/sales_browser.py | 2 +- selling/page/selling_home/selling_home.html | 136 ----------- selling/page/selling_home/selling_home.js | 181 ++++++++++++-- startup/event_handlers.py | 18 +- startup/observers.py | 1 + startup/open_count.py | 26 +++ stock/page/stock_home/stock_home.html | 143 ------------ stock/page/stock_home/stock_home.js | 220 ++++++++++++++++-- support/page/support_home/support_home.html | 58 ----- support/page/support_home/support_home.js | 95 ++++++-- .../doctype/style_settings/style_settings.txt | 61 +++-- website/page/website_home/website_home.html | 47 ---- website/page/website_home/website_home.js | 99 ++++++-- 28 files changed, 1117 insertions(+), 1086 deletions(-) delete mode 100644 accounts/page/accounts_home/accounts_home.html delete mode 100644 buying/page/buying_home/buying_home.html delete mode 100644 buying/report/supplier_quotations/supplier_quotations.txt delete mode 100644 hr/page/hr_home/hr_home.html delete mode 100644 manufacturing/page/manufacturing_home/manufacturing_home.html delete mode 100644 production/doctype/bom_replace_tool/locale/_messages_doc.json delete mode 100644 production/doctype/bom_replace_tool/locale/hi-doc.json delete mode 100644 projects/page/projects_home/projects_home.html delete mode 100644 selling/page/selling_home/selling_home.html create mode 100644 startup/open_count.py delete mode 100644 stock/page/stock_home/stock_home.html delete mode 100644 support/page/support_home/support_home.html delete mode 100644 website/page/website_home/website_home.html diff --git a/accounts/page/accounts_home/accounts_home.html b/accounts/page/accounts_home/accounts_home.html deleted file mode 100644 index 498b214587..0000000000 --- a/accounts/page/accounts_home/accounts_home.html +++ /dev/null @@ -1,142 +0,0 @@ -
-
-
-
-
Journal Voucher
-

General Ledger Entries

-
-
Sales Invoice
-

Bills raised to Customers

-
-
Purchase Invoice
-

Bills raised by Suppliers

-
-
-
Chart of Accounts
-

Structure of books of accounts

-
-
Chart of Cost Centers
-

Structure cost centers

-
-
-
-

Reports

-
-
- General Ledger -
-

General Ledger Report

-
-
Trial Balance -
-

Tree view of all Account balances

-
-
-
- Financial Analytics -
-

Visual representation of financial trends

-
-
-
-
-
- -
-
diff --git a/accounts/page/accounts_home/accounts_home.js b/accounts/page/accounts_home/accounts_home.js index 3815578d34..d207fafa62 100644 --- a/accounts/page/accounts_home/accounts_home.js +++ b/accounts/page/accounts_home/accounts_home.js @@ -1,25 +1,172 @@ -// 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 . +// ERPNext: Copyright 2013 Web Notes Technologies Pvt Ltd +// GNU General Public License. See "license.txt" + +wn.module_page["Accounts"] = [ + { + title: wn._("Documents"), + icon: "icon-copy", + items: [ + { + label: wn._("Journal Voucher"), + description: wn._("Accounting journal entries."), + doctype:"Journal Voucher" + }, + { + label: wn._("Sales Invoice"), + description: wn._("Bills raised to Customers."), + doctype:"Sales Invoice" + }, + { + label: wn._("Purchase Invoice"), + description: wn._("Bills raised by Suppliers."), + doctype:"Purchase Invoice" + }, + ] + }, + { + title: wn._("Masters"), + icon: "icon-book", + items: [ + { + label: wn._("Chart of Accounts"), + route: "Accounts Browser/Account", + description: wn._("Structure of books of accounts."), + doctype:"Account" + }, + { + label: wn._("Chart of Cost Centers"), + route: "Accounts Browser/Cost Center", + description: wn._("Structure cost centers for budgeting."), + doctype:"Cost Center" + }, + ] + }, + { + title: wn._("Tools"), + icon: "icon-wrench", + items: [ + { + "route":"#Form/Bank Reconciliation/Bank Reconciliation", + "label": wn._("Bank Reconciliation"), + "description": wn._("Update bank payment dates with journals."), + doctype: "Bank Reconciliation" + }, + { + "route":"#Form/Payment to Invoice Matching Tool/Payment to Invoice Matching Tool", + "label": wn._("Payment Reconciliation"), + "description": wn._("Match non-linked Invoices and Payments."), + doctype: "Payment to Invoice Matching Tool" + + }, + { + "label": wn._("Period Closing Voucher"), + "doctype": "Period Closing Voucher", + description: "Close Balance Sheet and book Profit or Loss." + }, + { + "route":"#Form/Sales and Purchase Return Tool/Sales and Purchase Return Tool", + "label": wn._("Sales and Purchase Return Tool"), + description: wn._("Manage sales or purchase returns"), + "doctype": "Sales and Purchase Return Tool" + }, + { + "page":"voucher-import-tool", + "label": wn._("Voucher Import Tool"), + "description": "Import accounting entries from CSV." + }, + ] + }, + { + title: wn._("Setup"), + icon: "icon-cog", + items: [ + { + "label": wn._("Sales Taxes and Charges Master"), + "doctype":"Sales Taxes and Charges Master", + "description": wn._("Tax Template for Sales") + }, + { + "label": wn._("Purchase Taxes and Charges Master"), + "doctype":"Purchase Taxes and Charges Master", + "description": wn._("Tax Template for Purchase") + }, + { + "label": wn._("Point-of-Sale Setting"), + "doctype":"POS Setting", + "description": "User settings for Point-of-sale (POS)" + }, + { + "doctype":"Budget Distribution", + "label": wn._("Budget Distribution"), + "description": wn._("Seasonality for setting budgets.") + }, + { + "doctype":"Terms and Conditions", + "label": wn._("Terms and Conditions Template"), + description: wn._("Template of terms or contract.") + }, + { + "doctype":"Mode of Payment", + "label": wn._("Mode of Payment"), + description: wn._("e.g. Bank, Cash, Credit Card") + }, + { + "doctype":"C-Form", + "label": wn._("C-Form"), + description: "C-Form records", + country: "India" + } + ] + }, + { + title: wn._("Main Reports"), + right: true, + icon: "icon-table", + items: [ + { + "label":wn._("General Ledger"), + page: "general-ledger" + }, + { + "label":wn._("Trial Balance"), + page: "trial-balance" + }, + { + "page":"Financial Statements", + "label": wn._("Financial Statements") + }, + ] + }, + { + title: wn._("Analytics"), + right: true, + icon: "icon-bar-chart", + items: [ + { + "label":wn._("Financial Analytics"), + page: "financial-analytics" + }, + ] + }, + { + title: wn._("Reports"), + right: true, + icon: "icon-list", + items: [ + { + "label":wn._("Delivered Items To Be Billed"), + route: "query-report/Delivered Items To Be Billed", + doctype: "Sales Invoice" + }, + { + "label":wn._("Ordered Items To Be Billed"), + route: "query-report/Ordered Items To Be Billed", + doctype: "Sales Invoice" + }, + ] + } +] pscript['onload_accounts-home'] = function(wrapper) { - wrapper.appframe = new wn.ui.AppFrame($(wrapper).find('.appframe-area'), 'Accounts'); - erpnext.module_page.setup_page('Accounts', wrapper); - - if(wn.control_panel.country!='India') { - $('.india-specific').toggle(false); - } - -} + wn.views.moduleview.make(wrapper, "Accounts"); +} \ No newline at end of file diff --git a/buying/page/buying_home/buying_home.html b/buying/page/buying_home/buying_home.html deleted file mode 100644 index 785abd5ac8..0000000000 --- a/buying/page/buying_home/buying_home.html +++ /dev/null @@ -1,90 +0,0 @@ -
-
-
-
-
Purchase Request
-

Request for purchase

-
-
Supplier Quotation (beta)
-

Track Quotations received from Suppliers

-
-
Purchase Order
-

Purchase Orders given to Suppliers

-
-
-
Supplier
-

Supplier Master

-
-
Item
-

Item Master

-
-
Contact
-

Contact Master

-
-
Address
-

Address Master

-
-
-
-

Reports

-
-
- Purchase Analytics -
-

Purchase trends based on Purchase Invoice

-
-
-
-
-
-
-
-
-
- -
-
Tools
-
- -
-
- -
-
-
-
diff --git a/buying/page/buying_home/buying_home.js b/buying/page/buying_home/buying_home.js index 65803cca54..e46a77c583 100644 --- a/buying/page/buying_home/buying_home.js +++ b/buying/page/buying_home/buying_home.js @@ -1,20 +1,106 @@ -// 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 . +// ERPNext: Copyright 2013 Web Notes Technologies Pvt Ltd +// GNU General Public License. See "license.txt" + +wn.module_page["Buying"] = [ + { + title: wn._("Documents"), + icon: "icon-copy", + items: [ + { + label: wn._("Purchase Request"), + description: wn._("Request for purchase."), + doctype:"Purchase Request" + }, + { + label: wn._("Supplier Quotation"), + description: wn._("Track Quotations received from Suppliers."), + doctype:"Supplier Quotation" + }, + { + label: wn._("Purchase Order"), + description: wn._("Purchase Orders given to Suppliers."), + doctype:"Purchase Order" + }, + ] + }, + { + title: wn._("Masters"), + icon: "icon-book", + items: [ + { + label: wn._("Supplier"), + description: wn._("Supplier database."), + doctype:"Supplier" + }, + { + label: wn._("Contact"), + description: wn._("All Contacts."), + doctype:"Contact" + }, + { + label: wn._("Address"), + description: wn._("All Addresses."), + doctype:"Address" + }, + { + label: wn._("Item"), + description: wn._("All Products or Services."), + doctype:"Item" + }, + ] + }, + { + title: wn._("Setup"), + icon: "icon-cog", + items: [ + { + "label": wn._("Purchase Taxes and Charges Master"), + "doctype":"Purchase Taxes and Charges Master", + "description": wn._("Tax Template for Purchase") + }, + { + "doctype":"Supplier Type", + "label": wn._("Supplier Type"), + "description": wn._("Supplier classification.") + }, + { + "route":"Sales Browser/Item Group", + "label":wn._("Item Group"), + "description": wn._("Tree of item classification"), + doctype:"Item Group" + }, + { + label: wn._("Terms and Conditions"), + description: wn._("Template of terms or contract."), + doctype:"Terms and Conditions" + }, + ] + }, + { + title: wn._("Tools"), + icon: "icon-wrench", + items: [ + { + "route":"Form/Sales and Purchase Return Tool/Sales and Purchase Return Tool", + "label":wn._("Purchase Returns"), + "description":wn._("Helper for managing return of goods (sales or purchase)"), + doctype: "Sales and Purchase Return Tool" + }, + ] + }, + { + title: wn._("Analytics"), + right: true, + icon: "icon-bar-chart", + items: [ + { + "label":wn._("Purchase Analytics"), + page: "purchase-analytics" + }, + ] + }, +] pscript['onload_buying-home'] = function(wrapper) { - wrapper.appframe = new wn.ui.AppFrame($(wrapper).find('.appframe-area'), 'Buying'); - erpnext.module_page.setup_page('Buying', wrapper); -} \ No newline at end of file + wn.views.moduleview.make(wrapper, "Buying"); +} diff --git a/buying/report/supplier_quotations/supplier_quotations.txt b/buying/report/supplier_quotations/supplier_quotations.txt deleted file mode 100644 index ab4f872b59..0000000000 --- a/buying/report/supplier_quotations/supplier_quotations.txt +++ /dev/null @@ -1,19 +0,0 @@ -[ - { - "owner": "Administrator", - "docstatus": 0, - "creation": "2012-08-07 14:52:42", - "modified_by": "Administrator", - "modified": "2012-12-03 17:10:41" - }, - { - "name": "__common__", - "ref_doctype": "Supplier Quotation", - "doctype": "Report", - "json": "{\"filters\":[[\"Supplier Quotation\",\"supplier\",\"like\",\"%%\"],[\"Supplier Quotation Item\",\"item_code\",\"like\",\"%%\"]],\"columns\":[[\"name\",\"Supplier Quotation\"],[\"supplier\",\"Supplier Quotation\"],[\"item_code\",\"Supplier Quotation Item\"],[\"description\",\"Supplier Quotation Item\"],[\"qty\",\"Supplier Quotation Item\"],[\"currency\",\"Supplier Quotation\"],[\"import_rate\",\"Supplier Quotation Item\"],[\"import_amount\",\"Supplier Quotation Item\"]],\"sort_by\":\"modified\",\"sort_order\":\"desc\",\"sort_by_next\":\"name\",\"sort_order_next\":\"desc\"}" - }, - { - "name": "Supplier Quotations", - "doctype": "Report" - } -] \ No newline at end of file diff --git a/home/page/desktop/desktop.css b/home/page/desktop/desktop.css index 7990216ed4..1fb4414ca0 100644 --- a/home/page/desktop/desktop.css +++ b/home/page/desktop/desktop.css @@ -25,7 +25,6 @@ .case-wrapper i { font-size: 32px; color: #f8f8f8; - margin-top: 8px; } .case-label { diff --git a/hr/page/hr_home/hr_home.html b/hr/page/hr_home/hr_home.html deleted file mode 100644 index 9d6875a994..0000000000 --- a/hr/page/hr_home/hr_home.html +++ /dev/null @@ -1,135 +0,0 @@ -
-
-
-
-
Attendance
-

Attendance Mark

-
-
Leave Application
-

Applications for leave

-
-
Expense Claim
-

Claims for expenses

-
-
Salary Slip
-

Monthly salary statement

-
-
Appraisal
-

Performance appraisal

-
-
-
Employee
-

Employee Master

-
-
-
-

Reports

-
-
-
-
-
-
Leave and Attendance
- -
-
-
Salary and Payroll
- -
-
-
Employee Setup
-
- - -
- Branch -
- - -
- Grade -
-
-
-
-
Expense Claim
- -
-
-
-
-
diff --git a/hr/page/hr_home/hr_home.js b/hr/page/hr_home/hr_home.js index 1286609587..79b8afc6e6 100644 --- a/hr/page/hr_home/hr_home.js +++ b/hr/page/hr_home/hr_home.js @@ -1,20 +1,147 @@ -// 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 . +// ERPNext: Copyright 2013 Web Notes Technologies Pvt Ltd +// GNU General Public License. See "license.txt" + +wn.module_page["HR"] = [ + { + title: wn._("Documents"), + icon: "icon-copy", + items: [ + { + label: wn._("Leave Application"), + description: wn._("Applications for leave."), + doctype:"Leave Application" + }, + { + label: wn._("Expense Claim"), + description: wn._("Claims for expenses made on behalf of the organization."), + doctype:"Expense Claim" + }, + { + label: wn._("Attendance"), + description: wn._("Attendance record."), + doctype:"Attendance" + }, + { + label: wn._("Salary Slip"), + description: wn._("Monthly salary statement."), + doctype:"Salary Slip" + }, + { + label: wn._("Appraisal"), + description: wn._("Performance appraisal."), + doctype:"Appraisal" + }, + ] + }, + { + title: wn._("Masters"), + icon: "icon-book", + items: [ + { + label: wn._("Employee"), + description: wn._("Employee records."), + doctype:"Employee" + }, + ] + }, + { + title: wn._("Leave Setup"), + icon: "icon-cog", + items: [ + { + "route":"Form/Attendance Control Panel/Attendance Control Panel", + "label":wn._("Upload attendance"), + "description":wn._("Upload attendance from a .csv file"), + doctype: "Attendance Control Panel" + }, + { + "route":"Form/Leave Control Panel/Leave Control Panel", + "label": wn._("Leave Allocation Tool"), + "description": wn._("Allocate leaves for the year."), + doctype: "Leave Control Panel" + }, + { + "label":wn._("Leave Allocation"), + "description":wn._("Leave allocations."), + doctype: "Leave Allocation" + }, + { + "label":wn._("Leave Type"), + "description":wn._("Type of leaves like casual, sick etc."), + doctype: "Leave Type" + }, + { + "label":wn._("Holiday List"), + "description":wn._("List of holidays."), + doctype: "Holiday List" + }, + ] + }, + { + title: wn._("Payroll Setup"), + icon: "icon-cog", + items: [ + { + "label": wn._("Salary Structure"), + "description": wn._("Monthly salary template."), + doctype: "Salary Structure" + }, + { + "route":"#Form/Salary Manager/Salary Manager", + "label":wn._("Process Payroll"), + "description":wn._("Generate Salary Slips"), + doctype: "Salary Manager" + }, + { + "label": wn._("Earning Type"), + "description": wn._("Salary components."), + doctype: "Earning Type" + }, + { + "label": wn._("Deduction Type"), + "description": wn._("Tax and other salary deductions."), + doctype: "Deduction Type" + }, + ] + }, + { + title: wn._("Employee Setup"), + icon: "icon-cog", + items: [ + { + "label": wn._("Employment Type"), + "description": wn._("Type of employment master."), + doctype: "Employment Type" + }, + { + "label": wn._("Appraisal Template"), + "description": wn._("Template for employee performance appraisals."), + doctype: "Appraisal Template" + }, + { + "label": wn._("Expense Claim Type"), + "description": wn._("Types of Expense Claim."), + doctype: "Expense Claim Type" + }, + { + "label": wn._("Branch"), + "description": wn._("Company branches."), + doctype: "Branch" + }, + { + "label": wn._("Department"), + "description": wn._("Company departments."), + doctype: "Department" + }, + { + "label": wn._("Grade"), + "description": wn._("Employee grades"), + doctype: "Grade" + }, + ] + } +]; pscript['onload_hr-home'] = function(wrapper) { - wrapper.appframe = new wn.ui.AppFrame($(wrapper).find('.appframe-area') ,'Human Resources'); - erpnext.module_page.setup_page('HR', wrapper); + wn.views.moduleview.make(wrapper, "HR"); } \ No newline at end of file diff --git a/manufacturing/page/manufacturing_home/manufacturing_home.html b/manufacturing/page/manufacturing_home/manufacturing_home.html deleted file mode 100644 index 737a7c1b11..0000000000 --- a/manufacturing/page/manufacturing_home/manufacturing_home.html +++ /dev/null @@ -1,48 +0,0 @@ -
-
-
-
-
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

-
-
-
-
-
-
Tools
- -
-
-
Setup
-
- -
-
-
-
-
-
diff --git a/manufacturing/page/manufacturing_home/manufacturing_home.js b/manufacturing/page/manufacturing_home/manufacturing_home.js index ee4778d5d3..cb4222b367 100644 --- a/manufacturing/page/manufacturing_home/manufacturing_home.js +++ b/manufacturing/page/manufacturing_home/manufacturing_home.js @@ -1,20 +1,65 @@ -// 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 . +// ERPNext: Copyright 2013 Web Notes Technologies Pvt Ltd +// GNU General Public License. See "license.txt" + +wn.module_page["Manufacturing"] = [ + { + title: wn._("Documents"), + icon: "icon-copy", + items: [ + { + label: wn._("Production Order"), + description: wn._("Orders released for production."), + doctype:"Production Order" + }, + ] + }, + { + title: wn._("Production Planning (MRP)"), + icon: "icon-wrench", + items: [ + { + "route":"Form/Production Planning Tool/Production Planning Tool", + "label":wn._("Production Planning Tool"), + "description":wn._("Generate Purchase Requests (MRP) and Production Orders."), + doctype: "Production Planning Tool" + }, + ] + }, + { + title: wn._("Masters"), + icon: "icon-book", + items: [ + { + label: wn._("Bill of Materials"), + description: wn._("Bill of Materials (BOM)"), + doctype:"BOM" + }, + { + label: wn._("Item"), + description: wn._("All Products or Services."), + doctype:"Item" + }, + { + label: wn._("Workstation"), + description: wn._("Where manufacturing operations are carried out."), + doctype:"Workstation" + }, + ] + }, + { + title: wn._("Utility"), + icon: "icon-wrench", + items: [ + { + "route":"Form/BOM Replace Tool/BOM Replace Tool", + "label":wn._("BOM Replace Tool"), + "description":wn._("Replace Item / BOM in all BOMs"), + doctype: "BOM Replace Tool" + }, + ] + }, +] pscript['onload_manufacturing-home'] = function(wrapper) { - wrapper.appframe = new wn.ui.AppFrame($(wrapper).find('.appframe-area'), 'Manufacturing'); - erpnext.module_page.setup_page('Manufacturing', wrapper); + wn.views.moduleview.make(wrapper, "Manufacturing"); } \ No newline at end of file diff --git a/production/doctype/bom_replace_tool/locale/_messages_doc.json b/production/doctype/bom_replace_tool/locale/_messages_doc.json deleted file mode 100644 index d6c8d69198..0000000000 --- a/production/doctype/bom_replace_tool/locale/_messages_doc.json +++ /dev/null @@ -1,10 +0,0 @@ -[ - "BOM Replace Tool", - "The BOM which will be replaced", - "New BOM", - "The new BOM after replacement", - "Production", - "Replace a particular BOM in all other BOMs where it is used. It will replace the old BOM link, update cost and regenerate \"BOM Explosion Item\" table as per new BOM", - "Replace", - "Current BOM" -] \ No newline at end of file diff --git a/production/doctype/bom_replace_tool/locale/hi-doc.json b/production/doctype/bom_replace_tool/locale/hi-doc.json deleted file mode 100644 index 3d9e9b4fb1..0000000000 --- a/production/doctype/bom_replace_tool/locale/hi-doc.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "BOM Replace Tool": "\u092c\u0940\u0913\u090f\u092e \u092c\u0926\u0932\u0947\u0902 \u0909\u092a\u0915\u0930\u0923", - "Current BOM": "\u0935\u0930\u094d\u0924\u092e\u093e\u0928 \u092c\u0940\u0913\u090f\u092e", - "New BOM": "\u0928\u0908 \u092c\u0940\u0913\u090f\u092e", - "Production": "\u0909\u0924\u094d\u092a\u093e\u0926\u0928", - "Replace": "\u092c\u0926\u0932\u0947\u0902", - "Replace a particular BOM in all other BOMs where it is used. It will replace the old BOM link, update cost and regenerate \"BOM Explosion Item\" table as per new BOM": "\u0905\u0928\u094d\u092f \u0938\u092d\u0940 BOMs \u091c\u0939\u093e\u0902 \u092f\u0939 \u092a\u094d\u0930\u092f\u094b\u0917 \u0915\u093f\u092f\u093e \u091c\u093e\u0924\u093e \u0939\u0948 \u092e\u0947\u0902 \u090f\u0915 \u0935\u093f\u0936\u0947\u0937 \u092c\u0940\u0913\u090f\u092e \u092c\u0926\u0932\u0947\u0902. \u092f\u0939 \u092a\u0941\u0930\u093e\u0928\u0947 \u092c\u0940\u0913\u090f\u092e \u0932\u093f\u0902\u0915 \u0915\u0940 \u091c\u0917\u0939, \u0932\u093e\u0917\u0924 \u0905\u0926\u094d\u092f\u0924\u0928 \u0914\u0930 \u0928\u092f\u093e \u092c\u0940\u0913\u090f\u092e \u0915\u0947 \u0905\u0928\u0941\u0938\u093e\u0930 "BOM \u0927\u092e\u093e\u0915\u093e \u0906\u0907\u091f\u092e" \u0924\u093e\u0932\u093f\u0915\u093e \u092a\u0941\u0928\u0930\u094d\u091c\u0928\u094d\u092e", - "The BOM which will be replaced": "\u092c\u0940\u0913\u090f\u092e \u091c\u094b \u092a\u094d\u0930\u0924\u093f\u0938\u094d\u0925\u093e\u092a\u093f\u0924 \u0915\u093f\u092f\u093e \u091c\u093e\u090f\u0917\u093e", - "The new BOM after replacement": "\u092c\u0926\u0932\u0928\u0947 \u0915\u0947 \u092c\u093e\u0926 \u0928\u090f \u092c\u0940\u0913\u090f\u092e" -} \ No newline at end of file diff --git a/projects/page/projects_home/projects_home.html b/projects/page/projects_home/projects_home.html deleted file mode 100644 index cb4f1f8aba..0000000000 --- a/projects/page/projects_home/projects_home.html +++ /dev/null @@ -1,38 +0,0 @@ -
-
-
-
-
Task
-

Project activity / task

-
-
Project
-

Project master

-
-
Timesheet
-

Timesheet for tasks

-
-
-
Gantt Chart
-

Gantt chart of all tasks

-
-
-
-

Reports

-
-
-
-
-
-
Setup
-
- -
-
-
-
-
-
diff --git a/projects/page/projects_home/projects_home.js b/projects/page/projects_home/projects_home.js index 5ff50c9a98..3f91468030 100644 --- a/projects/page/projects_home/projects_home.js +++ b/projects/page/projects_home/projects_home.js @@ -1,20 +1,52 @@ -// 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 . +// ERPNext: Copyright 2013 Web Notes Technologies Pvt Ltd +// GNU General Public License. See "license.txt" + +wn.module_page["Projects"] = [ + { + title: wn._("Documents"), + icon: "icon-copy", + items: [ + { + label: wn._("Task"), + description: wn._("Project activity / task."), + doctype:"Task" + }, + { + label: wn._("Project"), + description: wn._("Project master."), + doctype:"Project" + }, + { + label: wn._("Timesheet"), + description: wn._("Timesheet for tasks."), + doctype:"Timesheet" + }, + ] + }, + { + title: wn._("Tools"), + icon: "icon-wrench", + items: [ + { + page: "Projects", + label: wn._("Gantt Chart"), + "description":wn._("Gantt chart of all tasks.") + }, + ] + }, + { + title: wn._("Masters"), + icon: "icon-book", + items: [ + { + label: wn._("Activity Type"), + description: wn._("Types of activities for Time Sheets"), + doctype:"Activity Type" + }, + ] + }, +] pscript['onload_projects-home'] = function(wrapper) { - wrapper.appframe = new wn.ui.AppFrame($(wrapper).find('.appframe-area'), 'Projects'); - erpnext.module_page.setup_page('Projects', wrapper); + wn.views.moduleview.make(wrapper, "Projects"); } \ No newline at end of file diff --git a/public/js/modules.js b/public/js/modules.js index 752d3699fd..5c572dda8e 100644 --- a/public/js/modules.js +++ b/public/js/modules.js @@ -15,6 +15,8 @@ // along with this program. If not, see . wn.home_page = "desktop"; +wn.provide("wn.module_page"); + $.extend(wn.modules, { "Selling": { link: "selling-home", diff --git a/selling/page/sales_browser/sales_browser.py b/selling/page/sales_browser/sales_browser.py index 49a05ff578..45ca1d25fb 100644 --- a/selling/page/sales_browser/sales_browser.py +++ b/selling/page/sales_browser/sales_browser.py @@ -13,7 +13,7 @@ def get_children(): if(is_group='Yes', 1, 0) as expandable from `tab%(ctype)s` where docstatus < 2 - and %(parent_field)s = "%(parent)s" + and ifnull(%(parent_field)s,'') = "%(parent)s" order by name""" % webnotes.form_dict, as_dict=1) @webnotes.whitelist() diff --git a/selling/page/selling_home/selling_home.html b/selling/page/selling_home/selling_home.html deleted file mode 100644 index e483b508b4..0000000000 --- a/selling/page/selling_home/selling_home.html +++ /dev/null @@ -1,136 +0,0 @@ -
-
-
-
-
Lead
-

Prospective customers

-
-
Opportunity
-

Business opportunities

-
-
Quotation
-

Quotes sent to Leads / Customers

-
-
Sales Order
-

Confirmed orders from Customers

-
-
Communication
-

All communication records

-
-
-
Customer
-

Customer Master

-
-
Item
-

Item Master

-
-
Contact
-

Contact Master

-
-
Address
-

Address Master

-
-
-
-

Reports

-
-
Sales Analytics -
-

Sales trends based on Sales Invoice

-
-
-
-
-
-
-
-
-
- -
-
Tools
- -
-
-
-
-
diff --git a/selling/page/selling_home/selling_home.js b/selling/page/selling_home/selling_home.js index 1fe0e09d10..6f140e9552 100644 --- a/selling/page/selling_home/selling_home.js +++ b/selling/page/selling_home/selling_home.js @@ -1,20 +1,167 @@ -// 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 . +// ERPNext: Copyright 2013 Web Notes Technologies Pvt Ltd +// GNU General Public License. See "license.txt" + +wn.module_page["Selling"] = [ + { + title: wn._("Documents"), + icon: "icon-copy", + items: [ + { + label: wn._("Lead"), + description: wn._("Database of potential customers."), + doctype:"Lead" + }, + { + label: wn._("Opportunity"), + description: wn._("Potential opportunities for selling."), + doctype:"Opportunity" + }, + { + label: wn._("Quotation"), + description: wn._("Quotes to Leads or Customers."), + doctype:"Quotation" + }, + { + label: wn._("Sales Order"), + description: wn._("Confirmed orders from Customers."), + doctype:"Sales Order" + }, + ] + }, + { + title: wn._("Masters"), + icon: "icon-book", + items: [ + { + label: wn._("Customer"), + description: wn._("Customer database."), + doctype:"Customer" + }, + { + label: wn._("Contact"), + description: wn._("All Contacts."), + doctype:"Contact" + }, + { + label: wn._("Address"), + description: wn._("All Addresses."), + doctype:"Address" + }, + { + label: wn._("Item"), + description: wn._("All Products or Services."), + doctype:"Item" + }, + ] + }, + { + title: wn._("Setup"), + icon: "icon-cog", + items: [ + { + label: wn._("Sales Taxes and Charges Master"), + description: wn._("Sales taxes template."), + doctype:"Sales Taxes and Charges Master" + }, + { + label: wn._("Price List"), + description: wn._("Mupltiple Item prices."), + doctype:"Price List" + }, + { + label: wn._("Sales BOM"), + description: wn._("Bundle items at time of sale."), + doctype:"Sales BOM" + }, + { + label: wn._("Terms and Conditions"), + description: wn._("Template of terms or contract."), + doctype:"Terms and Conditions" + }, + { + label: wn._("Customer Group"), + description: wn._("Customer classification tree."), + route: "Sales Browser/Customer Group", + doctype:"Customer Group" + }, + { + label: wn._("Territory"), + description: wn._("Sales territories."), + route: "Sales Browser/Territory", + doctype:"Territory" + }, + { + "route":"Sales Browser/Sales Person", + "label":wn._("Sales Person"), + "description": wn._("Sales persons and targets"), + doctype:"Sales Person" + }, + { + "route":"List/Sales Partner", + "label": wn._("Sales Partner"), + "description":wn._("Commission partners and targets"), + doctype:"Sales Partner" + }, + { + "route":"Sales Browser/Item Group", + "label":wn._("Item Group"), + "description": wn._("Tree of item classification"), + doctype:"Item Group" + }, + { + "route":"List/Campaign", + "label":wn._("Campaign"), + "description":wn._("Sales campaigns"), + doctype:"Campaign" + }, + ] + }, + { + title: wn._("Tools"), + icon: "icon-wrench", + items: [ + { + "route":"Form/Sales and Purchase Return Tool/Sales and Purchase Return Tool", + "label":wn._("Sales Returns"), + "description":wn._("Helper for managing return of goods (sales or purchase)"), + doctype: "Sales and Purchase Return Tool" + }, + { + "route":"Form/SMS Center/SMS Center", + "label":wn._("SMS Center"), + "description":wn._("Send mass SMS to your contacts"), + doctype:"SMS Center" + }, + ] + }, + { + title: wn._("Analytics"), + right: true, + icon: "icon-bar-chart", + items: [ + { + "label":wn._("Sales Analytics"), + page: "sales-analytics" + }, + ] + }, + { + title: wn._("Reports"), + right: true, + icon: "icon-list", + items: [ + { + "label":wn._("Customer Addresses and Contacts"), + route: "query-report/Customer Addresses and Contacts" + }, + { + "label":wn._("Sales Orders Pending to be Delivered"), + route: "query-report/Sales Orders Pending to be Delivered" + }, + ] + } +] pscript['onload_selling-home'] = function(wrapper) { - wrapper.appframe = new wn.ui.AppFrame($(wrapper).find('.appframe-area'), 'Selling'); - erpnext.module_page.setup_page('Selling', wrapper); + wn.views.moduleview.make(wrapper, "Selling"); } \ No newline at end of file diff --git a/startup/event_handlers.py b/startup/event_handlers.py index 16fb523de3..6b16f4c4d3 100644 --- a/startup/event_handlers.py +++ b/startup/event_handlers.py @@ -1,18 +1,6 @@ -# 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 . +# ERPNext: Copyright 2013 Web Notes Technologies Pvt Ltd +# GNU General Public License. See "license.txt" + from __future__ import unicode_literals import webnotes diff --git a/startup/observers.py b/startup/observers.py index 7dad77afc8..46683f8d9b 100644 --- a/startup/observers.py +++ b/startup/observers.py @@ -17,4 +17,5 @@ observer_map = { "*:on_update": "home.update_feed", "*:on_submit": "home.update_feed", +# "*:on_update": "webnotes.widgets.moduleview.update_count" } \ No newline at end of file diff --git a/startup/open_count.py b/startup/open_count.py new file mode 100644 index 0000000000..ad8adefcdd --- /dev/null +++ b/startup/open_count.py @@ -0,0 +1,26 @@ +# ERPNext: Copyright 2013 Web Notes Technologies Pvt Ltd +# GNU General Public Licnese. See "license.txt" + +from __future__ import unicode_literals +import webnotes + +queries = { + "Support Ticket": "select count(*) from `tabSupport Ticket` where status='Open'", + "Task": "select count(*) from `tabTask` where status='Open'", + "Lead": "select count(*) from `tabLead` where status='Open'", + "Opportunity": "docstatus", + "Quotation": "docstatus", + "Sales Order": "docstatus", + "Journal Voucher": "docstatus", + "Sales Invoice": "docstatus", + "Purchase Invoice": "docstatus", + "Leave Application": "docstatus", + "Expense Claim": "docstatus", + "Purchase Receipt": "docstatus", + "Delivery Note": "docstatus", + "Stock Entry": "docstatus", + "Purchase Request": "docstatus", + "Purchase Order": "docstatus", + "Production Order": "docstatus", + "Timesheet": "docstatus", +} \ No newline at end of file diff --git a/stock/page/stock_home/stock_home.html b/stock/page/stock_home/stock_home.html deleted file mode 100644 index d4dfd4cea5..0000000000 --- a/stock/page/stock_home/stock_home.html +++ /dev/null @@ -1,143 +0,0 @@ -
-
-
-
-
Stock Entry
-

Transfer stock from one warehouse to another

-
-
Delivery Note
-

Delivery (shipment) to customers

-
-
Purchase Receipt
-

Goods received from Suppliers

-
-
-
Item
-

Item Master

-
-
Serial No
-

Single unit of an Item

-
-
Batch
-

Batch of units of an Item

-
-
Warehouse
-

Warehouse is where items are stored

-
-
-
-

Reports

-
-
Stock Ledger -
-

Log of stock movements

-
-
- Stock Balance -
-

Inflow, outflow and balance of stock

-
-
- Stock Level -
-

Available and estimated qty of stock, as of now

-
-
-
- Stock Analytics -
-

Visual representation of stock trends

-
-
- Stock Ageing -
-

Analysis of slow moving stock

-
-
-
-
-
- -
-
diff --git a/stock/page/stock_home/stock_home.js b/stock/page/stock_home/stock_home.js index 97f5ec9236..db08398058 100644 --- a/stock/page/stock_home/stock_home.js +++ b/stock/page/stock_home/stock_home.js @@ -1,20 +1,206 @@ -// 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 . +// ERPNext: Copyright 2013 Web Notes Technologies Pvt Ltd +// GNU General Public License. See "license.txt" + +wn.module_page["Stock"] = [ + { + title: wn._("Documents"), + icon: "icon-copy", + items: [ + { + label: wn._("Stock Entry"), + description: wn._("Transfer stock from one warehouse to another."), + doctype:"Stock Entry" + }, + { + label: wn._("Delivery Note"), + description: wn._("Delivery (shipment) to customers."), + doctype:"Delivery Note" + }, + { + label: wn._("Purchase Receipt"), + description: wn._("Goods received from Suppliers."), + doctype:"Purchase Receipt" + }, + ] + }, + { + title: wn._("Masters"), + icon: "icon-book", + items: [ + { + label: wn._("Item"), + description: wn._("All Products or Services."), + doctype:"Item" + }, + { + label: wn._("Serial No"), + description: wn._("Single unit of an Item."), + doctype:"Serial No" + }, + { + label: wn._("Batch"), + description: wn._("Batch (lot) of an Item."), + doctype:"Batch" + }, + { + label: wn._("Warehouse"), + description: wn._("Where items are stored."), + doctype:"Warehouse" + }, + ] + }, + { + title: wn._("Tools"), + icon: "icon-wrench", + items: [ + { + "doctype":"Stock Reconciliation", + "label": wn._("Stock Reconciliation"), + description: wn._("Upload stock balance via csv.") + }, + { + "doctype":"Installation Note", + "label": wn._("Installation Note"), + description: wn._("Installation record for a Serial No.") + }, + { + "label": wn._("Packing Slip"), + "doctype":"Packing Slip", + description: wn._("Split Delivery Note into packages.") + }, + { + "doctype":"Price List", + "label": wn._("Price List"), + "description": wn._("Multiple Item Prices") + }, + { + "doctype":"Quality Inspection", + "label": wn._("Quality Inspection"), + description: wn._("Incoming quality inspection.") + }, + { + "doctype":"Landed Cost Master", + "label":"Landed Cost Master", + description: wn._("Transportatoin cost distribution template.") + }, + { + "route":"#Form/Landed Cost Wizard/Landed Cost Wizard", + "label": wn._("Landed Cost Wizard"), + description: wn._("Distribute transport overhead across items."), + doctype: "Landed Cost Wizard" + }, + { + "route":"#Form/Stock UOM Replace Utility/Stock UOM Replace Utility", + "label": wn._("UOM Replace Utility"), + "doctype": "Stock UOM Replace Utility" + }, + { + "route":"#Form/Sales and Purchase Return Tool/Sales and Purchase Return Tool", + "label": wn._("Sales and Purchase Return Tool"), + doctype: "Sales and Purchase Return Tool", + description: wn._("Manage sales or purchase returns") + }, + ] + }, + { + title: wn._("Setup"), + icon: "icon-cog", + items: [ + { + "route":"Sales Browser/Item Group", + "label": wn._("Item Group"), + "description": wn._("Item classification.") + }, + { + "doctype":"UOM", + "label": wn._("Unit of Measure") + " (UOM)", + "description": wn._("e.g. Kg, Unit, Nos, m") + }, + { + "doctype":"Brand", + "label": wn._("Brand"), + "description": wn._("Brand master.") + }, + { + "label": wn._("Warehouse Type"), + "doctype":"Warehouse Type", + "description": wn._("Types of warehouse") + } + ] + }, + { + title: wn._("Main Reports"), + right: true, + icon: "icon-table", + items: [ + { + "label":wn._("Stock Ledger"), + page: "stock-ledger" + }, + { + "label":wn._("Stock Balance"), + page: "stock-balance" + }, + { + "page":"stock-level", + "label": wn._("Stock Level") + }, + { + "page":"stock-ageing", + "label": wn._("Stock Ageing") + }, + ] + }, + { + title: wn._("Analytics"), + right: true, + icon: "icon-bar-chart", + items: [ + { + "label":wn._("Stock Analytics"), + page: "stock-analytics" + }, + ] + }, + { + title: wn._("Reports"), + right: true, + icon: "icon-list", + items: [ + { + "label":wn._("Stock Ledger"), + route: "Report2/Stock Ledger Entry/Stock Ledger", + doctype: "Stock Ledger Entry" + }, + { + "label":wn._("Ordered Items To Be Delivered"), + route: "query-report/Ordered Items To Be Delivered", + doctype: "Delivery Note" + }, + { + "label":wn._("Serial No Service Contract Expiry"), + route: "Report2/Serial No/Serial No Service Contract Expiry", + doctype: "Serial No" + }, + { + "label":wn._("Serial No Status"), + route: "Report2/Serial No/Serial No Status", + doctype: "Serial No" + }, + { + "label":wn._("Serial No Warranty Expiry"), + route: "Report2/Serial No/Serial No Warranty Expiry", + doctype: "Serial No" + }, + { + "label":wn._("Item-Wise Price List"), + route: "query-report/Item-Wise Price List", + doctype: "Item" + }, + ] + } +] pscript['onload_stock-home'] = function(wrapper) { - wrapper.appframe = new wn.ui.AppFrame($(wrapper).find('.appframe-area'), 'Stock'); - erpnext.module_page.setup_page('Stock', wrapper); + wn.views.moduleview.make(wrapper, "Stock"); } \ No newline at end of file diff --git a/support/page/support_home/support_home.html b/support/page/support_home/support_home.html deleted file mode 100644 index 59eff10aad..0000000000 --- a/support/page/support_home/support_home.html +++ /dev/null @@ -1,58 +0,0 @@ -
-
-
-
-
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

-
-
Newsletter
-

Send Newsletters to your contacts

-
-
Communication
-

Communication Log

-
-
-
Serial No
-

Single unit of an Item

-
-
-
-
-
- Support Analytics -
-

Support Ticket trends and response.

-
-
-
-
-
-

Reports

-
-
-
-
-
-
Tools
-
- -
-
-
- -
-
-
\ No newline at end of file diff --git a/support/page/support_home/support_home.js b/support/page/support_home/support_home.js index 99b109fdf2..d397daa6ce 100644 --- a/support/page/support_home/support_home.js +++ b/support/page/support_home/support_home.js @@ -1,20 +1,79 @@ -// 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 . +// ERPNext: Copyright 2013 Web Notes Technologies Pvt Ltd +// GNU General Public License. See "license.txt" + +wn.module_page["Support"] = [ + { + title: wn._("Documents"), + icon: "icon-copy", + items: [ + { + label: wn._("Support Ticket"), + description: wn._("Support queries from customers via email or website."), + doctype:"Support Ticket" + }, + { + label: wn._("Customer Issue"), + description: wn._("Customer Issue against a Serial No (warranty)."), + doctype:"Customer Issue" + }, + { + label: wn._("Maintenance Schedule"), + description: wn._("Plan for scheduled maintenance contracts."), + doctype:"Maintenance Schedule" + }, + { + label: wn._("Maintenance Visit"), + description: wn._("Visit report for maintenance call."), + doctype:"Maintenance Visit" + }, + { + label: wn._("Newsletter"), + description: wn._("Send Newsletters to your contacts, leads."), + doctype:"Newsletter" + }, + { + label: wn._("Communication"), + description: wn._("Communication log."), + doctype:"Communication" + }, + ] + }, + { + title: wn._("Masters"), + icon: "icon-book", + items: [ + { + label: wn._("Serial No"), + description: wn._("Single unit of an Item."), + doctype:"Serial No" + }, + ] + }, + { + title: wn._("Setup"), + icon: "icon-cog", + items: [ + { + "route":"Form/Email Settings/Email Settings", + "label":wn._("Email Settings"), + "description":wn._("Setup to pull emails from support email account"), + doctype: "Email Settings" + }, + ] + }, + { + title: wn._("Analytics"), + right: true, + icon: "icon-bar-chart", + items: [ + { + "label":wn._("Support Analytics"), + page: "support-analytics" + }, + ] + }, +] pscript['onload_support-home'] = function(wrapper) { - wrapper.appframe = new wn.ui.AppFrame($(wrapper).find('.appframe-area'), 'Support'); - erpnext.module_page.setup_page('Support', wrapper); -} \ No newline at end of file + wn.views.moduleview.make(wrapper, "Support"); +} diff --git a/website/doctype/style_settings/style_settings.txt b/website/doctype/style_settings/style_settings.txt index cd9d2563bf..a3e81eb455 100644 --- a/website/doctype/style_settings/style_settings.txt +++ b/website/doctype/style_settings/style_settings.txt @@ -2,23 +2,18 @@ { "owner": "Administrator", "docstatus": 0, - "creation": "2012-04-02 16:02:43", + "creation": "2012-07-03 13:30:57", "modified_by": "Administrator", - "modified": "2012-05-01 15:58:16" + "modified": "2013-01-08 12:00:51" }, { - "section_style": "Simple", - "allow_attach": 1, - "module": "Website", - "doctype": "DocType", - "description": "Set your background color, font and image (tiled)", "issingle": 1, + "allow_attach": 1, "name": "__common__", - "colour": "White:FFF", - "_last_update": "1330594969", - "show_in_menu": 0, + "doctype": "DocType", + "module": "Website", "max_attachments": 1, - "version": 1 + "description": "Set your background color, font and image (tiled)" }, { "name": "__common__", @@ -40,29 +35,17 @@ "name": "Style Settings", "doctype": "DocType" }, - { - "write": 1, - "create": 1, - "permlevel": 0, - "doctype": "DocPerm" - }, - { - "permlevel": 1, - "doctype": "DocPerm" - }, { "description": "If image is selected, color will be ignored (attach first)", - "colour": "White:FFF", "doctype": "DocField", "label": "Background Image", - "permlevel": 0, + "options": "attach_files:", "fieldname": "background_image", "fieldtype": "Select", - "options": "attach_files:" + "permlevel": 0 }, { "description": "Solid background color (default light gray)", - "colour": "White:FFF", "doctype": "DocField", "label": "Background Color", "fieldname": "background_color", @@ -70,33 +53,35 @@ "permlevel": 0 }, { - "width": "50%", + "print_width": "50%", "doctype": "DocField", + "width": "50%", + "fieldname": "cb0", "fieldtype": "Column Break", "permlevel": 0 }, { "doctype": "DocField", - "options": "\nHelvetica Neue\nLucida Grande\nVerdana\nArial\nGeorgia\nTahoma\nLato\nOpen Sans", + "label": "Font", + "options": "\nHelvetica Neue\nLucida Grande\nVerdana\nArial\nGeorgia\nTahoma", "fieldname": "font", "fieldtype": "Select", - "label": "Font", "permlevel": 0 }, { "doctype": "DocField", + "label": "Font Size", "options": "\n12px\n13px\n14px\n15px\n16px", "fieldname": "font_size", "fieldtype": "Select", - "label": "Font Size", "permlevel": 0 }, { "doctype": "DocField", + "label": "Heading Font", "options": "\nHelvetica Neue\nLucida Grande\nVerdana\nArial\nGeorgia\nTahoma\nLato\nOpen Sans", "fieldname": "heading_font", "fieldtype": "Select", - "label": "Heading Font", "permlevel": 0 }, { @@ -108,7 +93,6 @@ }, { "description": "add your own CSS (careful!)", - "colour": "White:FFF", "doctype": "DocField", "label": "Add CSS", "fieldname": "add_css", @@ -117,7 +101,6 @@ }, { "description": "Auto generated", - "colour": "White:FFF", "doctype": "DocField", "label": "Custom CSS", "fieldname": "custom_css", @@ -133,5 +116,19 @@ "fieldtype": "Text", "hidden": 1, "permlevel": 0 + }, + { + "create": 1, + "doctype": "DocPerm", + "write": 1, + "permlevel": 0 + }, + { + "amend": 0, + "create": 0, + "doctype": "DocPerm", + "submit": 0, + "cancel": 0, + "permlevel": 1 } ] \ No newline at end of file diff --git a/website/page/website_home/website_home.html b/website/page/website_home/website_home.html deleted file mode 100644 index 0fde113765..0000000000 --- a/website/page/website_home/website_home.html +++ /dev/null @@ -1,47 +0,0 @@ -
-
-
-
-
Web Page
-

Static (content) web page.

-
-
Blog
-

Weblog (blog) entry.

-
-
Website Slideshow
-

Slideshows for adding in website pages.

-
-
-
Website Settings
-

Setup of top navigation bar, footer and logo.

-
-
Style Settings
-

Setup of fonts and background.

-
-
Product Settings
-

Settings for Product Catalog on the website.

-
-
About Us Settings
-

Settings for About Us Page.

-
-
Contact Us Settings
-

Settings for the Contact Us Page.

-
-
-
-
-
-
-
Advanced
-
- -
-
-
-
-
-
\ No newline at end of file diff --git a/website/page/website_home/website_home.js b/website/page/website_home/website_home.js index 15391ec434..c6b2253df1 100644 --- a/website/page/website_home/website_home.js +++ b/website/page/website_home/website_home.js @@ -1,20 +1,85 @@ -// 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 . +// ERPNext: Copyright 2013 Web Notes Technologies Pvt Ltd +// GNU General Public License. See "license.txt" + +wn.module_page["Website"] = [ + { + title: wn._("Web Content"), + icon: "icon-copy", + items: [ + { + label: wn._("Web Page"), + description: wn._("Content web page."), + doctype:"Web Page" + }, + { + label: wn._("Blog"), + description: wn._("Blog entry."), + doctype:"Blog" + }, + { + label: wn._("Website Slideshow"), + description: wn._("Embed image slideshows in website pages."), + doctype:"Website Slideshow" + }, + ] + }, + { + title: wn._("Website Overall Settings"), + icon: "icon-wrench", + right: true, + items: [ + { + "route":"Form/Website Settings", + "label":wn._("Website Settings"), + "description":wn._("Setup of top navigation bar, footer and logo."), + doctype:"Website Settings" + }, + { + "route":"Form/Style Settings", + "label":wn._("Style Settings"), + "description":wn._("Setup of fonts and background."), + doctype:"Style Settings" + }, + ] + }, + { + title: wn._("Special Page Settings"), + icon: "icon-wrench", + items: [ + { + "route":"Form/Product Settings", + "label":wn._("Product Settings"), + "description":wn._("Settings for Product Catalog on the website."), + doctype:"Product Settings" + }, + { + "route":"Form/About Us Settings", + "label":wn._("About Us Settings"), + "description":wn._("Settings for About Us Page."), + doctype:"About Us Settings" + }, + { + "route":"Form/Contact Us Settings", + "label":wn._("Contact Us Settings"), + "description":wn._("Settings for Contact Us Page."), + doctype:"Contact Us Settings" + }, + ] + }, + { + title: wn._("Advanced Scripting"), + icon: "icon-wrench", + items: [ + { + "route":"Form/Website Script", + "label":wn._("Website Script"), + "description":wn._("Javascript to append to the head section of the page."), + doctype:"Website Script" + }, + ] + } +] pscript['onload_website-home'] = function(wrapper) { - wrapper.appframe = new wn.ui.AppFrame($(wrapper).find('.appframe-area'), 'Website'); - erpnext.module_page.setup_page('Website', wrapper); + wn.views.moduleview.make(wrapper, "Website"); } \ No newline at end of file