[AC-2408] migrate maximum vault timeout component (#8801)

* migrating maximum-vault-timeout component

* migrating maximum-vault-timeout component
This commit is contained in:
vinith-kovan 2024-05-22 19:11:34 +05:30 committed by GitHub
parent a5bfff891b
commit 18f14d8b7d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 24 additions and 51 deletions

View File

@ -2,58 +2,31 @@
{{ "requireSsoPolicyReq" | i18n }} {{ "requireSsoPolicyReq" | i18n }}
</app-callout> </app-callout>
<div class="form-group"> <bit-form-control>
<div class="form-check"> <input type="checkbox" id="enabled" bitCheckbox [formControl]="enabled" />
<input <bit-label>{{ "turnOn" | i18n }}</bit-label>
class="form-check-input" </bit-form-control>
type="checkbox"
id="enabled"
[formControl]="enabled"
name="Enabled"
/>
<label class="form-check-label" for="enabled">{{ "turnOn" | i18n }}</label>
</div>
</div>
<div [formGroup]="data"> <div [formGroup]="data">
<div class="form-group"> <div class="tw-grid tw-grid-cols-12 tw-gap-4">
<label for="hours">{{ "maximumVaultTimeoutLabel" | i18n }}</label> <bit-form-field class="tw-col-span-6 !tw-mb-0">
<div class="row"> <bit-label>{{ "maximumVaultTimeoutLabel" | i18n }}</bit-label>
<div class="col-6"> <input bitInput type="number" min="0" formControlName="hours" />
<input <bit-hint>{{ "hours" | i18n }}</bit-hint>
id="hours" </bit-form-field>
class="form-control" <bit-form-field class="tw-col-span-6 tw-self-end !tw-mb-0">
type="number" <input bitInput type="number" min="0" max="59" formControlName="minutes" />
min="0" <bit-hint>{{ "minutes" | i18n }}</bit-hint>
name="hours" </bit-form-field>
formControlName="hours" <bit-form-field class="tw-col-span-6">
/> <bit-label>{{ "vaultTimeoutAction" | i18n }}</bit-label>
<small>{{ "hours" | i18n }}</small> <bit-select formControlName="action">
</div> <bit-option
<div class="col-6"> *ngFor="let option of vaultTimeoutActionOptions"
<input [value]="option.value"
id="minutes" [label]="option.name"
class="form-control" ></bit-option>
type="number" </bit-select>
min="0" </bit-form-field>
max="59"
name="minutes"
formControlName="minutes"
/>
<small>{{ "minutes" | i18n }}</small>
</div>
</div>
</div>
<div class="form-group">
<div class="row">
<div class="col-6">
<label for="action">{{ "vaultTimeoutAction" | i18n }}</label>
<select class="form-control" formControlName="action">
<option *ngFor="let o of vaultTimeoutActionOptions" [ngValue]="o.value">
{{ o.name }}
</option>
</select>
</div>
</div>
</div> </div>
</div> </div>