63 lines
No EOL
3.3 KiB
HTML
63 lines
No EOL
3.3 KiB
HTML
<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="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">
|
|
<button class="button expand button-stable" ng-click="pushOperator('x')">x</button>
|
|
<button class="button expand button-stable" ng-click="pushOperator('/')">/</button>
|
|
<button class="button expand button-stable" ng-click="pushOperator('+')">+</button>
|
|
<button class="button expand button-stable" ng-click="pushOperator('-')">-</button>
|
|
</div>
|
|
|
|
<div class="m10b">
|
|
<div class="button-content text-center df">
|
|
<button class="button expand button-light" ng-click="pushDigit('1')">1</button>
|
|
<button class="button expand button-light" ng-click="pushDigit('2')">2</button>
|
|
<button class="button expand button-light" ng-click="pushDigit('3')">3</button>
|
|
</div>
|
|
<div class="button-content text-center df">
|
|
<button class="button expand button-light" ng-click="pushDigit('4')">4</button>
|
|
<button class="button expand button-light" ng-click="pushDigit('5')">5</button>
|
|
<button class="button expand button-light" ng-click="pushDigit('6')">6</button>
|
|
</div>
|
|
<div class="button-content text-center df">
|
|
<button class="button expand button-light" ng-click="pushDigit('7')">7</button>
|
|
<button class="button expand button-light" ng-click="pushDigit('8')">8</button>
|
|
<button class="button expand button-light" ng-click="pushDigit('9')">9</button>
|
|
</div>
|
|
<div class="button-content text-center df">
|
|
<button class="button expand button-light" ng-click="pushDigit('.')">.</button>
|
|
<button class="button expand button-light" ng-click="pushDigit('0')">0</button>
|
|
<button class="button expand button-light" ng-click="removeDigit()"><i class="icon ion-backspace-outline"></i></button>
|
|
</div>
|
|
</div>
|
|
|
|
<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> |