move the more interesting stuff into the visible area of the manage users dialog

This commit is contained in:
rolux 2012-03-21 13:20:22 +00:00
parent 25623505b0
commit 39f1d0749c

View file

@ -108,6 +108,69 @@ pandora.ui.usersDialog = function() {
visible: true, visible: true,
width: 16 width: 16
}, },
{
format: function(value, data) {
return '<span style="opacity: ' + (
data.disabled ? 0.5 : 1
) + '">' + Ox.encodeHTMLEntities(value) + '</span>';
},
id: 'username',
operator: '+',
removable: false,
title: 'Username',
visible: true,
width: 120
},
{
format: function(value, data) {
return '<span style="opacity: ' + (
data.disabled ? 0.5 : 1
) + '">' + value + '</span>';
},
id: 'email',
operator: '+',
title: 'E-Mail Address',
visible: true,
width: 180
},
{
align: 'center',
format: function(value, data) {
var userLevel = data.useragent.indexOf('Googlebot') > -1
? 'Robot' : Ox.toTitleCase(value);
return Ox.Theme.formatColorLevel(
userLevels.indexOf(userLevel),
userLevels,
[0, 300]
);
},
id: 'level',
operator: '-',
title: 'Level',
type: 'label',
visible: true,
width: 60
},
{
format: function(value) {
return $('<img>')
.attr({
src: Ox.UI.getImageURL('symbolMail')
})
.css({
width: '10px',
height: '10px',
padding: '3px',
opacity: +value
});
},
id: 'newsletter',
title: 'Newsletter',
titleImage: 'mail',
operator: '-',
visible: true,
width: 16
},
{ {
format: function(value) { format: function(value) {
return Ox.Element({ return Ox.Element({
@ -194,87 +257,11 @@ pandora.ui.usersDialog = function() {
visible: true, visible: true,
width: 16 width: 16
}, },
{
format: function(value, data) {
return '<span style="opacity: ' + (
data.disabled ? 0.5 : 1
) + '">' + Ox.encodeHTMLEntities(value) + '</span>';
},
id: 'username',
operator: '+',
removable: false,
title: 'Username',
visible: true,
width: 120
},
{
format: function(value, data) {
return '<span style="opacity: ' + (
data.disabled ? 0.5 : 1
) + '">' + value + '</span>';
},
id: 'email',
operator: '+',
title: 'E-Mail Address',
visible: true,
width: 180
},
{
align: 'center',
format: function(value, data) {
var userLevel = data.useragent.indexOf('Googlebot') > -1
? 'Robot' : Ox.toTitleCase(value);
return Ox.Theme.formatColorLevel(
userLevels.indexOf(userLevel),
userLevels,
[0, 300]
);
},
id: 'level',
operator: '-',
title: 'Level',
type: 'label',
visible: true,
width: 60
},
{
id: 'groups',
operator: '+',
title: 'Groups',
visible: true,
width: 90
},
{ {
align: 'right',
format: function(value) { format: function(value) {
return $('<img>') return Ox.formatNumber(value);
.attr({
src: Ox.UI.getImageURL('symbolMail')
})
.css({
width: '10px',
height: '10px',
padding: '3px',
opacity: +value
});
}, },
id: 'newsletter',
title: 'Newsletter',
titleImage: 'mail',
operator: '-',
visible: true,
width: 16
},
{
id: 'numberoflists',
align: 'right',
operator: '-',
title: 'Lists',
visible: true,
width: 60
},
{
align: 'right',
id: 'timesseen', id: 'timesseen',
operator: '-', operator: '-',
title: 'Times Seen', title: 'Times Seen',
@ -304,6 +291,21 @@ pandora.ui.usersDialog = function() {
visible: true, visible: true,
width: 150 width: 150
}, },
{
id: 'numberoflists',
align: 'right',
operator: '-',
title: 'Lists',
visible: true,
width: 60
},
{
id: 'groups',
operator: '+',
title: 'Groups',
visible: true,
width: 90
},
{ {
id: 'screensize', id: 'screensize',
align: 'right', align: 'right',
@ -629,18 +631,6 @@ pandora.ui.usersDialog = function() {
value: user.level, value: user.level,
width: formWidth - 16 width: formWidth - 16
}), }),
Ox.Input({
id: 'groups',
label: 'Groups',
labelWidth: 80,
value: user.groups ? user.groups.join(', ') : '',
width: formWidth - 16
})
.bindEvent({
submit: function(data) {
}
}),
Ox.Checkbox({ Ox.Checkbox({
id: 'newsletter', id: 'newsletter',
label: 'Newsletter', label: 'Newsletter',
@ -657,6 +647,18 @@ pandora.ui.usersDialog = function() {
}); });
} }
}), }),
Ox.Input({
id: 'groups',
label: 'Groups',
labelWidth: 80,
value: user.groups ? user.groups.join(', ') : '',
width: formWidth - 16
})
.bindEvent({
submit: function(data) {
}
}),
Ox.Input({ Ox.Input({
height: dialogHeight - 184, height: dialogHeight - 184,
id: 'notes', id: 'notes',