2016-05-27 15:16:25 -03:00
< ion-modal-view ng-controller = "txpDetailsController" >
2016-09-07 13:34:47 -03:00
< ion-header-bar align-title = "center" class = "bar-royal" ng-style = "{'background-color':color}" >
< button class = "button button-clear" ng-click = "close()" >
Close
< / button >
< div class = "title" translate >
Payment Proposal
2016-06-15 12:47:01 -03:00
< / div >
< / ion-header-bar >
2015-12-03 13:43:59 -03:00
2016-09-07 13:34:47 -03:00
< ion-content ng-init = "updateCopayerList()" >
2016-05-27 15:16:25 -03:00
< div class = "payment-proposal-head" ng-style = "{'background-color':color}" >
< div class = "size-36" > {{tx.amountStr}}< / div >
< div class = "size-14 text-light" ng-show = "tx.alternativeAmountStr" > {{tx.alternativeAmountStr}}< / div >
2016-09-07 13:34:47 -03:00
< i class = "icon ion-ios-arrow-thin-down" > < / i >
2016-08-23 12:16:05 -03:00
< span class = "payment-proposal-to" copy-to-clipboard = "tx.toAddress" >
2016-05-27 15:16:25 -03:00
< contact ng-if = "!tx.hasMultiplesOutputs" class = "dib enable_text_select ellipsis m5t m5b size-14" address = "{{tx.toAddress}}" > < / contact >
< span ng-if = "tx.hasMultiplesOutputs" translate > Multiple recipients< / span >
< / span >
2015-12-03 13:43:59 -03:00
< / div >
2016-09-07 13:34:47 -03:00
< div class = "row" ng-if = "tx.removed" >
< div class = "column m20t text-center text-warning size-12" translate >
The payment was removed by creator
2016-05-27 15:16:25 -03:00
< / div >
2016-09-07 13:34:47 -03:00
< / div >
2016-08-18 10:08:23 -03:00
2016-09-07 13:34:47 -03:00
< div class = "button-bar" ng-if = "tx.pendingForUs" >
< button class = "button button-assertive button-block" ng-click = "reject()" ng-disabled = "loading" ng-show = "isShared" >
< i class = "fi-x" > < / i >
< span translate > Reject< / span >
< / button >
< button class = "button button-balanced button-block" ng-click = "sign()" ng-style = "{'background-color':color}" ng-disabled = "loading || paymentExpired" ng-show = "canSign" >
< i class = "fi-check" > < / i >
< span translate > Accept< / span >
< / button >
< / div >
2016-05-27 15:16:25 -03:00
2016-08-18 10:08:23 -03:00
2016-09-07 13:34:47 -03:00
< div ng-show = "tx.status != 'pending'" >
< div ng-show = "tx.status=='accepted' && !tx.isGlidera" >
< div class = "m10b" translate > Payment accepted, but not yet broadcasted< / div >
2016-05-27 15:16:25 -03:00
2016-09-07 13:34:47 -03:00
< button class = "button button-balanced button-block" ng-style = "{'background-color':color}" ng-click = "broadcast(tx)" ng-disabled = "loading" >
< i class = "fi-upload-cloud" > < / i >
< span translate > Broadcast Payment< / span >
< / button >
< / div >
< div ng-show = "tx.status=='accepted' && tx.isGlidera" >
< div class = "m10h" translate > Payment accepted. It will be broadcasted by Glidera. In case there is a problem, it can be deleted 6 hours after it was created.< / div >
2016-05-27 15:16:25 -03:00
< / div >
2016-09-07 13:34:47 -03:00
< div class = "balanced" ng-show = "tx.status == 'broadcasted'" translate > Payment Sent< / div >
< div class = "assertive" ng-show = "tx.status=='rejected'" translate > Payment Rejected< / div >
< / div >
2015-08-20 16:43:03 -03:00
2016-09-07 13:34:47 -03:00
< ul class = "list" >
< div class = "item item-divider" translate > Details< / div >
< li class = "item" ng-show = "tx.message" >
2016-06-03 12:50:37 -03:00
< span class = "text-gray" translate > Description< / span >
2016-05-27 15:16:25 -03:00
< span class = "right" > {{tx.message}}< / span >
< / li >
2015-12-03 13:43:59 -03:00
2016-09-07 13:34:47 -03:00
< li ng-show = "tx.hasMultiplesOutputs" class = "item" ng-click = "showMultiplesOutputs = !showMultiplesOutputs" >
2016-05-27 15:16:25 -03:00
< span class = "text-gray" translate > Recipients< / span >
< span class = "right" > {{tx.recipientCount}}
2016-09-07 13:34:47 -03:00
< i ng-show = "showMultiplesOutputs" class = "icon ion-ios-arrow-up" > < / i >
< i ng-show = "!showMultiplesOutputs" class = "icon ion-ios-arrow-up" > < / i >
2015-03-06 12:00:10 -03:00
< / span >
2016-05-27 15:16:25 -03:00
< / li >
2016-09-07 13:34:47 -03:00
< div class = "item" ng-show = "tx.hasMultiplesOutputs && showMultiplesOutputs"
2016-05-27 15:16:25 -03:00
ng-repeat="output in tx.outputs" ng-include="'views/includes/output.html'">
< / div >
2015-03-06 12:00:10 -03:00
2016-09-07 13:34:47 -03:00
< li class = "item" >
2016-05-27 15:16:25 -03:00
< span class = "text-gray" translate > Fee< / span >
< span class = "right" > {{tx.feeStr}}< / span >
< / li >
2016-09-07 13:34:47 -03:00
< li class = "item" >
2016-05-27 15:16:25 -03:00
< span class = "text-gray" translate > Time< / span >
< span class = "right" >
< time > {{ (tx.ts || tx.createdOn ) * 1000 | amTimeAgo}}< / time >
< / span >
< / li >
2016-09-07 13:34:47 -03:00
< li class = "item" >
2016-05-27 15:16:25 -03:00
< span class = "text-gray" translate > Created by< / span >
< span class = "right" > {{tx.creatorName}}< / span >
< / li >
2016-09-07 13:34:47 -03:00
< div class = "item" ng-show = "!currentSpendUnconfirmed && tx.hasUnconfirmedInputs" >
< span class = "text-warning" translate > Warning: this transaction has unconfirmed inputs< / span >
< / div >
2015-04-22 02:48:00 -03:00
2016-09-07 13:34:47 -03:00
< div ng-if = "tx.paypro" >
< div class = "item item-divider" translate > Payment details< / div >
< li class = "item" >
2016-05-27 15:16:25 -03:00
< span class = "text-gray" translate > To< / span >
< span class = "right" >
< span >
< span ng-show = "tx.merchant.pr.ca" > < i class = "fi-lock" > < / i > {{tx.paypro.domain}}< / span >
< span ng-show = "!tx.merchant.pr.ca" > < i class = "fi-unlock" > < / i > {{tx.paypro.domain}}< / span >
< / span >
< contact address = "{{tx.toAddress}}" ng-hide = "tx.merchant" > < / contact >
< / span >
< / li >
2016-09-07 13:34:47 -03:00
< li class = "item" ng-if = "paymentExpired" >
2016-05-27 15:16:25 -03:00
< span class = "text-gray" translate > Expired< / span >
< span class = "right text-alert" >
< time > {{tx.paypro.expires * 1000 | amTimeAgo }}< / time >
< / span >
< / li >
2016-09-07 13:34:47 -03:00
< li class = "item" ng-if = "!paymentExpired" >
2016-05-27 15:16:25 -03:00
< span class = "text-gray" translate > Expires< / span >
< span class = "right" >
< time > {{expires}}< / time >
< / span >
< / li >
2016-09-07 13:34:47 -03:00
< li class = "item" >
2016-09-01 10:12:06 -03:00
< span class = "text-gray" translate > Merchant Message< / span >
2016-05-27 15:16:25 -03:00
< span class = "db" > {{tx.paypro.pr.pd.memo}}< / span >
< / li >
2016-09-07 13:34:47 -03:00
< / div >
2015-04-22 02:48:00 -03:00
2016-09-07 13:34:47 -03:00
< div ng-if = "tx.actions[0] && !txRejected && !txBroadcasted" >
< div class = "item item-divider" >
< div class = "right size-12 text-gray m10r" >
{{tx.requiredSignatures}}/{{tx.walletN}}
< / div >
< span translate > Participants< / span >
2016-05-27 15:16:25 -03:00
< / div >
2016-09-07 13:34:47 -03:00
< li class = "item" ng-repeat = "ac in tx.actions" >
< span class = "item-note" >
< i ng-if = "ac.type == 'reject'" class = "icon ion-ios-close-empty" > < / i >
< i ng-if = "ac.type == 'accept'" class = "icon ion-ios-checkmark-empty" > < / i >
2016-05-27 15:16:25 -03:00
< / span >
2016-06-06 21:52:14 +02:00
{{ac.copayerName}} < span ng-if = "ac.copayerId == copayerId" > ({{'Me'|translate}})< / span >
2016-05-27 15:16:25 -03:00
< / li >
< / div >
2016-09-07 13:34:47 -03:00
< / ul >
< div class = "m20t" ng-if = "tx.canBeRemoved || (tx.status == 'accepted' && !tx.broadcastedOn)" >
< div class = "size-12 padding" ng-show = "!tx.isGlidera && isShared" translate >
* A payment proposal can be deleted if 1) you are the creator, and no other copayer has signed, or 2) 24 hours have passed since the proposal was created.
< / div >
< button class = "button button-assertive button-block" ng-click = "remove()" ng-disabled = "loading" >
< i class = "fi-trash size-14 m5r" > < / i >
< span translate > Delete Payment Proposal< / span >
< / button >
2016-05-27 15:16:25 -03:00
< / div >
< / ion-content >
< / ion-modal-view >