More admin functions
This commit is contained in:
parent
e4705c472d
commit
1d51d384d5
@ -44,6 +44,11 @@ requests.schema = new SimpleSchema({
|
||||
timeRequested: {type: Date}
|
||||
});
|
||||
|
||||
schools.attachSchema(schools.schema);
|
||||
classes.attachSchema(classes.schema);
|
||||
work.attachSchema(work.schema);
|
||||
requests.attachSchema(requests.schema);
|
||||
|
||||
classes.helpers({
|
||||
fullUserInfo() {
|
||||
var user = Meteor.users.findOne({_id: this.admin});
|
||||
|
||||
@ -116,7 +116,14 @@ options = {
|
||||
AdminConfig = {
|
||||
name: 'Hourglass',
|
||||
collections: {
|
||||
schools: {},
|
||||
schools: {
|
||||
icon: 'university',
|
||||
tableColumns: [
|
||||
{ label: 'ID', name: '_id' },
|
||||
{ label: 'Name', name: 'name' }
|
||||
],
|
||||
color: 'red'
|
||||
},
|
||||
classes: {
|
||||
tableColumns: [
|
||||
{ label: 'ID', name: '_id' },
|
||||
@ -132,10 +139,34 @@ AdminConfig = {
|
||||
{ label: 'Moderators', name: 'moderators' },
|
||||
{ label: 'Banned', name: 'banned' },
|
||||
{ label: 'Subscribers', name: 'subscribers' }
|
||||
]
|
||||
],
|
||||
color: 'blue'
|
||||
},
|
||||
work: {},
|
||||
requests: {}
|
||||
work: {
|
||||
tableColumns: [
|
||||
{ label: 'ID', name: '_id' },
|
||||
{ label: 'Class', name: 'class' },
|
||||
{ label: 'Name', name: 'name' },
|
||||
{ label: 'Due Date', name: 'dueDate' },
|
||||
{ label: 'Description', name: 'description' },
|
||||
{ label: 'Creator', name: 'creator' },
|
||||
{ label: 'Comments', name: 'comments' },
|
||||
{ label: 'Confirmations', name: 'confirmations' },
|
||||
{ label: 'Reports', name: 'reports' },
|
||||
{ label: 'Done', name: 'done' },
|
||||
{ label: 'Type', name: 'type' }
|
||||
],
|
||||
color: 'yellow'
|
||||
},
|
||||
requests: {
|
||||
tableColumns: [
|
||||
{ label: 'ID', name: '_id' },
|
||||
{ label: 'User', name: 'requestor' },
|
||||
{ label: 'Request', name: 'request' },
|
||||
{ label: 'Time', name: 'timeRequested' }
|
||||
],
|
||||
color: 'green'
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user