<ion-view id="view-amount" hide-tabs>
  <ion-nav-bar class="bar-royal">
    <ion-nav-title>
      {{'Enter Amount'|translate}}
    </ion-nav-title>
    <ion-nav-back-button>
    </ion-nav-back-button>
  </ion-nav-bar>

  <ion-content scroll="false">

    <div>
      <div class="item item-no-bottom-border recipient-label" translate>Recipient</div>

      <div class="item item-text-wrap item-icon-left bitcoin-address" ng-class="{'item-big-icon-left':cardId}">
        <i class="icon big-icon-svg" ng-if="isWallet">
          <img src="img/icon-wallet.svg" ng-style="{'background-color': toColor}" class="bg"/>
        </i>
        <span ng-if="!isWallet">
          <gravatar ng-if="!cardId" class="send-gravatar" name="{{toName}}" width="30" email="{{toEmail}}"></gravatar>
          <i ng-if="cardId" class="icon big-icon-svg">
            <div class="bg icon-bitpay-card"></div>
          </i>
        </span>
        <span class="m10l">{{toName || toAddress}}</span>
      </div>
    </div>

    <div class="amount-pane">

      <div class="amount-bar">
        <div class="title" translate>Amount</div>
      </div>

      <div class="amount">
        <div class="amount__editable" ng-class="{'amount__editable--minimize': smallFont, 'amount__editable--standard': !smallFont, 'amount__editable--placeholder': !amount}">
          <span class="amount__number">{{amount || "0.00" }}</span>
          <a class="amount__currency-toggle" ng-click="toggleAlternative()" ng-show="showAlternativeAmount">{{alternativeIsoCode}}</a>
          <a class="amount__currency-toggle" ng-click="toggleAlternative()" ng-show="!showAlternativeAmount">{{unitName}}</a>
        </div>
        <div ng-class="{'amount__results--minimize': smallFont, 'amount__results--standard': !smallFont, 'amount__results--placeholder': !amountResult}" ng-show="!showAlternativeAmount">
          <div class="amount__result" ng-show="globalResult">{{globalResult}} {{unitName}}</div>
          <div class="amount__result-equiv">&asymp; {{amountResult || '0.00'}} {{alternativeIsoCode}}</div>
        </div>
        <div ng-class="{'amount__results--minimize': smallFont, 'amount__results--standard': !smallFont, 'amount__results--placeholder': !amountResult}" ng-show="showAlternativeAmount">
          <div class="amount__result" ng-show="globalResult">{{globalResult}} {{alternativeIsoCode}}</div>
          <div class="amount__result-equiv">{{alternativeResult || '0.00'}} {{unitName}}</div>
        </div>
      </div>
    </div>

    <div class="keypad">
      <div class="row">
        <div class="col col-25 col-offset-75 operator-send"
             ng-show="allowSend" ng-click="finish()">
          <i class="icon ion-ios-arrow-thin-right"></i>
        </div>
      </div>
      <div class="row">
        <div class="col digit" ng-click="pushDigit('7')">7</div>
        <div class="col digit" ng-click="pushDigit('8')">8</div>
        <div class="col digit" ng-click="pushDigit('9')">9</div>
        <div class="col operator" ng-click="pushOperator('/')">&divide;</div>
      </div>

      <div class="row">
        <div class="col digit" ng-click="pushDigit('4')">4</div>
        <div class="col digit" ng-click="pushDigit('5')">5</div>
        <div class="col digit" ng-click="pushDigit('6')">6</div>
        <div class="col operator" ng-click="pushOperator('x')">&times;</div>
      </div>

      <div class="row">
        <div class="col digit" ng-click="pushDigit('1')">1</div>
        <div class="col digit" ng-click="pushDigit('2')">2</div>
        <div class="col digit" ng-click="pushDigit('3')">3</div>
        <div class="col operator" ng-click="pushOperator('+')">&plus;</div>
      </div>

      <div class="row">
        <div class="col digit" ng-click="pushDigit('.')">.</div>
        <div class="col digit" ng-click="pushDigit('0')">0</div>
        <div class="col digit icon ion-backspace-outline" ng-click="removeDigit()"></div>
        <div class="col operator" ng-click="pushOperator('-')">&minus;</div>
      </div>
    </div>
  </ion-content>
</ion-view>
