Started divs
This commit is contained in:
parent
a09ae9367b
commit
7673ad3b30
3
chromebook-checkout-meteor/client/admin.css
Normal file
3
chromebook-checkout-meteor/client/admin.css
Normal file
@ -0,0 +1,3 @@
|
||||
.admintitle {
|
||||
text-align: center;
|
||||
}
|
||||
@ -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>
|
||||
@ -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");
|
||||
}
|
||||
}
|
||||
});
|
||||
@ -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");
|
||||
}
|
||||
}
|
||||
});
|
||||
Loading…
x
Reference in New Issue
Block a user