From a25f969d2d56d586a71d95e0150547071fce7bfc Mon Sep 17 00:00:00 2001 From: phamt Date: Mon, 29 Apr 2013 15:37:23 +0000 Subject: [PATCH] Simplified selection of user types when creating an xCAT user from the UI. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16121 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-UI/js/configure/users.js | 27 ++++++++++++------- .../netboot/sles/compute.sles11.s390x.pkglist | 3 ++- 2 files changed, 20 insertions(+), 10 deletions(-) diff --git a/xCAT-UI/js/configure/users.js b/xCAT-UI/js/configure/users.js index 9f5ce132b..d534f8dba 100644 --- a/xCAT-UI/js/configure/users.js +++ b/xCAT-UI/js/configure/users.js @@ -169,7 +169,7 @@ function loadUserTable(data){ }); // Create an action menu - var actionsMenu = createMenu([createLnk, editLnk, deleteLnk, refreshLnk]); + var actionsMenu = createMenu([refreshLnk, createLnk, editLnk, deleteLnk]); actionsMenu.superfish(); actionsMenu.css('display', 'inline-block'); actionBar.append(actionsMenu); @@ -226,8 +226,16 @@ function openCreateUserDialog(data) { userAttr.append($('
')); userAttr.append($('
')); + var type = $('
'); + var typeSelect = $(''); + type.append(typeSelect); + userAttr.append(type); userAttr.append($('
')); userAttr.append($('
')); + optionAttr.append($('
')); optionAttr.append($('
')); optionAttr.append($('
')); @@ -238,10 +246,6 @@ function openCreateUserDialog(data) { '' + '' + '')); - var rootPrivilege = $('
'); - var accessCheckbox = $(''); - optionAttr.append(rootPrivilege); - rootPrivilege.append(accessCheckbox); optionAttr.append($('
')); optionAttr.append($('