added moduleview

This commit is contained in:
Rushabh Mehta
2013-01-09 16:39:27 +05:30
parent 996c30a575
commit ce1d5276ff
28 changed files with 1117 additions and 1086 deletions

View File

@@ -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 <http://www.gnu.org/licenses/>.
// 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);
}
wn.views.moduleview.make(wrapper, "Support");
}