2015-12-01 12:16:39 -08:00
|
|
|
<nav class="tab-bar" ng-style="{'background-color':color}">
|
2015-06-24 13:55:08 -07:00
|
|
|
<section class="left-small">
|
|
|
|
<a ng-click="cancel()" class="p10">
|
|
|
|
<span class="text-close" translate>Close</span>
|
|
|
|
</a>
|
|
|
|
</section>
|
|
|
|
<section class="middle tab-bar-section">
|
2015-12-01 12:16:39 -08:00
|
|
|
<h1 class="title ellipsis" translate>
|
2015-06-27 10:28:12 -07:00
|
|
|
Request a specific amount
|
2015-06-24 13:55:08 -07:00
|
|
|
</h1>
|
|
|
|
</section>
|
|
|
|
</nav>
|
|
|
|
|
2015-06-26 13:31:50 -07:00
|
|
|
<div class="modal-content fix-modals-touch">
|
2015-06-26 10:54:34 -07:00
|
|
|
<div class="m20b" ng-show="customizedAmountBtc">
|
2015-06-24 13:55:08 -07:00
|
|
|
<h4 class="title m0" translate>QR Code</h4>
|
|
|
|
<ul class="no-bullet size-14 m0">
|
|
|
|
<li class="line-b p10 oh text-center">
|
2015-06-26 10:25:53 -07:00
|
|
|
<qrcode size="220" data="bitcoin:{{addr + '?amount=' + customizedAmountBtc}}"></qrcode>
|
2015-09-11 10:44:52 -07:00
|
|
|
<div class="m10t text-center" ng-show="isCordova">
|
|
|
|
<span class="button outline dark-gray tiny round"
|
|
|
|
ng-click="shareAddress('bitcoin:' + addr + '?amount=' + customizedAmountBtc)">
|
|
|
|
<i class="fi-share"></i>
|
|
|
|
<span translate>Share address</span>
|
|
|
|
</span>
|
|
|
|
</div>
|
2015-06-24 13:55:08 -07:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<h4 class="title m0" translate>Details</h4>
|
|
|
|
<ul class="no-bullet size-14 m0">
|
|
|
|
<li class="line-b p10 oh">
|
|
|
|
<span class="text-gray" translate>Address</span>:
|
|
|
|
<span class="right">
|
|
|
|
<span class="text-gray enable_text_select">{{addr}}</span>
|
|
|
|
</span>
|
|
|
|
</li>
|
|
|
|
<li class="line-b p10 oh">
|
|
|
|
<span class="text-gray" translate>Amount</span>:
|
|
|
|
<span class="right">
|
2015-06-26 10:25:53 -07:00
|
|
|
{{customizedAmountUnit}}
|
|
|
|
<span class="label gray radius">{{customizedAlternativeUnit}}</span>
|
2015-06-24 13:55:08 -07:00
|
|
|
</span>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2015-06-26 10:25:53 -07:00
|
|
|
<div ng-show="!customizedAmountBtc" class="row m20t">
|
2015-06-24 13:55:08 -07:00
|
|
|
<div class="large-12 large-centered columns">
|
|
|
|
<form name="amountForm" ng-submit="submitForm(amountForm)" novalidate>
|
|
|
|
<div class="right" ng-hide="amountForm.amount.$pristine && !amountForm.amount.$modelValue ">
|
|
|
|
<span class="has-error right size-12" ng-if="amountForm.amount.$invalid">
|
|
|
|
<i class="icon-close-circle size-14"></i>
|
|
|
|
<span clas="vm" translate>Not valid</span>
|
|
|
|
</span>
|
|
|
|
<small class="text-primary right" ng-if="!amountForm.amount.$invalid">
|
|
|
|
<i class="icon-checkmark-circle size-14"></i>
|
|
|
|
</small>
|
|
|
|
</div>
|
|
|
|
<div ng-if="!showAlternative">
|
|
|
|
<label for="amount">
|
|
|
|
<span translate>Amount</span>
|
|
|
|
</label>
|
|
|
|
<div class="input">
|
2015-12-09 05:26:20 -08:00
|
|
|
<input type="number" id="amount" name="amount" ng-attr-placeholder="{{'Amount in'|translate}} {{unitName}}"
|
|
|
|
ng-model="_customAmount" ng-minlength="0.00000001" ng-maxlength="10000000000" valid-amount required autocomplete="off">
|
2015-08-13 08:59:19 -07:00
|
|
|
<input type="number" id="alternative" name="alternative" ng-model="_customAlternative" style="display:none">
|
2015-12-09 05:26:20 -08:00
|
|
|
<a class="postfix button" ng-style="{'background-color':color}" ng-click="toggleAlternative()">{{unitName}}</a>
|
2015-06-24 13:55:08 -07:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div ng-if="showAlternative">
|
2015-12-09 05:26:20 -08:00
|
|
|
<label for="alternative"><span translate>Amount</span> [{{ alternativeIsoCode }}]
|
2015-06-24 13:55:08 -07:00
|
|
|
</label>
|
|
|
|
<div class="input">
|
2015-12-09 05:26:20 -08:00
|
|
|
<input type="number" id="alternative" name="alternative" ng-attr-placeholder="{{'Amount in'|translate}} {{alternativeName}}"
|
2015-08-13 08:59:19 -07:00
|
|
|
ng-model="_customAlternative" required autocomplete="off" required>
|
|
|
|
<input type="number" id="amount" name="amount" ng-model="_customAmount" style="display:none">
|
2015-12-09 05:26:20 -08:00
|
|
|
<a class="postfix button black" ng-click="toggleAlternative()"> {{ alternativeIsoCode }}</a>
|
2015-06-24 13:55:08 -07:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<button type="submit" class="button black round expand" ng-disabled="amountForm.$invalid" ng-style="{'background-color':color}" translate>
|
|
|
|
Generate QR Code
|
|
|
|
</button>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="extra-margin-bottom"></div>
|
|
|
|
</div>
|