Improvement/Fix - Virtual keyboard

This commit is contained in:
Jean-Baptiste Dominguez 2018-05-08 16:17:19 +09:00
commit 35bf2da0f5
4 changed files with 280 additions and 7 deletions

View file

@ -5,9 +5,9 @@
</ion-nav-title>
<ion-nav-back-button ng-click="goBack()"></ion-nav-back-button>
</ion-nav-bar>
<ion-content scroll="false">
<ion-content scroll="false" style="background: #fff;">
<div ng-if="!customAmount && !nextStep" style="order: 0; position: relative; height: 100%; background: #fff;">
<div ng-if="!customAmount && !nextStep" style="order: 0; position: relative;">
<div class="item send-amount">
<div ng-if="shapeshiftOrderId">
@ -33,7 +33,7 @@
<span translate>Send max amount</span>
</span>
</button>
<button class="button button-sendmax" ng-click="changeUnit()" modal-select ng-model="someModel" options="selectables" modal-title="Select a number">
<button class="button button-sendmax" ng-click="openPopup()">
<span>
<i class="icon ion-social-usd"></i>&emsp;
<span translate>Change currency</span>
@ -44,8 +44,8 @@
</div>
</div>
<div class="keypad-container" style="order: 1">
<div class="keypad" style="background: #f2f2f2">
<div class="keypad-container" style="background: #fff; position: absolute; bottom: 0; margin-bottom: 57px; width: 100%;">
<div class="keypad" style="background: #f2f2f2; position: relative;">
<div class="row">
<div class="col digit" ng-click="pushDigit('7')">7</div>
@ -77,7 +77,7 @@
class="button button-full button-primary no-margin"
ng-disabled="!allowSend"
ng-click="finish()"
style="order: 2"
style="position: absolute; bottom: 0;"
translate>
Next
</button>

View file

@ -0,0 +1,34 @@
<ion-modal-view id="alt-currency">
<ion-header-bar class="bar-royal">
<div class="title">
{{'Alternative Currency'|translate}}
</div>
<button class="button button-clear" ng-click="close()" translate>
{{'Close'|translate}}
</button>
</ion-header-bar>
<ion-content>
<div class="bar bar-header item-input-inset m20b">
<label class="item-input-wrapper">
<i class="icon ion-ios-search placeholder-icon"></i>
<input type="search" ng-init="searchedAltCurrency = ''" ng-model="searchedAltCurrency" ng-change=""
placeholder="{{'Search your currency' | translate}}">
</label>
</div>
<div class="list" ng-if="lastUsedPopularList[0]">
<ion-radio class="alt-currency-radio" ng-repeat="lastUsedAltCurrency in lastUsedPopularList" ng-value="lastUsedAltCurrency.isoCode" ng-model="currentCurrency"
ng-click="save(lastUsedAltCurrency)">{{lastUsedAltCurrency.name}} <span class="item-note">{{lastUsedAltCurrency.isoCode}}</span>
</ion-radio>
</div>
<div class="list">
<div class="item" ng-repeat="altCurrency in altCurrencyList" ng-value="altCurrency.isoCode" ng-model="currentCurrency"
ng-click="save(altCurrency)">{{altCurrency.name}} <span class="item-note">{{altCurrency.isoCode}}</span>
</div>
</div>
<ion-infinite-scroll
ng-if="!listComplete"
on-infinite="loadMore()"
distance="50%">
</ion-infinite-scroll>
</ion-content>
</ion-modal-view>