minor fixes, started admin editing
This commit is contained in:
parent
4bc535847c
commit
e4705c472d
@ -286,7 +286,7 @@ body {
|
|||||||
filter: drop-shadow(2px 2px 5px #666);
|
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%;
|
font-size: 130%;
|
||||||
padding: 5%;
|
padding: 5%;
|
||||||
|
|
||||||
|
|||||||
@ -947,6 +947,8 @@ function sendData(funcName) { // Call Meteor function, and do actions after func
|
|||||||
Session.set("currentWork", work.findOne({
|
Session.set("currentWork", work.findOne({
|
||||||
_id: currWork._id
|
_id: currWork._id
|
||||||
}));
|
}));
|
||||||
|
} else {
|
||||||
|
Session.set("currentWork",null);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@ -23,6 +23,7 @@ classes.schema = new SimpleSchema({
|
|||||||
subscribers: {type: [String], optional: true}
|
subscribers: {type: [String], optional: true}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
work.schema = new SimpleSchema({
|
work.schema = new SimpleSchema({
|
||||||
name: {type: String},
|
name: {type: String},
|
||||||
class: {type: String},
|
class: {type: String},
|
||||||
@ -42,3 +43,11 @@ requests.schema = new SimpleSchema({
|
|||||||
request: {type: String},
|
request: {type: String},
|
||||||
timeRequested: {type: Date}
|
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;
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|||||||
@ -117,7 +117,23 @@ AdminConfig = {
|
|||||||
name: 'Hourglass',
|
name: 'Hourglass',
|
||||||
collections: {
|
collections: {
|
||||||
schools: {},
|
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: {},
|
work: {},
|
||||||
requests: {}
|
requests: {}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<template name="AdminLTE">
|
<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}}
|
{{#unless isReady}}
|
||||||
{{> Template.dynamic template=loadingTemplate}}
|
{{> Template.dynamic template=loadingTemplate}}
|
||||||
{{else}}
|
{{else}}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user