1
0
mirror of https://github.com/bitwarden/desktop.git synced 2024-10-31 08:10:29 +01:00
bitwarden-desktop/src/app/accounts/vault-timeout-input.component.html

47 lines
1.3 KiB
HTML
Raw Normal View History

2021-09-15 20:02:46 +02:00
<app-callout type="info" *ngIf="vaultTimeoutPolicy">
2021-12-20 15:47:17 +01:00
{{ "vaultTimeoutPolicyInEffect" | i18n: vaultTimeoutPolicyHours:vaultTimeoutPolicyMinutes }}
2021-09-15 20:02:46 +02:00
</app-callout>
<div [formGroup]="form">
2021-12-20 15:47:17 +01:00
<div class="form-group">
<label for="vaultTimeout">{{ "vaultTimeout" | i18n }}</label>
<select
id="vaultTimeout"
name="VaultTimeout"
formControlName="vaultTimeout"
class="form-control"
appAutofocus
>
<option *ngFor="let o of vaultTimeouts" [ngValue]="o.value">{{ o.name }}</option>
</select>
<small class="form-text text-muted">{{ "vaultTimeoutDesc" | i18n }}</small>
</div>
<div class="form-group row" *ngIf="showCustom" formGroupName="custom">
<div class="col">
<label for="hours">{{ "hours" | i18n }}</label>
<input
id="hours"
class="form-control"
type="number"
min="0"
name="hours"
formControlName="hours"
/>
2021-09-15 20:02:46 +02:00
</div>
2021-12-20 15:47:17 +01:00
<div class="col">
<label for="minutes">{{ "minutes" | i18n }}</label>
<input
id="minutes"
class="form-control"
type="number"
min="0"
max="59"
name="minutes"
formControlName="minutes"
/>
2021-09-15 20:02:46 +02:00
</div>
2021-12-20 15:47:17 +01:00
</div>
<div class="form-group"></div>
<!-- Styling fix -->
2021-09-15 20:02:46 +02:00
</div>