1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-06 00:13:28 +00:00
Files
browser/libs/vault/src/cipher-form/components/additional-options/additional-options-section.component.html

40 lines
1.2 KiB
HTML

<section
class="tw-mb-5 bit-compact:tw-mb-4"
[ngClass]="{ 'tw-mb-0': disableSectionMargin && !hasCustomFields }"
[formGroup]="additionalOptionsForm"
>
<bit-section-header>
<h2 bitTypography="h6">{{ "additionalOptions" | i18n }}</h2>
</bit-section-header>
<bit-card>
<bit-form-field>
<bit-label>{{ "notes" | i18n }}</bit-label>
<textarea bitInput rows="5" formControlName="notes"></textarea>
</bit-form-field>
<bit-form-control
*ngIf="passwordRepromptEnabled$ | async"
[disableMargin]="hasCustomFields || isPartialEdit"
>
<input type="checkbox" bitCheckbox formControlName="reprompt" />
<bit-label>{{ "passwordPrompt" | i18n }}</bit-label>
</bit-form-control>
<button
bitLink
type="button"
linkType="primary"
*ngIf="!hasCustomFields && !isPartialEdit && allowNewField"
(click)="addCustomField()"
>
<i class="bwi bwi-plus tw-font-medium" aria-hidden="true"></i>
{{ "addField" | i18n }}
</button>
</bit-card>
</section>
<vault-custom-fields
(numberOfFieldsChange)="handleCustomFieldChange($event)"
[disableSectionMargin]="disableSectionMargin"
></vault-custom-fields>