Remove manual input

This commit is contained in:
brantje 2016-09-14 17:39:02 +02:00
parent 9e10b75c60
commit 04dadc28c2

View file

@ -1,55 +1,44 @@
<div class="row"> <div class="row">
<div class="col-xs-12"> <div class="col-xs-12">
<div class="col-xs-2 nopadding"> <div class="col-xs-2 nopadding">
OTP Type Upload your OTP qr code
</div> </div>
<div class="col-xs-6 nopadding"> <div class="col-xs-6 nopadding">
<label for="otpImg"><input type="radio" name="seletcOTPType" <input type="file" qrread on-read="parseQR(qrdata)" class="input_secret"
value="image" ng-model="otpType" on-read="parseQR(qrdata)" />
id="otpImg">Upload an image</label>
<label for="otpStr"><input type="radio" name="seletcOTPType"
value="string" ng-model="otpType"
id="otpStr">Set the secret
manually</label>
</div>
<div class="col-xs-12 nopadding">
<input type="file" qrread on-read="parseQR(qrdata)"
on-read="parseQR(qrdata)" ng-show="otpType==='image'"/>
<label ng-show="otpType==='string'">Enter the two-factor
secret</label>
<input type="text" ng-model="currentItem.otpsecret.secret"
class="otpSecret form-control" ng-show="otpType==='string'"/>
</div> </div>
</div> </div>
<hr> </div>
<div class="col-xs-12" ng-if="storedCredential.otp">Current OTP settings</div>
<div class="col-xs-5 col-sm-4 col-md-2" ng-if="storedCredential.otp.qr_uri"> <hr>
<img ng-src="{{storedCredential.otp.qr_uri.image}}" /> <div class="col-xs-12" ng-if="storedCredential.otp">Current OTP settings</div>
</div> <div class="col-xs-5 col-sm-4 col-md-2" ng-if="storedCredential.otp.qr_uri">
<div class="col-sm-4 col-sm-5 col-md-5"> <img ng-src="{{storedCredential.otp.qr_uri.image}}"/>
<table ng-show="storedCredential.otp"> </div>
<tr ng-show="storedCredential.otp.type"> <div class="col-sm-4 col-sm-5 col-md-5">
<td>Type:</td> <table ng-show="storedCredential.otp">
<td>{{storedCredential.otp.type}}</td> <tr ng-show="storedCredential.otp.type">
</tr> <td>Type:</td>
<tr ng-show="storedCredential.otp.label"> <td>{{storedCredential.otp.type}}</td>
<td>Label:</td> </tr>
<td>{{storedCredential.otp.label}}</td> <tr ng-show="storedCredential.otp.label">
</tr> <td>Label:</td>
<tr ng-show="storedCredential.otp.issuer"> <td>{{storedCredential.otp.label}}</td>
<td>Issuer:</td> </tr>
<td>{{storedCredential.otp.issuer}}</td> <tr ng-show="storedCredential.otp.issuer">
</tr> <td>Issuer:</td>
<tr ng-show="storedCredential.otp.secret"> <td>{{storedCredential.otp.issuer}}</td>
<td>Secret:</td> </tr>
<td>{{storedCredential.otp.secret}}</td> <tr ng-show="storedCredential.otp.secret">
</tr> <td>Secret:</td>
<tr ng-show="storedCredential.otp.secret"> <td>{{storedCredential.otp.secret}}</td>
<td>OTP:</td> </tr>
<td><span otp-generator <tr ng-show="storedCredential.otp.secret">
secret="storedCredential.otp.secret"></span> <td>OTP:</td>
</td> <td><span otp-generator
</tr> secret="storedCredential.otp.secret"></span>
</table> </td>
</div> </tr>
</table>
</div>
</div> </div>