session data for users and guests
This commit is contained in:
parent
e669790e0f
commit
3cec9cefa2
6 changed files with 170 additions and 83 deletions
|
|
@ -77,9 +77,6 @@ pandora.ui.usersDialog = function() {
|
|||
title: $('<img>').attr({
|
||||
src: Ox.UI.getImageURL('symbolCheck')
|
||||
}),
|
||||
tooltip: function(data) {
|
||||
return data.disabled ? 'Enable User' : 'Disable User';
|
||||
},
|
||||
visible: true,
|
||||
width: 16
|
||||
},
|
||||
|
|
@ -221,10 +218,14 @@ pandora.ui.usersDialog = function() {
|
|||
$user.empty();
|
||||
if (data.ids.length) {
|
||||
values = $list.value(data.ids[0]);
|
||||
$userLabel.options({
|
||||
title: values.username + ' <' + values.email + '>'
|
||||
});
|
||||
$user.append(renderUserForm(values))
|
||||
if(values.level != 'guest') {
|
||||
$userLabel.options({
|
||||
title: values.username + ' <' + values.email + '>'
|
||||
});
|
||||
$user.append(renderUserForm(values));
|
||||
} else {
|
||||
$userLabel.options({title: 'Guest'});
|
||||
}
|
||||
} else {
|
||||
$userLabel.options({title: 'No user selected'});
|
||||
}
|
||||
|
|
@ -269,8 +270,10 @@ pandora.ui.usersDialog = function() {
|
|||
.addClass('OxSelectable')
|
||||
.css({margin: '16px'})
|
||||
.html(
|
||||
result.data.items.map(function(item) {
|
||||
return item.username + ' <' + item.email + '>'
|
||||
result.data.items.filter(function(item) {
|
||||
return item.email;
|
||||
}).map(function(item) {
|
||||
return item.username + ' <' + item.email + '>';
|
||||
}).join(', ')
|
||||
),
|
||||
title: 'E-Mail Addresses'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue