Add account-level parameter UI
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/ad38060e Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/ad38060e Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/ad38060e Branch: refs/heads/internallb Commit: ad38060e3a9fd45dda7de4fd10450b116db2283a Parents: 9130cd0 Author: Brian Federle <[email protected]> Authored: Tue Apr 16 12:47:08 2013 -0700 Committer: Brian Federle <[email protected]> Committed: Tue Apr 16 12:47:08 2013 -0700 ---------------------------------------------------------------------- ui/scripts/accounts.js | 21 +++++++++++++++++++++ 1 files changed, 21 insertions(+), 0 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/ad38060e/ui/scripts/accounts.js ---------------------------------------------------------------------- diff --git a/ui/scripts/accounts.js b/ui/scripts/accounts.js index 8353d70..e663db8 100644 --- a/ui/scripts/accounts.js +++ b/ui/scripts/accounts.js @@ -895,6 +895,27 @@ } }); } + }, + + // Granular settings for account + settings: { + title: 'label.menu.global.settings', + custom: cloudStack.uiCustom.granularSettings({ + dataProvider: function(args) { + args.response.success({ + data: [ + { name: 'config.param.1', value: 1 }, + { name: 'config.param.2', value: 2 } + ] + }); + }, + actions: { + edit: function(args) { + // call updateAccountLevelParameters + args.response.success(); + } + } + }) } } }
