fix html for checkbox on gen

This commit is contained in:
Kyle Spearrin 2019-07-02 17:01:19 -04:00
parent d1a7c3390a
commit 004d14eaf4
1 changed files with 24 additions and 20 deletions

View File

@ -18,7 +18,8 @@
<label for="generate-passphrase" class="form-check-label">{{'passphrase' | i18n}}</label> <label for="generate-passphrase" class="form-check-label">{{'passphrase' | i18n}}</label>
</div> </div>
</div> </div>
<div class="row" *ngIf="options.type === 'passphrase'"> <ng-container *ngIf="options.type === 'passphrase'">
<div class="row">
<div class="form-group col-4"> <div class="form-group col-4">
<label for="num-words">{{'numWords' | i18n}}</label> <label for="num-words">{{'numWords' | i18n}}</label>
<input id="num-words" class="form-control" type="number" min="3" max="20" [(ngModel)]="options.numWords" <input id="num-words" class="form-control" type="number" min="3" max="20" [(ngModel)]="options.numWords"
@ -26,9 +27,11 @@
</div> </div>
<div class="form-group col-4"> <div class="form-group col-4">
<label for="word-separator">{{'wordSeparator' | i18n}}</label> <label for="word-separator">{{'wordSeparator' | i18n}}</label>
<input id="word-separator" class="form-control" type="text" maxlength="1" [(ngModel)]="options.wordSeparator" <input id="word-separator" class="form-control" type="text" maxlength="1"
(blur)="saveOptions()"> [(ngModel)]="options.wordSeparator" (blur)="saveOptions()">
</div> </div>
</div>
<div class="form-group">
<div class="form-check"> <div class="form-check">
<input id="capitalize" class="form-check-input" type="checkbox" (change)="saveOptions()" <input id="capitalize" class="form-check-input" type="checkbox" (change)="saveOptions()"
[(ngModel)]="options.capitalize"> [(ngModel)]="options.capitalize">
@ -39,7 +42,8 @@
[(ngModel)]="options.includeNumber"> [(ngModel)]="options.includeNumber">
<label for="include-number" class="form-check-label">{{'includeNumber' | i18n}}</label> <label for="include-number" class="form-check-label">{{'includeNumber' | i18n}}</label>
</div> </div>
</div> </div>
</ng-container>
<ng-container *ngIf="options.type === 'password'"> <ng-container *ngIf="options.type === 'password'">
<div class="row"> <div class="row">
<div class="form-group col-4"> <div class="form-group col-4">