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,58 +0,0 @@
<div class="layout-wrapper layout-wrapper-background">
<div class="appframe-area"></div>
<div class="layout-main-section">
<div style="width: 48%; float: left;">
<h5><a href="#List/Support Ticket">Support Ticket</a></h5>
<p class="help">Support queries from customers via email or website</p>
<br>
<h5><a href="#List/Customer Issue">Customer Issue</a></h5>
<p class="help">Customer Issue against a Serial No (warranty)</p>
<br>
<h5><a href="#List/Maintenance Schedule">Maintenance Schedule</a></h5>
<p class="help">Plan for scheduled maintenance contracts</p>
<br>
<h5><a href="#List/Maintenance Visit">Maintenance Visit</a></h5>
<p class="help">Visit report for maintenance visit</p>
<br>
<h5><a href="#List/Newsletter">Newsletter</a></h5>
<p class="help">Send Newsletters to your contacts</p>
<br>
<h5><a href="#List/Communication">Communication</a></h5>
<p class="help">Communication Log</p>
</div>
<div style="width: 48%; float: right;">
<h5><a href="#List/Serial No">Serial No</a></h5>
<p class="help">Single unit of an Item</p>
</div>
<div style="clear: both"></div>
<hr>
<div style="width: 48%; float: left;">
<h5><a href="#support-analytics" data-role="Analytics, Support Manager">
Support Analytics</a>
</h5>
<p class="help">Support Ticket trends and response.</p>
</div>
<div style="width: 48%; float: right;">
</div>
<div style="clear: both;"></div>
<hr>
<h4>Reports</h4>
<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>

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");
}