Fixed booboo: Moved website moduleview to framework
This commit is contained in:
parent
e30511d315
commit
0c4ef64b32
@ -1,5 +1,5 @@
|
||||
from frappe import _
|
||||
from frappe.widgets.moduleview import get_config
|
||||
from frappe.widgets.moduleview import add_setup_section
|
||||
|
||||
data = [
|
||||
{
|
||||
@ -110,21 +110,8 @@ def get_data():
|
||||
("selling", _("Selling"), "icon-tag"),
|
||||
("buying", _("Buying"), "icon-shopping-cart"),
|
||||
("hr", _("Human Resources"), "icon-group"),
|
||||
("support", _("Support"), "icon-phone"),
|
||||
("website", _("Website"), "icon-globe")):
|
||||
("support", _("Support"), "icon-phone")):
|
||||
|
||||
try:
|
||||
config = get_config("erpnext", module)
|
||||
except ImportError:
|
||||
continue
|
||||
|
||||
for section in config:
|
||||
if section.get("label")==_("Setup"):
|
||||
out.append({
|
||||
"label": label,
|
||||
"icon": icon,
|
||||
"items": section["items"]
|
||||
})
|
||||
break
|
||||
|
||||
add_setup_section(out, "erpnext", module, label, icon)
|
||||
|
||||
return out
|
@ -1,93 +0,0 @@
|
||||
from frappe import _
|
||||
|
||||
data = [
|
||||
{
|
||||
"label": _("Documents"),
|
||||
"icon": "icon-star",
|
||||
"items": [
|
||||
{
|
||||
"type": "doctype",
|
||||
"name": "Web Page",
|
||||
"description": _("Content web page."),
|
||||
},
|
||||
{
|
||||
"type": "doctype",
|
||||
"name": "Blog Post",
|
||||
"description": _("Single Post (article)."),
|
||||
},
|
||||
{
|
||||
"type": "doctype",
|
||||
"name": "Blogger",
|
||||
"description": _("Profile of a blog writer."),
|
||||
},
|
||||
{
|
||||
"type": "doctype",
|
||||
"name": "Website Group",
|
||||
"description": _("Web Site Forum Page."),
|
||||
},
|
||||
{
|
||||
"type": "doctype",
|
||||
"name": "Post",
|
||||
"description": _("List of Web Site Forum's Posts."),
|
||||
},
|
||||
{
|
||||
"type": "doctype",
|
||||
"name": "Website Slideshow",
|
||||
"description": _("Embed image slideshows in website pages."),
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
"label": _("Setup"),
|
||||
"icon": "icon-cog",
|
||||
"items": [
|
||||
{
|
||||
"type": "doctype",
|
||||
"name": "Website Settings",
|
||||
"description": _("Setup of top navigation bar, footer and logo."),
|
||||
},
|
||||
{
|
||||
"type": "page",
|
||||
"name":"sitemap-browser",
|
||||
"label": _("Sitemap Browser"),
|
||||
"description": _("View or manage Website Route tree."),
|
||||
"icon": "icon-sitemap"
|
||||
},
|
||||
{
|
||||
"type": "doctype",
|
||||
"name": "Style Settings",
|
||||
"description": _("Setup of fonts and background."),
|
||||
},
|
||||
{
|
||||
"type": "doctype",
|
||||
"name": "Website Script",
|
||||
"description": _("Javascript to append to the head section of the page."),
|
||||
},
|
||||
{
|
||||
"type": "doctype",
|
||||
"name": "Blog Settings",
|
||||
"description": _("Write titles and introductions to your blog."),
|
||||
},
|
||||
{
|
||||
"type": "doctype",
|
||||
"name": "Blog Category",
|
||||
"description": _("Categorize blog posts."),
|
||||
},
|
||||
{
|
||||
"type": "doctype",
|
||||
"name": "About Us Settings",
|
||||
"description": _("Settings for About Us Page."),
|
||||
},
|
||||
{
|
||||
"type": "doctype",
|
||||
"name": "Contact Us Settings",
|
||||
"description": _("Settings for Contact Us Page."),
|
||||
},
|
||||
{
|
||||
"type": "doctype",
|
||||
"name": "Website Page Permission",
|
||||
"description": _("Define read, write, admin permissions for a Website Page."),
|
||||
},
|
||||
]
|
||||
},
|
||||
]
|
Loading…
x
Reference in New Issue
Block a user