Wallet/www/views/modals/mercadolibre-card-details.html

75 lines
2.5 KiB
HTML
Raw Permalink Normal View History

2017-07-06 18:10:04 -03:00
<ion-modal-view id="meli-card" ng-controller="mercadoLibreCardDetailsController">
2017-05-08 09:23:47 -03:00
<ion-header-bar align-title="center" class="bar-royal">
2017-07-26 16:25:12 -03:00
<button class="button button-back button-clear" ng-click="close()" translate>
2017-05-08 09:23:47 -03:00
Close
</button>
2017-07-06 18:10:04 -03:00
<h1 class="title" translate>Details</h1>
2017-05-08 09:23:47 -03:00
</ion-header-bar>
<ion-content>
2017-07-06 18:10:04 -03:00
<div class="card-head">
2017-07-26 16:25:12 -03:00
<img src="img/mercado-libre/giftcard-pt.svg" alt="Mercado Livre Brazil Gift Card" width="230">
2017-05-08 09:23:47 -03:00
2017-07-06 18:10:04 -03:00
<div class="amount">
{{card.amount | currency : '' : 2}} {{card.currency}}
</div>
</div>
2017-05-08 09:23:47 -03:00
2017-07-06 18:10:04 -03:00
<div class="card-status">
<div ng-show="card.cardStatus == 'active'">
<div class="redeem-pin" copy-to-clipboard="card.pin">{{card.pin}}</div>
<button class="button-redeem"
2017-10-09 11:30:01 -03:00
ng-click="openExternalLink('https://www.mercadolivre.com.br')" translate>
2017-08-09 10:51:46 -03:00
Redeem now
2017-07-06 18:10:04 -03:00
</button>
</div>
2017-05-08 09:23:47 -03:00
2017-07-06 18:10:04 -03:00
<div ng-show="card.cardStatus == 'inactive'">
<span class="assertive" translate>Inactive</span>
<div class="card-status-desc" translate>Gift Card is not available to use anymore</div>
</div>
2017-05-08 09:23:47 -03:00
2017-07-06 18:10:04 -03:00
<div ng-show="card.cardStatus == 'expired'">
<span class="assertive" translate>Expired</span>
<div class="card-status-desc" translate>Gift Card is not available to use anymore</div>
</div>
2017-05-08 09:23:47 -03:00
2017-07-06 18:10:04 -03:00
<div ng-show="card.status">
<span class="positive" ng-show="card.status == 'PENDING'" translate>
Pending
</span>
<span class="calm" ng-show="card.status=='invalid'" translate>
Still pending
</span>
<span class="assertive" ng-show="card.status == 'FAILURE'" translate>
Error
</span>
<span class="dark" ng-show="card.status == 'expired'" translate>
Invoice expired
</span>
2017-05-08 09:23:47 -03:00
</div>
2017-07-06 18:10:04 -03:00
</div>
2017-05-08 09:23:47 -03:00
2017-07-06 18:10:04 -03:00
<div class="list">
<div class="item">
2017-08-09 10:51:46 -03:00
<span translate>Date</span>
2017-07-06 18:10:04 -03:00
<span class="item-note">
{{card.date | amTimeAgo}}
</span>
2017-05-08 09:23:47 -03:00
</div>
2017-07-26 16:25:12 -03:00
<div class="item item-icon-right" ng-click="openExternalLink(card.invoiceUrl)">
2017-07-06 18:10:04 -03:00
<i class="icon bp-arrow-right"></i>
2017-07-26 16:25:12 -03:00
<span translate>See invoice</span>
2017-05-08 09:23:47 -03:00
</div>
2017-07-06 18:10:04 -03:00
</div>
<div class="card-remove" ng-show="card.status == 'FAILURE' || card.cardStatus == 'inactive' || card.cardStatus == 'expired' || card.status == 'expired'">
<button class="button-remove" ng-click="remove()" translate>
Remove
</button>
</div>
2017-05-08 09:23:47 -03:00
</ion-content>
</ion-modal-view>