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,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 <http://www.gnu.org/licenses/>.
// 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");
}