From 1ac78c21a5101575e06d0464c4140f418c14b3e6 Mon Sep 17 00:00:00 2001 From: Gustavo Maximiliano Cortez Date: Wed, 28 Sep 2016 17:51:45 -0300 Subject: [PATCH] New send flow for bitpay card. Fix paypro txStatus. Minor bug fixes --- public/views/amount.html | 11 ++-- public/views/bitpayCard.html | 2 +- public/views/confirm.html | 21 +++++--- public/views/modals/paypro.html | 77 +++++++++++++-------------- public/views/modals/tx-status.html | 15 +++--- src/js/controllers/amount.js | 69 ++++++++++++++++++------ src/js/controllers/confirm.js | 23 ++++---- src/js/controllers/modals/txStatus.js | 15 ++++-- src/js/controllers/tabsController.js | 2 + src/js/routes.js | 18 +++++++ src/sass/common.scss | 13 +++++ src/sass/views/amount.scss | 3 ++ src/sass/views/confirm.scss | 3 ++ 13 files changed, 182 insertions(+), 90 deletions(-) diff --git a/public/views/amount.html b/public/views/amount.html index 207ca5c11..07460c375 100644 --- a/public/views/amount.html +++ b/public/views/amount.html @@ -12,10 +12,15 @@
Recipient
-
+
- - {{toName || toAddress}} + + + +
+
+
+ {{toName || toAddress}}
diff --git a/public/views/bitpayCard.html b/public/views/bitpayCard.html index 5480dc787..2b15d9aa6 100644 --- a/public/views/bitpayCard.html +++ b/public/views/bitpayCard.html @@ -101,7 +101,7 @@
- +
diff --git a/public/views/confirm.html b/public/views/confirm.html index 721ef18c8..aa039f4b4 100644 --- a/public/views/confirm.html +++ b/public/views/confirm.html @@ -26,14 +26,21 @@
- - To: {{toAddress}} -

{{toName}}

+
+ + +
+
+
+
+ To: {{toAddress}} +

{{toName}}

-
- - - {{_paypro.domain}} +
+ + + {{_paypro.domain}} +
diff --git a/public/views/modals/paypro.html b/public/views/modals/paypro.html index 20eecb676..e3fc96488 100644 --- a/public/views/modals/paypro.html +++ b/public/views/modals/paypro.html @@ -1,60 +1,57 @@ - -
- - Close - + + +
+ Payment request
-

Payment request

- - +
+ {{'Memo'|translate}} + {{_paypro.memo}} +
+
+ {{'Expires'|translate}} + {{_paypro.expires * 1000 | amTimeAgo }} +
-
diff --git a/public/views/modals/tx-status.html b/public/views/modals/tx-status.html index 6d808fafb..426c762af 100644 --- a/public/views/modals/tx-status.html +++ b/public/views/modals/tx-status.html @@ -4,13 +4,14 @@
{{tx.amountStr}}
-
- Sent +
+ Sent + Funds sent
-
+ -
+

Would you like to add this address to your address book?

@@ -40,7 +41,7 @@