forked from 0x2620/pandora
add (non-functional) 'show guests' ui to manage users dialog
This commit is contained in:
parent
31908adbb1
commit
2f115f2dfc
1 changed files with 9 additions and 7 deletions
|
@ -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
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue