2014-12-04 02:56:50 -03:00
< div class = "send" ng-controller = "SendController" ng-init = "init()" >
2014-12-04 10:36:58 -03:00
< div class = "row" >
< div class = "large-12 medium-12 small-12 columns" >
< h1 class = "hide-for-large-up" > {{$root.title}}< / h1 >
< / div >
< / div >
2014-11-04 16:32:43 -03:00
< div class = "row" >
2014-11-20 01:48:22 -03:00
< div class = "large-12 columns" >
2014-11-27 11:42:40 -03:00
< form name = "sendForm" ng-submit = "submitForm(sendForm)" novalidate >
2014-11-18 17:01:43 -03:00
< div class = "panel" >
2014-12-05 17:59:15 -03:00
< div class = "box-notification" ng-show = "error" >
< div class = "box-icon error" >
< i class = "fi-x size-24" > < / i >
< / div >
< span class = "text-warning size-14" >
{{error|translate}}
< / span >
< / div >
< div class = "box-notification" ng-show = "success" >
< div class = "box-icon success" >
< i class = "fi-check size-24" > < / i >
< / div >
< span class = "text-success size-14" >
{{success|translate}}
< / span >
< / div >
2014-11-20 02:05:57 -03:00
2014-11-18 17:01:43 -03:00
< div class = "row collapse" >
< label for = "address" class = "left" >
< span translate > To< / span >
< i class = "fi-info size-12" href = "#"
data-options="disable_for_touch:true"
tooltip-popup-delay='500'
tooltip="{{'Enter a valid Bitcoin address. Payment Protocol URLs are also supported'|translate}}"
tooltip-trigger="mouseenter"
tooltip-placement="right">< / i >
2014-12-01 19:01:10 -03:00
< small translate ng-hide = "!sendForm.address.$pristine && address" > required< / small >
2014-11-18 17:01:43 -03:00
< / label >
< span translate class = "has-error right size-12" ng-show = "sendForm.address.$invalid && address" >
< span class = "icon-input" > < i class = "fi-x" > < / i > < / span >
Not valid
< / span >
< small class = "icon-input right" ng-show = "!sendForm.address.$invalid && address" > < i class = "fi-check" > < / i > < / small >
2014-11-27 18:33:07 -03:00
< / div >
2014-11-18 17:01:43 -03:00
2014-11-27 18:33:07 -03:00
< div class = "input" >
2014-12-01 19:01:10 -03:00
< input type = "text" id = "address" name = "address" ng-disabled = "loading || !!$root.merchant || isPayUri"
placeholder="{{'Bitcoin address'|translate}}" ng-model="address" valid-address required>
2014-12-05 12:29:47 -03:00
< i class = "fi-address-book" > < / i >
2014-11-27 18:33:07 -03:00
< div ng-hide = "showScanner || disableScanner" >
< a class = "postfix button black" ng-click = "openScanner()" > < i class = "fi-camera size-24" > < / i > < / a >
2014-09-08 14:58:24 -07:00
< / div >
2014-11-27 18:33:07 -03:00
< div ng-show = "showScanner" >
< a translate class = "postfix button warning" ng-click = "cancelScanner()" > < i class = "fi-x size-18" > < / i > < / a >
< / div >
< / div >
2014-11-19 11:48:36 -03:00
2014-11-27 18:33:07 -03:00
< div id = "scanner"
class="row"
ng-if="showScanner"
ng-include="'views/includes/scanner.html'">
2014-09-08 14:58:24 -07:00
< / div >
2014-11-18 17:01:43 -03:00
2014-11-27 18:33:07 -03:00
2014-12-05 15:27:41 -03:00
< div class = "row" ng-init = "showAlternative = false" >
< div class = "large-12 medium-12 columns" >
< div class = "m5b right" >
2014-12-01 19:01:10 -03:00
< span translate class = "has-error right size-12" ng-show = "sendForm.amount.$invalid & &
!sendForm.amount.$pristine & & (notValidAmount || amount)">
2014-11-18 17:01:43 -03:00
< span class = "icon-input" > < i class = "fi-x" > < / i > < / span >
Not valid
< / span >
< small class = "icon-input right" ng-show = "!sendForm.amount.$invalid & &
!sendForm.amount.$pristine">< i class = "fi-check" > < / i > < / small >
2014-12-05 15:27:41 -03:00
< / div >
< div ng-show = "!showAlternative" >
< div class = "row collapse" >
< label for = "amount" > < span translate > Amount in< / span > {{$root.wallet.settings.unitName}}
< small translate ng-hide = "!sendForm.amount.$pristine && amount" > required< / small >
< / label >
< div class = "small-9 columns" >
< div class = "input" >
< input type = "number" id = "amount"
ng-disabled="loading || ($root.merchant & & +$root.merchant.total > 0) || isPayUri"
name="amount" placeholder="{{'Amount'|translate}}" ng-model="amount"
ng-minlength="0.00000001" ng-maxlength="10000000000" valid-amount required
autocomplete="off">
< i class = "icon-bitcoin" > < / i >
< / div >
< a class = "small input-note" title = "{{'Send all funds'|translate}}"
ng-show="topAmount & & (!$root.merchant || +$root.merchant.total === 0)"
ng-click="setTopAmount(sendForm)">
< span translate > Use all funds< / span > {{$root.wallet.settings.unitName}}
< / a >
< / div >
< div class = "small-3 columns pointer" ng-click = "showAlternative = true" >
< span class = "postfix" > {{$root.wallet.settings.unitName}}< / span >
2014-11-27 18:33:07 -03:00
< / div >
2014-11-18 17:01:43 -03:00
< / div >
2014-07-22 10:54:12 -03:00
< / div >
2014-12-05 15:27:41 -03:00
< div ng-show = "showAlternative" >
< div class = "row collapse" >
< label for = "alternative" > < span translate > Amount in< / span > {{ alternativeName }}
< small translate ng-hide = "!sendForm.amount.$pristine && amount" > required< / small >
< / label >
< div class = "small-9 columns" >
< div class = "input" >
< input type = "number" id = "alternative"
ng-disabled="loading || !isRateAvailable || ($root.merchant & & +$root.merchant.total > 0) ||
isPayUri"
name="alternative" placeholder="{{'Amount'|translate}}" ng-model="alternative" requiredautocomplete="off">
< i class = "icon-usd" > < / i >
< / div >
< / div >
< div class = "small-3 columns pointer" ng-click = "showAlternative = false" >
< span class = "postfix" > {{alternativeIsoCode}}< / span >
2014-11-27 18:33:07 -03:00
< / div >
2014-11-18 17:01:43 -03:00
< / div >
2014-09-08 14:58:24 -07:00
< / div >
2014-07-22 10:54:12 -03:00
< / div >
2014-07-18 18:56:39 -03:00
< / div >
2014-07-16 17:59:28 -03:00
2014-11-18 17:01:43 -03:00
< div class = "row" >
2014-11-20 02:05:57 -03:00
< div class = "large-12 columns" ng-show = "fetchingURL" >
< h3 >
2014-11-20 03:10:43 -03:00
< i class = "fi-bitcoin-circle icon-rotate spinner" > < / i >
2014-11-20 02:05:57 -03:00
Fetching payment
< / h3 >
< p > From {{fetchingURL}}
< / div >
2014-12-01 19:01:10 -03:00
< div class = "large-12 columns" ng-show = "!!$root.merchant || isPayUri" >
< h3 ng-show = "!isPayUri" > This is a payment protocol transaction< / h3 >
2014-11-18 17:01:43 -03:00
< div class = "send-note" >
< p >
2014-12-01 19:01:10 -03:00
< span ng-show = "isPayUri" > Payment to: < / span >
< b > {{$root.merchant.pr.pd.memo || address}}< / b >
2014-11-18 17:01:43 -03:00
< / p >
2014-11-20 03:10:43 -03:00
2014-11-18 17:01:43 -03:00
< p >
2014-12-04 10:24:54 -03:00
< i > {{amount}} {{$root.wallet.settings.unitName}}< / i >
2014-11-20 03:10:43 -03:00
< span class = "text-gray" ng-if = "isRateAvailable" >
2014-12-01 19:01:10 -03:00
{{ alternative }} {{ alternativeIsoCode }}
2014-11-20 03:10:43 -03:00
< / span >
< span class = "text-gray" >
2014-11-18 17:01:43 -03:00
(< span translate > Including fee of< / span >
2014-11-30 18:28:55 -03:00
{{defaultFee}}
2014-11-18 17:01:43 -03:00
{{$root.wallet.settings.unitName}})
2014-11-20 03:10:43 -03:00
< / span >
2014-12-01 19:01:10 -03:00
< p ng-show = "!!$root.merchant" >
2014-11-20 03:10:43 -03:00
Expires {{$root.merchant.expiration | amTimeAgo }}
[{{$root.merchant.domain}}]
< span ng-show = "!!$root.merchant.pr.ca" > < i class = "fi-lock" > < / i > {{$root.merchant.pr.ca}}< / span >
< span ng-show = "!$root.merchant.pr.ca" style = "color:red;weight:bold;" > < i class = "fi-unlock" > < / i > Untrusted< / span >
2014-12-01 19:01:10 -03:00
< / p >
2014-11-18 17:01:43 -03:00
< / div >
2014-08-27 14:20:13 -03:00
< / div >
< / div >
2014-07-16 17:59:28 -03:00
2014-11-18 17:01:43 -03:00
< div class = "row" >
< div class = "large-12 columns" >
< label for = "comment" > < span translate > Note< / span >
< small translate ng-hide = "!sendForm.comment.$pristine" > optional< / small >
< small translate class = "has-error" ng-show = "sendForm.comment.$invalid && !sendForm.comment.$pristine" > too long!< / small >
< / label >
2014-11-27 18:33:07 -03:00
< div class = "input" >
< textarea id = "comment" ng-disabled = "loading"
2014-12-04 02:56:50 -03:00
name="comment" placeholder="{{($root.wallet.isShared() ? 'Leave a private message to your copayers' : 'Add a private comment to identify the transaction')}}" ng-model="commentText" ng-maxlength="100">< / textarea >
2014-11-28 16:27:21 -03:00
< i class = "icon-compose" > < / i >
2014-11-27 18:33:07 -03:00
< / div >
2014-11-18 17:01:43 -03:00
< / div >
2014-07-22 10:54:12 -03:00
< / div >
2014-11-04 16:32:43 -03:00
2014-11-18 17:01:43 -03:00
< div class = "row" >
2014-11-20 11:42:56 -03:00
< div class = "large-6 medium-6 small-6 columns text-left" >
2014-12-05 12:29:47 -03:00
< a class = "button tiny secondary m0" title = "Address book" ng-hide = "!!$root.merchant || isPayUri" ng-click = "openAddressBook()" >
< i class = "fi-address-book" > < / i > Address book
< / a >
2014-12-01 19:01:10 -03:00
< a ng-click = "cancelSend(sendForm)" class = "button warning m0" ng-show = "!!$root.merchant || isPayUri" >
2014-11-20 11:42:56 -03:00
Cancel
< / a >
< / div >
< div class = "large-6 medium-6 small-6 columns text-right" >
2014-11-18 17:01:43 -03:00
< button type = "submit" class = "button primary m0" ng-disabled = "sendForm.$invalid || loading" >
2014-12-05 17:59:15 -03:00
< i class = "fi-bitcoin-circle icon-rotate spinner" ng-show = "loading" > < / i >
2014-11-18 17:01:43 -03:00
Send
< / button >
< / div >
2014-11-04 16:32:43 -03:00
< / div >
2014-11-27 11:42:40 -03:00
< / div >
< / form >
2014-11-04 16:32:43 -03:00
< / div >
< / div > <!-- end of row -->
2014-11-27 11:42:40 -03:00
2014-11-30 18:28:55 -03:00
< div class = "row m20b" ng-show = "$root.wallet.balanceInfo.alternativeConversionRate > 0" >
2014-11-20 01:48:22 -03:00
< div class = "large-12 columns size-12" >
2014-11-04 16:32:43 -03:00
< i class = "fi-bitcoin-circle" > < / i >
2014-11-30 18:28:55 -03:00
1 BTC = {{$root.wallet.balanceInfo.alternativeConversionRate}} {{alternativeIsoCode}}
2014-07-18 18:56:39 -03:00
< / div >
2014-12-04 15:06:17 -03:00
< / div >
2014-07-16 17:59:28 -03:00
< / div >