diff --git a/webnotes/config/setup.py b/webnotes/config/setup.py index 83a88b0f8a..12c852a30e 100644 --- a/webnotes/config/setup.py +++ b/webnotes/config/setup.py @@ -31,27 +31,6 @@ data = [ } ] }, - { - "label": _("Workflow"), - "icon": "icon-random", - "items": [ - { - "type": "doctype", - "name": "Workflow", - "description": _("Define workflows for forms.") - }, - { - "type": "doctype", - "name": "Workflow State", - "description": _("States for workflow (e.g. Draft, Approved, Cancelled).") - }, - { - "type": "doctype", - "name": "Workflow Action", - "description": _("Actions for workflow (e.g. Approve, Cancel).") - }, - ] - }, { "label": _("Tools"), "icon": "icon-wrench", @@ -87,6 +66,38 @@ data = [ } ] }, + { + "label": _("Workflow"), + "icon": "icon-random", + "items": [ + { + "type": "doctype", + "name": "Workflow", + "description": _("Define workflows for forms.") + }, + { + "type": "doctype", + "name": "Workflow State", + "description": _("States for workflow (e.g. Draft, Approved, Cancelled).") + }, + { + "type": "doctype", + "name": "Workflow Action", + "description": _("Actions for workflow (e.g. Approve, Cancel).") + }, + ] + }, + { + "label": _("Email"), + "icon": "icon-envelope", + "items": [ + { + "type": "doctype", + "name": "Email Settings", + "description": _("Set outgoing mail server.") + }, + ] + }, { "label": _("Customize"), "icon": "icon-glass", @@ -107,5 +118,28 @@ data = [ "description": _("Add custom javascript to forms.") } ] + }, + { + "label": _("System"), + "icon": "icon-cog", + "items": [ + { + "type": "page", + "name": "applications", + "label": _("Application Installer"), + "description": _("Install Applications."), + "icon": "icon-download" + }, + { + "type": "doctype", + "name": "Backup Manager", + "description": _("Manage cloud backups on Dropbox") + }, + { + "type": "doctype", + "name": "Scheduler Log", + "description": _("Log of error on automated events (scheduler).") + }, + ] } ] \ No newline at end of file diff --git a/webnotes/core/page/setup/setup.js b/webnotes/core/page/setup/setup.js index c929be3b5d..3f92fc59fe 100644 --- a/webnotes/core/page/setup/setup.js +++ b/webnotes/core/page/setup/setup.js @@ -39,20 +39,23 @@ wn.setup = { var $sections = wrapper.find(".nav-pills"); $.each(data, function(i, d) { d._label = d.label.toLowerCase().replace(/ /g, "_"); - $nav = $sections.find('[data-label="'+d._label+'"]'); + var $nav = $sections.find('[data-label="'+d._label+'"]'); if(!$sections.find('[data-label="'+d._label+'"]').length) { - $nav = $('