2016-12-27 10:13:01 -03:00
|
|
|
<ion-view id="add-address" hide-tabs>
|
2016-09-12 11:57:20 -03:00
|
|
|
<ion-nav-bar class="bar-royal">
|
|
|
|
|
<ion-nav-title>
|
2016-09-21 15:13:22 -03:00
|
|
|
<span translate>Add Contact</span>
|
2016-09-12 11:57:20 -03:00
|
|
|
</ion-nav-title>
|
2016-09-21 16:39:40 -03:00
|
|
|
<ion-nav-back-button>
|
2016-09-21 15:13:22 -03:00
|
|
|
</ion-nav-back-button>
|
|
|
|
|
<ion-nav-buttons side="secondary">
|
|
|
|
|
<button class="button back-button" ng-click="goHome()" ng-if="fromSendTab">
|
2016-09-21 16:39:40 -03:00
|
|
|
{{'Cancel' | translate}}
|
2016-09-21 15:13:22 -03:00
|
|
|
</button>
|
|
|
|
|
</ion-nav-buttons>
|
|
|
|
|
</ion-nav-bar>
|
2016-09-12 11:57:20 -03:00
|
|
|
|
|
|
|
|
<ion-content>
|
|
|
|
|
|
|
|
|
|
<form name="addressbookForm" no-validate>
|
|
|
|
|
|
2016-12-23 10:32:09 -03:00
|
|
|
<div class="list add-address-list add-address-input-group">
|
|
|
|
|
<label class="item item-input item-stacked-label no-border">
|
2016-09-12 11:57:20 -03:00
|
|
|
<span class="input-label" translate>Name</span>
|
|
|
|
|
<input type="text"
|
|
|
|
|
id="name"
|
|
|
|
|
name="name"
|
|
|
|
|
ng-model="addressbookEntry.name"
|
|
|
|
|
required>
|
|
|
|
|
</label>
|
|
|
|
|
<label class="item item-input item-stacked-label">
|
|
|
|
|
<span class="input-label" translate>Email</span>
|
|
|
|
|
<input type="text"
|
|
|
|
|
id="email"
|
2016-12-13 12:08:05 -03:00
|
|
|
placeholder="{{'name@example.com' | translate}}"
|
2016-09-12 11:57:20 -03:00
|
|
|
name="email"
|
|
|
|
|
ng-model="addressbookEntry.email">
|
|
|
|
|
</label>
|
2016-10-27 11:55:30 -03:00
|
|
|
<div>
|
|
|
|
|
<label class="item item-input item-stacked-label">
|
|
|
|
|
<span class="input-label" translate>Bitcoin Address</span>
|
|
|
|
|
<div class="input-notification">
|
2016-12-23 10:32:09 -03:00
|
|
|
<i ng-show="!addressbookForm.address.$invalid" class="icon ion-checkmark-circled valid"></i>
|
|
|
|
|
<i ng-show="addressbookForm.address.$invalid && addressbookEntry.address" class="icon ion-close-circled invalid"></i>
|
2016-10-27 11:55:30 -03:00
|
|
|
</div>
|
2016-09-12 11:57:20 -03:00
|
|
|
<input type="text"
|
|
|
|
|
id="address"
|
|
|
|
|
name="address"
|
|
|
|
|
ng-model="addressbookEntry.address"
|
|
|
|
|
valid-address required>
|
2016-10-27 11:55:30 -03:00
|
|
|
</label>
|
|
|
|
|
<div class="qr-scan-icon">
|
2016-12-29 14:37:31 -03:00
|
|
|
<qr-scanner on-scan="onQrCodeScannedAddressBook(data, addressbookForm)"></qr-scanner>
|
2016-09-12 11:57:20 -03:00
|
|
|
</div>
|
2016-10-27 11:55:30 -03:00
|
|
|
</div>
|
2017-11-02 15:40:21 +09:00
|
|
|
<label class="item item-input item-select">
|
|
|
|
|
<div class="input-label" translate>
|
|
|
|
|
Coin
|
|
|
|
|
</div>
|
|
|
|
|
<select ng-model="addressbookEntry.coin">
|
|
|
|
|
<option value="bch">{{bitcoinCashAlias}}</option>
|
2017-11-22 13:32:48 +09:00
|
|
|
<option value="btc">{{bitcoinAlias}}</option>
|
2017-11-02 15:40:21 +09:00
|
|
|
</select>
|
|
|
|
|
</label>
|
2016-09-12 11:57:20 -03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="padding">
|
|
|
|
|
<button type="submit"
|
2016-10-11 23:23:54 -04:00
|
|
|
class="button button-standard button-primary"
|
2016-09-12 11:57:20 -03:00
|
|
|
ng-click="add(addressbookEntry)"
|
|
|
|
|
ng-disabled="!addressbookForm.$valid" translate>
|
|
|
|
|
Save
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</form>
|
|
|
|
|
</ion-content>
|
|
|
|
|
</ion-view>
|