79 lines
2.7 KiB
HTML
79 lines
2.7 KiB
HTML
<form
|
|
[formGroup]="domainForm"
|
|
[bitSubmit]="data.orgDomain ? verifyDomain : saveDomain"
|
|
[allowDisabledFormSubmit]="true"
|
|
>
|
|
<bit-dialog [dialogSize]="'default'" [disablePadding]="false">
|
|
<span bitDialogTitle>
|
|
<span *ngIf="!data.orgDomain">{{ "newDomain" | i18n }}</span>
|
|
<span *ngIf="data.orgDomain"> {{ "verifyDomain" | i18n }}</span>
|
|
|
|
<span *ngIf="data.orgDomain" class="tw-text-xs tw-text-muted">{{
|
|
data.orgDomain.domainName
|
|
}}</span>
|
|
|
|
<span *ngIf="data?.orgDomain && !data.orgDomain?.verifiedDate" bitBadge variant="warning">{{
|
|
"domainStatusUnverified" | i18n
|
|
}}</span>
|
|
<span *ngIf="data?.orgDomain && data?.orgDomain?.verifiedDate" bitBadge variant="success">{{
|
|
"domainStatusVerified" | i18n
|
|
}}</span>
|
|
</span>
|
|
<div bitDialogContent>
|
|
<bit-form-field>
|
|
<bit-label>{{ "domainName" | i18n }}</bit-label>
|
|
<input bitInput appAutofocus formControlName="domainName" [showErrorsWhenDisabled]="true" />
|
|
<bit-hint>{{ "domainNameInputHint" | i18n }}</bit-hint>
|
|
</bit-form-field>
|
|
|
|
<bit-form-field *ngIf="data?.orgDomain">
|
|
<bit-label>{{ "dnsTxtRecord" | i18n }}</bit-label>
|
|
<input bitInput formControlName="txt" />
|
|
<bit-hint>{{ "dnsTxtRecordInputHint" | i18n }}</bit-hint>
|
|
<button
|
|
type="button"
|
|
bitSuffix
|
|
bitButton
|
|
appA11yTitle="{{ 'copyDnsTxtRecord' | i18n }}"
|
|
(click)="copyDnsTxt()"
|
|
>
|
|
<i class="bwi bwi-lg bwi-clone" aria-hidden="true"></i>
|
|
</button>
|
|
</bit-form-field>
|
|
|
|
<bit-callout
|
|
*ngIf="data?.orgDomain && !data?.orgDomain?.verifiedDate"
|
|
type="info"
|
|
title="{{ 'automaticDomainVerification' | i18n }}"
|
|
>
|
|
{{ "automaticDomainVerificationProcess" | i18n }}
|
|
</bit-callout>
|
|
</div>
|
|
<ng-container bitDialogFooter>
|
|
<button type="submit" bitButton bitFormButton buttonType="primary">
|
|
<span *ngIf="!data?.orgDomain">{{ "next" | i18n }}</span>
|
|
<span *ngIf="data?.orgDomain && !data?.orgDomain?.verifiedDate">{{
|
|
"verifyDomain" | i18n
|
|
}}</span>
|
|
<span *ngIf="data?.orgDomain?.verifiedDate">{{ "reverifyDomain" | i18n }}</span>
|
|
</button>
|
|
<button bitButton buttonType="secondary" (click)="dialogRef.close()" type="button">
|
|
{{ "cancel" | i18n }}
|
|
</button>
|
|
|
|
<button
|
|
*ngIf="data.orgDomain"
|
|
class="tw-ml-auto"
|
|
bitIconButton="bwi-trash"
|
|
buttonType="danger"
|
|
size="default"
|
|
title="{{ 'delete' | i18n }}"
|
|
aria-label="Delete"
|
|
[bitAction]="deleteDomain"
|
|
type="submit"
|
|
bitFormButton
|
|
></button>
|
|
</ng-container>
|
|
</bit-dialog>
|
|
</form>
|