passman/templates/views/partials/forms/settings/password_settings.html

57 lines
2 KiB
HTML
Raw Normal View History

2016-09-29 04:05:09 +08:00
<div class="password_settings">
<div class="col-xs-12 col-sm-5 col-lg-4 password-settings-padding-left-fix">
2016-09-29 04:05:09 +08:00
<label>
2016-12-20 06:51:15 +08:00
<span class="label">{{ 'password.generation.length' | translate}}</span><br />
2016-09-29 04:05:09 +08:00
<input type="number" ng-model="vault_settings.pwSettings.length" min="1">
</label>
<label>
2016-12-20 06:51:15 +08:00
<span class="label">{{ 'password.generation.min_digits' | translate}}</span><br />
2016-09-29 04:05:09 +08:00
<input type="number" ng-model="vault_settings.pwSettings.minimumDigitCount" min="0">
</label>
2016-09-29 04:15:03 +08:00
<label>
<span class="label">Generate password on creation</span><br />
<input type="checkbox" ng-model="vault_settings.pwSettings.generateOnCreate" min="0">
</label>
2016-09-29 04:05:09 +08:00
</div>
<div class="col-xs-12 col-sm-6 col-lg-6">
<label>
<input type="checkbox"
ng-model="vault_settings.pwSettings.useUppercase">
2016-12-20 06:51:15 +08:00
<span class="label sm">{{ 'password.generation.uppercase' | translate}}</span>
2016-09-29 04:05:09 +08:00
</label>
<label>
<input
ng-model="vault_settings.pwSettings.useLowercase" type="checkbox"
id="lower">
2016-12-20 06:51:15 +08:00
<span class="label sm">{{ 'password.generation.lowercase' | translate}}</span>
2016-09-29 04:05:09 +08:00
</label>
<label>
<input ng-model="vault_settings.pwSettings.useDigits" type="checkbox"
id="digits">
2016-12-20 06:51:15 +08:00
<span class="label sm">{{ 'password.generation.digits' | translate}}</span>
2016-09-29 04:05:09 +08:00
</label>
<label>
<input type="checkbox" id="special"
ng-model="vault_settings.pwSettings.useSpecialChars">
2016-12-20 06:51:15 +08:00
<span class="label sm">{{ 'password.generation.special' | translate}}</span>
2016-09-29 04:05:09 +08:00
</label>
<label>
<input type="checkbox" id="ambig"
ng-model="vault_settings.pwSettings.avoidAmbiguousCharacters">
2016-12-20 06:51:15 +08:00
<span class="label sm">{{ 'password.generation.ambiguous' | translate}}</span>
2016-09-29 04:05:09 +08:00
</label>
<label>
<input type="checkbox" ng-model="vault_settings.pwSettings.requireEveryCharType"
id="reqevery">
2016-12-20 06:51:15 +08:00
<span class="label sm">{{ 'password.generation.require_same' | translate}}</span>
2016-09-29 04:05:09 +08:00
</label>
</div>
</div>
<div class="row">
<div class="col-xs-12">
2016-12-20 06:51:15 +08:00
<button class="button" ng-click="saveVaultSettings()">{{ 'save' | translate}}</button>
2016-09-29 04:05:09 +08:00
</div>
</div>