Wallet/www/views/join.html

102 lines
3.9 KiB
HTML
Raw Normal View History

<ion-view id="join" class="settings" show-tabs>
2016-08-31 15:54:53 -04:00
<ion-nav-bar class="bar-royal">
2016-09-16 21:01:19 -03:00
<ion-nav-back-button>
</ion-nav-back-button>
2016-09-01 10:12:06 -03:00
<ion-nav-title>{{'Join shared wallet' | translate}}</ion-nav-title>
2016-08-18 00:27:23 -03:00
</ion-nav-bar>
2016-08-16 17:45:20 -03:00
2016-08-18 00:27:23 -03:00
2017-05-22 21:28:41 -03:00
<ion-content>
2016-08-16 17:45:20 -03:00
2017-05-22 21:05:32 -03:00
<form name="setupForm" ng-submit="join()" novalidate>
2015-03-06 12:00:10 -03:00
<div class="list settings-list settings-input-group">
2016-08-16 17:45:20 -03:00
<label class="item item-input item-stacked-label no-border">
<span class="input-label" translate>Your nickname</span>
<input type="text"
2017-05-22 21:28:41 -03:00
placeholder="Satoshi"
name="myName"
2017-05-22 21:05:32 -03:00
ng-model="formData.myName"
required>
</label>
<div>
<label class="item item-input item-stacked-label no-border">
<span class="input-label" translate>Wallet Invitation</span>
<div class="input-notification">
2017-05-22 21:05:32 -03:00
<i ng-show="!setupForm.secret.$invalid" class="icon ion-checkmark-circled valid"></i>
<i ng-show="setupForm.secret.$invalid && formData.secret" class="icon ion-close-circled invalid"></i>
</div>
<input id="secret"
type="text"
placeholder="{{'Paste invitation here'|translate}}"
name="secret"
2017-05-22 21:05:32 -03:00
ng-model="formData.secret"
wallet-secret required>
</label>
<div class="qr-scan-icon">
<qr-scanner class="qr-icon size-24" on-scan="onQrCodeScannedJoin(data)"></qr-scanner>
2016-08-18 13:15:25 -03:00
</div>
</div>
2017-08-28 12:57:32 -03:00
2017-08-30 16:38:42 -03:00
<div ng-include="'views/includes/cash.html'" ng-if="enableCash"></div>
2017-08-28 12:57:32 -03:00
<div class="item item-divider"></div>
<a class="item" ng-click="showAdvChange()">
2016-08-16 17:45:20 -03:00
<span translate ng-show="!showAdv">Show advanced options</span>
<span translate ng-show="showAdv">Hide advanced options</span>
</a>
2016-08-16 17:45:20 -03:00
<div ng-show="showAdv">
2015-11-04 15:45:33 -03:00
2016-08-16 17:45:20 -03:00
<label class="item item-input item-stacked-label">
<span class="input-label">Wallet Service URL</span>
2017-05-22 21:05:32 -03:00
<input type="text" id="bwsurl" name="bwsurl" ng-model="formData.bwsurl">
2016-08-16 17:45:20 -03:00
</label>
<label class="item item-input item-select">
<div class="input-label" translate>
Wallet Key
2015-10-22 12:50:43 -03:00
</div>
2016-08-16 17:45:20 -03:00
<select class="m10t"
2017-05-29 15:04:22 -03:00
ng-model="formData.seedSource"
ng-options="seed as seed.label for seed in seedOptions"
2017-05-22 21:34:48 -03:00
ng-change="resizeView()">
2016-08-16 17:45:20 -03:00
</select>
</label>
2015-09-03 01:49:48 -03:00
2016-08-16 17:45:20 -03:00
<label class="item item-input item-stacked-label"
2017-05-29 15:04:22 -03:00
ng-show="formData.seedSource.id == 'trezor' || formData.seedSource.id == 'ledger'">
2016-08-16 17:45:20 -03:00
<span class="input-label" translate>Account Number</span>
2017-05-22 21:05:32 -03:00
<input type="number" id="account" ng-model="formData.account" ignore-mouse-wheel>
2016-08-16 17:45:20 -03:00
</label>
2017-05-29 15:04:22 -03:00
<label class="item item-input item-stacked-label" ng-show="formData.seedSource.id == 'set'">
2016-08-16 17:45:20 -03:00
<span class="input-label" translate>Wallet Recovery Phrase</span>
<input id="ext-master"
placeholder="{{'Enter the recovery phrase (BIP39)'|translate}}"
autocapitalize="off"
type="text"
name="privateKey"
2017-05-22 21:05:32 -03:00
ng-model="formData.privateKey">
2016-08-16 17:45:20 -03:00
</label>
2017-05-29 15:04:22 -03:00
<label class="item item-input item-stacked-label" ng-show="formData.seedSource.id == 'set'">
2016-08-16 17:45:20 -03:00
<span class="input-label" translate>Derivation Path</span>
<input type="text"
placeholder="{{'BIP32 path for address derivation'|translate}}"
name="derivationPath"
2017-05-22 21:05:32 -03:00
ng-model="formData.derivationPath">
2016-08-16 17:45:20 -03:00
</label>
2015-11-04 15:45:33 -03:00
</div> <!-- advanced -->
2016-08-16 17:45:20 -03:00
</div> <!-- list -->
<button type="submit" class="button button-standard button-primary" ng-disabled="setupForm.$invalid" translate>
translate>Join
2016-08-16 17:45:20 -03:00
</button>
</form>
</ion-content>
</ion-view>