From 84acfbea069f327de72c19087b1f829dc0eb08f2 Mon Sep 17 00:00:00 2001 From: Aisha Ragheb Date: Thu, 12 Jan 2017 15:12:18 -0600 Subject: [PATCH 001/158] CCN-212 login styles for buyer app --- src/app/styles/pages/_login.less | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/app/styles/pages/_login.less b/src/app/styles/pages/_login.less index 5447b4e9..aa56a1bc 100644 --- a/src/app/styles/pages/_login.less +++ b/src/app/styles/pages/_login.less @@ -5,7 +5,15 @@ bottom:0; top:0; .panel { + top: 15em; max-width:300px; margin:0 auto; + // for layout on small screens + @media (max-width: @screen-sm-max) { + background-color: transparent; + top: 5em; + border: none; + box-shadow: none; + } } } \ No newline at end of file From dd2427461e8c7c396e1b825a8588f8d3ca9b081b Mon Sep 17 00:00:00 2001 From: Steve Davis Date: Fri, 13 Jan 2017 15:20:45 -0600 Subject: [PATCH 002/158] Adding angular-payments bower package --- bower.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bower.json b/bower.json index 1b3e82bf..efa9a2cc 100644 --- a/bower.json +++ b/bower.json @@ -41,7 +41,8 @@ "angular-ui-router": "^0.3.1", "angular-tree-control": "^0.2.28", "angular-sticky": "angular-sticky-plugin#^0.3.0", - "angular-busy2": "^5.2.0" + "angular-busy2": "^5.2.0", + "angular-payments": "*" }, "devDependencies": { "angular-mocks": "^1.6.0" From 275f035b9a8b256fae3b174944e747cee0e1cf4a Mon Sep 17 00:00:00 2001 From: Steve Davis Date: Fri, 13 Jan 2017 17:21:30 -0600 Subject: [PATCH 003/158] CCN-239 - Improve Credit Card form UX --- src/app/app.constants.json | 8 +- src/app/app.module.js | 3 +- .../myPaymentCreditCard.modalFactory.js | 5 + ...myPaymentsCreditCard.create.modal.tpl.html | 128 ++++++++++-------- .../myPaymentsCreditCard.edit.modal.tpl.html | 71 +++++----- 5 files changed, 120 insertions(+), 95 deletions(-) diff --git a/src/app/app.constants.json b/src/app/app.constants.json index ea190d0d..d6f332b9 100644 --- a/src/app/app.constants.json +++ b/src/app/app.constants.json @@ -1,9 +1,9 @@ { - "appname": "Angular Buyer", + "appname": "CUPS Cafe Network", "scope": "FullAccess", - "clientid": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX", - "buyerid": "XXXX", - "catalogid": "XXXX", + "clientid": "F286B844-C604-4081-9D22-F79EA176D8DC", + "buyerid": "cafebiba", + "catalogid": "defaultCupsCatalog", "environment": "prod", "defaultstate": "home", "anonymous": false diff --git a/src/app/app.module.js b/src/app/app.module.js index 5dbf7981..15ff7ed2 100644 --- a/src/app/app.module.js +++ b/src/app/app.module.js @@ -12,6 +12,7 @@ angular.module('orderCloud', [ 'angular-busy', 'jcs-autoValidate', 'treeControl', - 'hl.sticky' + 'hl.sticky', + 'angularPayments' ] ); \ No newline at end of file diff --git a/src/app/myPayments/myPaymentCreditCard.modalFactory.js b/src/app/myPayments/myPaymentCreditCard.modalFactory.js index de77d5d9..38156603 100644 --- a/src/app/myPayments/myPaymentCreditCard.modalFactory.js +++ b/src/app/myPayments/myPaymentCreditCard.modalFactory.js @@ -48,6 +48,10 @@ function CreateCreditCardModalController($q, $exceptionHandler, $uibModalInstanc vm.loading = { message: 'Creating Credit Card' }; + + vm.creditCard.ExpirationMonth = vm.creditCard.ExpirationDate.split('/')[0]; + vm.creditCard.ExpirationYear = vm.creditCard.ExpirationDate.split('/')[1]; + vm.loading.promise = ocAuthNet.CreateCreditCard(vm.creditCard) .then(function(data){ $uibModalInstance.close(data.ResponseBody); @@ -65,6 +69,7 @@ function EditCreditCardModalController($q, $exceptionHandler, $uibModalInstance, var date = new Date(vm.creditCard.ExpirationDate); vm.creditCard.ExpirationMonth = (date.toISOString().substring(5,7)); vm.creditCard.ExpirationYear = date.getFullYear(); + vm.creditCard.ExpirationDate = date.getMonth() + "/" + date.getFullYear(); vm.cancel = function() { $uibModalInstance.dismiss(); diff --git a/src/app/myPayments/templates/myPaymentsCreditCard.create.modal.tpl.html b/src/app/myPayments/templates/myPaymentsCreditCard.create.modal.tpl.html index c5574942..b64175d6 100644 --- a/src/app/myPayments/templates/myPaymentsCreditCard.create.modal.tpl.html +++ b/src/app/myPayments/templates/myPaymentsCreditCard.create.modal.tpl.html @@ -1,3 +1,36 @@ +