Started divs

This commit is contained in:
Yaman 2015-01-01 02:39:39 -05:00
parent a09ae9367b
commit 7673ad3b30
4 changed files with 18 additions and 10 deletions

View File

@ -0,0 +1,3 @@
.admintitle {
text-align: center;
}

View File

@ -1,8 +1,13 @@
<template name="admin">
<div id="center">
<div id="sign-in">
<h5>Chromebook Checkout</h5>
<button id="submit">Checkout!</button>
<h5 class="admintitle">Admin Panel</h5>
<div class="Adding">
<h6>Add a Chromebook</h6>
</div>
<div>
<h6>Remove a Chromebook</h6>
</div>
</div>
</div>
</template>

View File

@ -24,5 +24,13 @@ Template.checkout.events({
else {
alert("Access Denied");
}
},
'click .edit': function() {
if (Roles.userIsInRole(Meteor.userId(), ['admin'])) {
Router.go('/admin');
}
else {
alert("Access Denied");
}
}
});

View File

@ -37,13 +37,5 @@ Template.chromebook.events({
Chromebooks.update(this._id, {$set: {last_checkout: null}});
Chromebooks.update(this._id, {$set: {userid: null}});
}
},
'click .cross': function() {
if (Roles.userIsInRole(Meteor.userId(), ['admin'])) {
Router.go('/admin');
}
else {
alert("Access Denied");
}
}
});