diff --git a/chromebook-checkout-meteor/client/admin.css b/chromebook-checkout-meteor/client/admin.css index e82d5c5..681eb8d 100644 --- a/chromebook-checkout-meteor/client/admin.css +++ b/chromebook-checkout-meteor/client/admin.css @@ -18,4 +18,8 @@ .remove { margin-bottom: 4%; +} + +.row { + min-width: 80%; } \ No newline at end of file diff --git a/chromebook-checkout-meteor/client/checkout.html b/chromebook-checkout-meteor/client/checkout.html index a3e5890..2856d0d 100644 --- a/chromebook-checkout-meteor/client/checkout.html +++ b/chromebook-checkout-meteor/client/checkout.html @@ -7,7 +7,7 @@
{{> chromebook}} - +
{{/each}} diff --git a/chromebook-checkout-meteor/client/chromebook.css b/chromebook-checkout-meteor/client/chromebook.css index e4922a4..182e7b8 100644 --- a/chromebook-checkout-meteor/client/chromebook.css +++ b/chromebook-checkout-meteor/client/chromebook.css @@ -15,8 +15,8 @@ body { box-shadow: 3px 3px 10px #c2c2c2; color: #000000; height: 10%; - max-width: 80%; - min-width: 80%; +/* max-width: 100%;*/ + min-width: 92%; } .chromebook:hover { diff --git a/chromebook-checkout-meteor/client/chromebook.js b/chromebook-checkout-meteor/client/chromebook.js index 85bf3e1..e5003ec 100644 --- a/chromebook-checkout-meteor/client/chromebook.js +++ b/chromebook-checkout-meteor/client/chromebook.js @@ -22,15 +22,15 @@ Template.chromebook.helpers({ }); Template.chromebook.events({ - 'click .available, click .unavailable, click .checkedout': function() { - if (Roles.userIsInRole(Meteor.userId(), ['admin']) - && Router.current().route.path() === '/admin') { - var chromebook_number = $("input[name='anumber']")[0].value; - var chromebook_serial = $("input[name='anumber']")[0].nextElementSibling.value; - chromebook_number = this.number; - chromebook_serial = this.serial; - } - }, + // 'click .available, click .unavailable, click .checkedout': function() { + // if (Roles.userIsInRole(Meteor.userId(), ['admin']) + // && Router.current().route.path() === '/admin') { + // var chromebook_number = $("input[name='anumber']")[0].value; + // var chromebook_serial = $("input[name='anumber']")[0].nextElementSibling.value; + // chromebook_number = this.number; + // chromebook_serial = this.serial; + // } + // }, 'click .available': function() { if ((Chromebooks.findOne({userid: Meteor.userId()}) === undefined) || (Roles.userIsInRole(Meteor.userId(), ['admin', 'teacher']))) {