2018-05-08 16:17:19 +09:00
< 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 >
2018-05-08 16:23:46 +09:00
< input type = "search" ng-init = "searchedAltCurrency = ''" ng-model = "searchedAltCurrency" ng-change = "findCurrency(searchedAltCurrency)"
2018-05-08 16:17:19 +09:00
placeholder="{{'Search your currency' | translate}}">
< / label >
< / div >
2018-05-08 16:44:55 +09:00
< div class = "list" ng-if = "lastUsedPopularList[0] && searchedAltCurrency.length == 0" >
2018-05-08 16:17:19 +09:00
< 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 >