add (non-functional) 'show guests' ui to manage users dialog

This commit is contained in:
rolux 2011-11-12 10:39:50 +00:00
parent 31908adbb1
commit 2f115f2dfc

View file

@ -9,6 +9,12 @@ pandora.ui.usersDialog = function() {
numberOfUsers = 0, numberOfUsers = 0,
userLevels = ['member', 'friend', 'staff', 'admin'], userLevels = ['member', 'friend', 'staff', 'admin'],
$guestsCheckbox = Ox.Checkbox({
checked: true,
title: 'Show Guests'
})
.css({float: 'left', margin: '4px'}),
$findSelect = Ox.Select({ $findSelect = Ox.Select({
items: [ items: [
{id: 'all', title: 'Find: All', checked: true}, {id: 'all', title: 'Find: All', checked: true},
@ -200,9 +206,7 @@ pandora.ui.usersDialog = function() {
keys: ['notes'], keys: ['notes'],
max: 1, max: 1,
scrollbarVisible: true, scrollbarVisible: true,
sort: [ sort: [{key: 'lastseen', operator: '-'}]
{key: 'username', operator: '+'}
]
}) })
.bindEvent({ .bindEvent({
init: function(data) { init: function(data) {
@ -303,10 +307,8 @@ pandora.ui.usersDialog = function() {
elements: [ elements: [
{ {
element: Ox.Bar({size: 24}) element: Ox.Bar({size: 24})
.append($status) .append($guestsCheckbox)
.append( .append($findElement),
$findElement
),
size: 24 size: 24
}, },
{ {