From c160d2bb284e13bece40f31cace3adf79343c549 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Fri, 7 Feb 2014 19:05:05 +0530 Subject: [PATCH] updates to config.setup --- webnotes/config/setup.py | 76 ++++++++++++++++++++++--------- webnotes/core/page/setup/setup.js | 15 +++--- 2 files changed, 64 insertions(+), 27 deletions(-) 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 = $('
  • ' + $nav = $('
  • ' + wn._(d.label)+'
  • ') .attr("data-label", d._label) .appendTo($sections); - $content = $('
    ') + var $content = $('
    ') .toggle(false) .attr("id", d._label) .appendTo(wrapper.find(".contents")) $('
    ').appendTo($content).html(' ' + d.label); - $list = $('