From 329a5200711e784dc19d62bb55b6d96021b8b9d2 Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Fri, 4 Nov 2011 15:27:51 -0700 Subject: [PATCH] cloudStack 3.0 new UI - account page - user page - add details tab. --- ui/scripts/accounts.js | 52 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 51 insertions(+), 1 deletion(-) diff --git a/ui/scripts/accounts.js b/ui/scripts/accounts.js index 4d16070890f..27ad1933f6a 100644 --- a/ui/scripts/accounts.js +++ b/ui/scripts/accounts.js @@ -260,7 +260,57 @@ args.response.success({data: json.listusersresponse.user}); } }) - } + }, + + detailView: { + name: 'User details', + tabs: { + details: { + title: 'details', + + fields: [ + { + username: { label: 'Name' } + }, + { + id: { label: 'ID' }, + state: { label: 'State' }, + apikey: { label: 'API key' }, + secretkey: { label: 'Secret key' }, + account: { label: 'Account name' }, + accounttype: { + label: 'Role', + converter: function(args) { + return cloudStack.converters.toRole(args); + } + }, + domain: { label: 'Domain' }, + email: { label: 'Email' }, + firstname: { label: 'First name' }, + lastname: { label: 'Last name' }, + timezone: { + label: 'Timezone', + converter: function(args) { + if(args == null || args.length == 0) + return ""; + else + return timezoneMap[args]; + } + } + } + ], + + dataProvider: function(args) { + args.response.success( + { + actionFilter: accountActionfilter, + data:args.context.users[0] + } + ); + } + } + } + } } } }