minor fixes, started admin editing

This commit is contained in:
Kenneth Jao 2016-10-21 03:03:11 -04:00
parent 4bc535847c
commit e4705c472d
5 changed files with 30 additions and 3 deletions

View File

@ -286,7 +286,7 @@ body {
filter: drop-shadow(2px 2px 5px #666);
}
.fa-plus, .fa-minus, .fa-tasks, .fa-graduation-cap, .fa-exchange {
.noScroll .fa-plus, .creWork .fa-plus, .fa-minus, .fa-tasks, .fa-graduation-cap, .fa-exchange {
font-size: 130%;
padding: 5%;

View File

@ -947,6 +947,8 @@ function sendData(funcName) { // Call Meteor function, and do actions after func
Session.set("currentWork", work.findOne({
_id: currWork._id
}));
} else {
Session.set("currentWork",null);
}
});
}

View File

@ -23,6 +23,7 @@ classes.schema = new SimpleSchema({
subscribers: {type: [String], optional: true}
});
work.schema = new SimpleSchema({
name: {type: String},
class: {type: String},
@ -42,3 +43,11 @@ requests.schema = new SimpleSchema({
request: {type: String},
timeRequested: {type: Date}
});
classes.helpers({
fullUserInfo() {
var user = Meteor.users.findOne({_id: this.admin});
console.log(user);
return this.admin + " | " + user.services.google.email + " | " + user.profile.name;
}
})

View File

@ -117,7 +117,23 @@ AdminConfig = {
name: 'Hourglass',
collections: {
schools: {},
classes: {},
classes: {
tableColumns: [
{ label: 'ID', name: '_id' },
{ label: 'School', name: 'school' },
{ label: 'Name', name: 'name' },
{ label: 'Hour', name: 'hour' },
{ label: 'Teacher', name: 'teacher' },
{ label: 'Admin', name: 'admin' },
{ label: 'Status', name: 'status' },
{ label: 'Code', name: 'code' },
{ label: 'Privacy', name: 'privacy' },
{ label: 'Category', name: 'category' },
{ label: 'Moderators', name: 'moderators' },
{ label: 'Banned', name: 'banned' },
{ label: 'Subscribers', name: 'subscribers' }
]
},
work: {},
requests: {}
}

View File

@ -1,5 +1,5 @@
<template name="AdminLTE">
<link rel="stylesheet" type="text/css" href="bootstrap/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="/bootstrap/bootstrap.min.css">
{{#unless isReady}}
{{> Template.dynamic template=loadingTemplate}}
{{else}}