open input amount as modal
This commit is contained in:
parent
838038a92e
commit
01c7c8ff42
4 changed files with 73 additions and 36 deletions
|
|
@ -1,26 +1,23 @@
|
|||
<ion-modal-view ng-controller="amountInputController" ng-init=init()>
|
||||
<ion-content>
|
||||
<ion-header-bar align-title="center" class="tab-bar" ng-style="{'background-color':index.backgroundColor}">
|
||||
<div class="left-small">
|
||||
<a class="p10" ng-click="close()"><span class="text-close" translate>Close</span></a>
|
||||
</div>
|
||||
<h1 class="title ellipsis" translate>Enter amount</h1>
|
||||
<div class="right-small m5r" ng-click="toggleAlternative()">
|
||||
<a class="postfix" ng-show="showAlternative">{{alternativeIsoCode}}</a>
|
||||
<a class="postfix" ng-show="!showAlternative">{{unitName}}</a>
|
||||
</div>
|
||||
</ion-header-bar>
|
||||
|
||||
<div class="send-amount row" ng-style="{'background-color':index.backgroundColor}">
|
||||
<div class="size-48" ng-show="!showAlternative">{{amount}}</div>
|
||||
<div class="size-21 text-light" ng-show="!showAlternative">{{amountResult}} {{alternativeIsoCode}}</div>
|
||||
<div class="size-48" ng-show="showAlternative">${{alternativeAmount}}</div>
|
||||
<div class="size-21 text-light" ng-show="showAlternative">{{alternativeResult}} {{unitName}}</div>
|
||||
<ion-modal-view ng-controller="inputAmountController" ng-init=init()>
|
||||
<ion-header-bar align-title="center" class="tab-bar" ng-style="{'background-color':color}">
|
||||
<div class="left-small">
|
||||
<a ng-click="cancel()" class="p10">
|
||||
<span class="text-close" translate>Close</span>
|
||||
</a>
|
||||
</div>
|
||||
<h1 class="title ellipsis" translate>Enter amount</h1>
|
||||
<div class="right-small m5r" ng-click="toggleAlternative()">
|
||||
<a class="postfix" ng-show="showAlternativeAmount">{{alternativeIsoCode}}</a>
|
||||
<a class="postfix" ng-show="!showAlternativeAmount">{{unitName}}</a>
|
||||
</div>
|
||||
</ion-header-bar>
|
||||
|
||||
<div class="button-content text-center df">
|
||||
<button class="button expand button-balanced" ng-click="" translate>Request</button>
|
||||
<button class="button expand button-balanced" ng-click="" translate>Send</button>
|
||||
<div class="content" ng-style="{'background-color':'#E4E8EC'}">
|
||||
<div class="send-amount row" ng-style="{'background-color':index.backgroundColor}">
|
||||
<div class="size-48" ng-show="!showAlternativeAmount">{{amount}}</div>
|
||||
<div class="size-21 text-light" ng-show="!showAlternativeAmount">{{amountResult}} {{alternativeIsoCode}}</div>
|
||||
<div class="size-48" ng-show="showAlternativeAmount">${{alternativeAmount}}</div>
|
||||
<div class="size-21 text-light" ng-show="showAlternativeAmount">{{alternativeResult}} {{unitName}}</div>
|
||||
</div>
|
||||
|
||||
<div class="button-content text-center size-10 df">
|
||||
|
|
@ -52,5 +49,15 @@
|
|||
<button class="button expand button-light" ng-click="removeDigit()"><i class="icon ion-backspace-outline"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
</ion-content>
|
||||
|
||||
<div class="row p20t">
|
||||
<div class="columns">
|
||||
<button class="round expand m0"
|
||||
ng-style="{'background-color':index.backgroundColor}"
|
||||
ng-disabled="alternativeResult == 0 && amountResult == 0"
|
||||
ng-click="save()"
|
||||
translate>Save</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</ion-modal-view>
|
||||
|
|
@ -420,8 +420,8 @@
|
|||
<span translate>Amount</span><span ng-show="showAlternative"> [{{home.alternativeIsoCode}}]</span>
|
||||
</label>
|
||||
<div class="input">
|
||||
<input type="number" ng-show="!showAlternative" id="amount" ng-disabled="home.lockAmount" name="amount" ng-attr-placeholder="{{'Amount in'|translate}} {{home.unitName}}" ng-model="_amount" valid-amount required autocomplete="off" ng-focus="home.formFocus('amount')" ng-blur="home.formFocus(false)" ignore-mouse-wheel>
|
||||
<input type="number" ng-show="showAlternative" id="alternative" ng-disabled="!home.isRateAvailable || home.lockAmount" name="alternative" ng-attr-placeholder="{{'Amount in'|translate}} {{ home.alternativeName }}" ng-model="_alternative" required autocomplete="off" ng-focus="home.formFocus('amount')" ng-blur="home.formFocus(false)" ignore-mouse-wheel>
|
||||
<input type="number" ng-show="!showAlternative" id="amount" ng-disabled="home.lockAmount" name="amount" ng-attr-placeholder="{{'Amount in'|translate}} {{home.unitName}}" ng-model="_amount" valid-amount required autocomplete="off" ng-focus="openInputAmountModal()" ignore-mouse-wheel>
|
||||
<input type="number" ng-show="showAlternative" id="alternative" ng-disabled="!home.isRateAvailable || home.lockAmount" name="alternative" ng-attr-placeholder="{{'Amount in'|translate}} {{ home.alternativeName }}" ng-model="_alternative" required autocomplete="off" ng-focus="openInputAmountModal()" ignore-mouse-wheel>
|
||||
<a class="postfix button" ng-show="!showAlternative" ng-style="{'background-color':index.backgroundColor}" ng-click="showAlternative = !showAlternative">{{home.unitName}}</a>
|
||||
<a class="postfix button black" ng-show="showAlternative" ng-click="showAlternative = !showAlternative">{{home.alternativeIsoCode}}</a>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue