mirror of https://github.com/BTCPrivate/copay.git
67 lines
2.2 KiB
HTML
67 lines
2.2 KiB
HTML
<ion-view id="add-address">
|
|
<ion-nav-bar class="bar-royal">
|
|
<ion-nav-title>
|
|
<span translate>Add Contact</span>
|
|
</ion-nav-title>
|
|
<ion-nav-back-button>
|
|
</ion-nav-back-button>
|
|
<ion-nav-buttons side="secondary">
|
|
<button class="button back-button" ng-click="goHome()" ng-if="fromSendTab">
|
|
{{'Cancel' | translate}}
|
|
</button>
|
|
</ion-nav-buttons>
|
|
</ion-nav-bar>
|
|
|
|
<ion-content>
|
|
|
|
<form name="addressbookForm" no-validate>
|
|
|
|
<div class="list">
|
|
<label class="item item-input item-stacked-label">
|
|
<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"
|
|
placeholder="name@example.com"
|
|
name="email"
|
|
ng-model="addressbookEntry.email">
|
|
</label>
|
|
<label class="item item-input item-stacked-label">
|
|
<span class="input-label" translate>Bitcoin Address</span>
|
|
<div class="input-notification">
|
|
<i class="icon ion-checkmark-circled balanced"
|
|
ng-show="!addressbookForm.address.$invalid"></i>
|
|
<i class="icon ion-close-circled assertive"
|
|
ng-show="addressbookForm.address.$invalid && addressbookEntry.address"></i>
|
|
</div>
|
|
<div class="qr-scan-icon">
|
|
<qr-scanner on-scan="onQrCodeScanned(data, addressbookForm)"></qr-scanner>
|
|
<input type="text"
|
|
id="address"
|
|
name="address"
|
|
ng-model="addressbookEntry.address"
|
|
valid-address required>
|
|
</div>
|
|
</label>
|
|
</div>
|
|
|
|
<div class="padding">
|
|
<button type="submit"
|
|
class="button button-block button-positive"
|
|
ng-click="add(addressbookEntry)"
|
|
ng-disabled="!addressbookForm.$valid" translate>
|
|
Save
|
|
</button>
|
|
</div>
|
|
|
|
</form>
|
|
</ion-content>
|
|
</ion-view>
|