create view and controller refactor
This commit is contained in:
parent
b148332d9d
commit
d55e756e6a
6 changed files with 33 additions and 30 deletions
|
|
@ -5,7 +5,7 @@
|
|||
</ion-nav-back-button>
|
||||
</ion-nav-bar>
|
||||
|
||||
<ion-content ng-controller="createController" ng-init="init(1);">
|
||||
<ion-content>
|
||||
<form name="setupForm" ng-submit="create()" novalidate>
|
||||
<div class="list settings-list settings-input-group">
|
||||
<label class="item item-input item-stacked-label">
|
||||
|
|
@ -15,7 +15,8 @@
|
|||
ng-model="formData.walletName"
|
||||
ng-required="true"
|
||||
ng-focus="formFocus('wallet-name')"
|
||||
ng-blur="formFocus(false)">
|
||||
ng-blur="formFocus(false)"
|
||||
required>
|
||||
</label>
|
||||
|
||||
<div class="item item-divider"></div>
|
||||
|
|
@ -67,7 +68,7 @@
|
|||
type="password"
|
||||
autocapitalize="off"
|
||||
ng-model="formData.createPassphrase"
|
||||
ng-change="checkPassword(formData.createPassphrase, formData.repeatpassword)"
|
||||
ng-change="checkPassword(formData.createPassphrase, formData.repeatPassword)"
|
||||
ng-class="{'correct': result == 'correct', 'incorrect': result == 'incorrect'}">
|
||||
|
||||
<input ng-show="seedSource.id == 'set'"
|
||||
|
|
@ -75,7 +76,7 @@
|
|||
type="password"
|
||||
autocapitalize="off"
|
||||
ng-model="formData.passphrase"
|
||||
ng-change="checkPassword(formData.passphrase, formData.repeatpassword)"
|
||||
ng-change="checkPassword(formData.passphrase, formData.repeatPassword)"
|
||||
ng-class="{'correct': result == 'correct', 'incorrect': result == 'incorrect'}">
|
||||
</div>
|
||||
<div class="item item-input" ng-show="encrypt">
|
||||
|
|
@ -83,16 +84,16 @@
|
|||
placeholder="{{'Repeat password'|translate}}"
|
||||
type="password"
|
||||
autocapitalize="off"
|
||||
ng-model="formData.repeatpassword"
|
||||
ng-change="checkPassword(formData.createPassphrase, formData.repeatpassword)"
|
||||
ng-model="formData.repeatPassword"
|
||||
ng-change="checkPassword(formData.createPassphrase, formData.repeatPassword)"
|
||||
ng-class="{'correct': result == 'correct', 'incorrect': result == 'incorrect'}">
|
||||
|
||||
<input ng-show="seedSource.id == 'set'"
|
||||
placeholder="{{'Repeat password'|translate}}"
|
||||
type="password"
|
||||
autocapitalize="off"
|
||||
ng-model="formData.repeatpassword"
|
||||
ng-change="checkPassword(formData.passphrase, formData.repeatpassword)"
|
||||
ng-model="formData.repeatPassword"
|
||||
ng-change="checkPassword(formData.passphrase, formData.repeatPassword)"
|
||||
ng-class="{'correct': result == 'correct', 'incorrect': result == 'incorrect'}">
|
||||
</div>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue