Add/create/import/join. Main sass file
This commit is contained in:
parent
e00fb50674
commit
df0f77b383
7 changed files with 923 additions and 474 deletions
|
|
@ -1,130 +1,126 @@
|
|||
<div
|
||||
class="topbar-container"
|
||||
ng-include="'views/includes/topbar.html'"
|
||||
ng-init="titleSection='Join shared wallet'; goBackToState = 'add'; noColor = true">
|
||||
</div>
|
||||
<ion-view view-title="Join shared wallet" ng-controller="joinController as join">
|
||||
<ion-nav-buttons side="primary">
|
||||
<a href ui-sref="add" class="button icon-left ion-chevron-left button-clear button-dark">Add</a>
|
||||
</ion-nav-buttons>
|
||||
<ion-nav-buttons side="secondary">
|
||||
<qr-scanner class="button button-clear button-positive" on-scan="join.onQrCodeScanned(data)"></qr-scanner>
|
||||
</ion-nav-buttons>
|
||||
|
||||
<ion-content>
|
||||
|
||||
<div class="content p20v" ng-controller="joinController as join">
|
||||
<form name="joinForm" ng-submit="join.join(joinForm)" novalidate>
|
||||
<div class="box-notification m20b" ng-show="join.error">
|
||||
<span class="text-warning">
|
||||
{{join.error|translate}}
|
||||
</span>
|
||||
<div class="padding assertive" ng-show="join.error">
|
||||
{{join.error|translate}}
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="large-12 columns">
|
||||
|
||||
<div>
|
||||
<label><span translate>Your nickname</span>
|
||||
<div class="input">
|
||||
<input type="text" placeholder="{{'John'|translate}}" class="form-control" name="myName" ng-model="myName" ng-required="true">
|
||||
</div>
|
||||
</label>
|
||||
</div>
|
||||
<form name="joinForm" ng-submit="join.join(joinForm)" novalidate>
|
||||
|
||||
<div class="row collapse">
|
||||
<label for="secret" class="left"><span translate>Wallet Invitation</span>
|
||||
<small translate ng-show="joinForm.secret.$pristine">Required</small>
|
||||
</label>
|
||||
<span class="has-error right size-12" ng-show="joinForm.secret.$invalid
|
||||
&& !joinForm.secret.$pristine">
|
||||
<span class="icon-input"><i class="fi-x"></i></span>
|
||||
<span translate>Wallet Invitation is not valid!</span>
|
||||
<div class="list">
|
||||
|
||||
<label class="item item-input item-stacked-label">
|
||||
<span class="input-label" translate>Your nickname</span>
|
||||
<input type="text"
|
||||
placeholder="{{'John'|translate}}"
|
||||
name="myName"
|
||||
ng-model="myName"
|
||||
ng-required="true">
|
||||
</label>
|
||||
|
||||
<label class="item item-input item-stacked-label">
|
||||
<span class="input-label">
|
||||
Wallet Invitation
|
||||
</span>
|
||||
<small class="icon-input right" ng-show="joinForm.secret.$valid
|
||||
&& !joinForm.secret.$pristine"><i class="fi-check"></i></small>
|
||||
</div>
|
||||
<i class="icon ion-checkmark-circled balanced" ng-show="joinForm.secret.$valid &&
|
||||
!joinForm.secret.$pristine && secret"></i>
|
||||
<i class="icon ion-close-circled assertive" ng-show="joinForm.secret.$invalid &&
|
||||
!joinForm.secret.$pristine && secret"></i>
|
||||
<input id="secret"
|
||||
type="text"
|
||||
placeholder="{{'Paste invitation here'|translate}}"
|
||||
name="secret"
|
||||
ng-model="secret"
|
||||
wallet-secret required>
|
||||
</label>
|
||||
|
||||
<div class="input">
|
||||
<input id="secret" type="text" placeholder="{{'Paste invitation here'|translate}}" name="secret" ng-model="secret" wallet-secret required>
|
||||
<div class="qr-scanner-input">
|
||||
<qr-scanner on-scan="join.onQrCodeScanned(data)"></qr-scanner>
|
||||
</div>
|
||||
</div>
|
||||
<ion-toggle ng-model="showAdv" toggle-class="toggle-stable">
|
||||
<span translate ng-show="!showAdv">Show advanced options</span>
|
||||
<span translate ng-show="showAdv">Hide advanced options</span>
|
||||
</ion-toggle>
|
||||
|
||||
<div class="m10t oh" ng-init="hideAdv=true">
|
||||
<a class="button outline light-gray expand tiny p10i" ng-click="hideAdv=!hideAdv">
|
||||
<i class="fi-widget m3r"></i>
|
||||
<span translate ng-hide="!hideAdv">Show advanced options</span>
|
||||
<span translate ng-hide="hideAdv">Hide advanced options</span>
|
||||
<i ng-if="hideAdv" class="icon-arrow-down4"></i>
|
||||
<i ng-if="!hideAdv" class="icon-arrow-up4"></i>
|
||||
</a>
|
||||
</div>
|
||||
<div ng-show="showAdv">
|
||||
|
||||
<div ng-hide="hideAdv" class="row">
|
||||
<div class="large-12 columns">
|
||||
<div>
|
||||
<label for="bws" class="oh">
|
||||
<span>Wallet Service URL</span>
|
||||
<input type="text" id="bwsurl" name="bwsurl" ng-model="bwsurl">
|
||||
</label>
|
||||
<label class="item item-input item-stacked-label">
|
||||
<span class="input-label">Wallet Service URL</span>
|
||||
<input type="text" id="bwsurl" name="bwsurl" ng-model="bwsurl">
|
||||
</label>
|
||||
|
||||
<label class="item item-input item-select">
|
||||
<div class="input-label" translate>
|
||||
Wallet Key
|
||||
</div>
|
||||
<select class="m10t"
|
||||
ng-model="seedSource"
|
||||
ng-options="seed as seed.label for seed in join.seedOptions"
|
||||
ng-change="join.setSeedSource()">
|
||||
</select>
|
||||
</label>
|
||||
|
||||
<div>
|
||||
<label><span translate>Wallet Key </span>
|
||||
<select class="m10t" ng-model="seedSource"
|
||||
ng-options="seed as seed.label for seed in join.seedOptions"
|
||||
ng-change="join.setSeedSource()">
|
||||
</select>
|
||||
</label>
|
||||
</div>
|
||||
<label class="item item-input item-stacked-label"
|
||||
ng-show="join.seedSourceId == 'trezor' || join.seedSourceId == 'ledger'">
|
||||
<span class="input-label" translate>Account Number</span>
|
||||
<input type="number" id="account" ng-model="account" ignore-mouse-wheel>
|
||||
</label>
|
||||
|
||||
<div ng-show="join.seedSourceId == 'trezor' || join.seedSourceId == 'ledger'">
|
||||
<label class="oh"><span translate>Account Number</span>
|
||||
<input type="number" id="account" ng-model="account" ignore-mouse-wheel>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="box-notification" ng-show="join.seedSourceId=='new' && createPassphrase">
|
||||
<span class="text-warning size-14">
|
||||
<i class="fi-alert"></i>
|
||||
<span translate>
|
||||
<div class="card" ng-show="join.seedSourceId=='new' && createPassphrase">
|
||||
<div class="item item-text-wrap">
|
||||
<span translate>
|
||||
WARNING: The password cannot be recovered. <b>Be sure to write it down</b>. The wallet can not be restored without the password.
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div ng-show="join.seedSourceId=='new' ">
|
||||
<label for="createPassphrase" ><span translate>Add a Password</span> <small translate>Add an optional password to secure the recovery phrase</small>
|
||||
<div class="input">
|
||||
<input type="text" class="form-control" autocapitalize="off"
|
||||
name="createPassphrase" ng-model="createPassphrase">
|
||||
</div>
|
||||
</label>
|
||||
</div>
|
||||
<label class="item item-input item-stacked-label" ng-show="join.seedSourceId=='new'">
|
||||
<span class="input-label" translate>Add a Password</span>
|
||||
<input type="text"
|
||||
placeholder="{{'Add an optional password to secure the recovery phrase'|translate}}"
|
||||
autocapitalize="off"
|
||||
name="createPassphrase"
|
||||
ng-model="createPassphrase">
|
||||
</label>
|
||||
|
||||
<div ng-show="join.seedSourceId=='set'">
|
||||
<label for="ext-master">
|
||||
<span translate>Wallet Recovery Phrase</span>
|
||||
<small translate>Enter the recovery phrase (BIP39)</small>
|
||||
<input id="ext-master"
|
||||
autocapitalize="off"
|
||||
type="text"
|
||||
name="privateKey" ng-model="privateKey">
|
||||
</label>
|
||||
</div>
|
||||
<label class="item item-input item-stacked-label" ng-show="join.seedSourceId=='set'">
|
||||
<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"
|
||||
ng-model="privateKey">
|
||||
</label>
|
||||
|
||||
<label class="item item-input item-stacked-label" ng-show="join.seedSourceId=='set'">
|
||||
<span class="input-label" translate>Password</span>
|
||||
<input type="text"
|
||||
placeholder="{{'The recovery phrase could require a password to be imported'|translate}}"
|
||||
autocapitalize="off"
|
||||
name="passphrase"
|
||||
ng-model="passphrase">
|
||||
</label>
|
||||
|
||||
<label class="item item-input item-stacked-label" ng-show="join.seedSourceId == 'set'">
|
||||
<span class="input-label" translate>Derivation Path</span>
|
||||
<input type="text"
|
||||
placeholder="{{'BIP32 path for address derivation'|translate}}"
|
||||
name="derivationPath"
|
||||
ng-model="derivationPath">
|
||||
</label>
|
||||
|
||||
<div ng-show="join.seedSourceId=='set'">
|
||||
<label for="passphrase"> <span translate>Password</span> <small translate>The recovery phrase could require a password to be imported</small>
|
||||
<div class="input">
|
||||
<input type="text" autocapitalize="off" class="form-control" name="passphrase" ng-model="passphrase">
|
||||
</div>
|
||||
</label>
|
||||
</div>
|
||||
<div ng-show="join.seedSourceId == 'set'">
|
||||
<label class="oh"><span translate>Derivation Path</span> <small translate>BIP32 path for address derivation</small>
|
||||
<input type="text" class="form-control" name="derivationPath" ng-model="derivationPath">
|
||||
</label>
|
||||
</div>
|
||||
</div> <!-- columns -->
|
||||
</div> <!-- advanced -->
|
||||
</div> <!-- list -->
|
||||
|
||||
<button type="submit" class="button button-block button-positive" ng-disabled="joinForm.$invalid" translate>
|
||||
Join
|
||||
</button>
|
||||
</form>
|
||||
</ion-content>
|
||||
</ion-view>
|
||||
|
||||
<button translate type="submit" class="button expand black m0 round"
|
||||
ng-disabled="joinForm.$invalid">Join</button>
|
||||
</div> <!-- large-12 columns -->
|
||||
</div> <!-- row -->
|
||||
</form>
|
||||
</div>
|
||||
<div class="extra-margin-bottom"></div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue