|
|
|
@ -4,15 +4,17 @@ |
|
|
|
|
|
|
|
<form *ngIf="form" [formGroup]="form" (ngSubmit)="submit()" [validateOnSubmit]="true"> |
|
|
|
<div class="mb-3 form-group"> |
|
|
|
<label class="form-label">{{ |
|
|
|
'AbpSettingManagement::DefaultFromDisplayName' | abpLocalization |
|
|
|
}}<span class="ms-1">*</span></label> |
|
|
|
<label class="form-label" |
|
|
|
>{{ 'AbpSettingManagement::DefaultFromDisplayName' | abpLocalization |
|
|
|
}}<span class="ms-1">*</span></label |
|
|
|
> |
|
|
|
<input type="text" class="form-control" formControlName="defaultFromDisplayName" /> |
|
|
|
</div> |
|
|
|
<div class="mb-3 form-group"> |
|
|
|
<label class="form-label">{{ |
|
|
|
'AbpSettingManagement::DefaultFromAddress' | abpLocalization |
|
|
|
}}<span class="ms-1">*</span></label> |
|
|
|
<label class="form-label" |
|
|
|
>{{ 'AbpSettingManagement::DefaultFromAddress' | abpLocalization |
|
|
|
}}<span class="ms-1">*</span></label |
|
|
|
> |
|
|
|
<input type="text" class="form-control" formControlName="defaultFromAddress" /> |
|
|
|
</div> |
|
|
|
<div class="mb-3 form-group"> |
|
|
|
@ -20,28 +22,41 @@ |
|
|
|
<input type="text" class="form-control" formControlName="smtpHost" /> |
|
|
|
</div> |
|
|
|
<div class="mb-3 form-group"> |
|
|
|
<label class="form-label">{{ 'AbpSettingManagement::SmtpPort' | abpLocalization }}<span class="ms-1">*</span></label> |
|
|
|
<label class="form-label" |
|
|
|
>{{ 'AbpSettingManagement::SmtpPort' | abpLocalization }}<span class="ms-1">*</span></label |
|
|
|
> |
|
|
|
<input type="number" class="form-control" formControlName="smtpPort" /> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="form-check mb-2"> |
|
|
|
<input type="checkbox" id="smtp-enable-ssl" class="form-check-input" formControlName="smtpEnableSsl" /> |
|
|
|
<input |
|
|
|
type="checkbox" |
|
|
|
id="smtp-enable-ssl" |
|
|
|
class="form-check-input" |
|
|
|
formControlName="smtpEnableSsl" |
|
|
|
/> |
|
|
|
<label class="form-check-label" for="smtp-enable-ssl">{{ |
|
|
|
'AbpSettingManagement::SmtpEnableSsl' | abpLocalization |
|
|
|
}}</label> |
|
|
|
}}</label> |
|
|
|
</div> |
|
|
|
<div class="form-check mb-2"> |
|
|
|
<input type="checkbox" id="smtp-use-default-credentials" class="form-check-input" |
|
|
|
formControlName="smtpUseDefaultCredentials" /> |
|
|
|
<input |
|
|
|
type="checkbox" |
|
|
|
id="smtp-use-default-credentials" |
|
|
|
class="form-check-input" |
|
|
|
formControlName="smtpUseDefaultCredentials" |
|
|
|
/> |
|
|
|
<label class="form-check-label" for="smtp-use-default-credentials">{{ |
|
|
|
'AbpSettingManagement::SmtpUseDefaultCredentials' | abpLocalization |
|
|
|
}}</label> |
|
|
|
}}</label> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div [@collapse]="{ |
|
|
|
<div |
|
|
|
[@collapse]="{ |
|
|
|
value: form.get('smtpUseDefaultCredentials')?.value ? 'collapsed' : 'expanded', |
|
|
|
params: { time: '200ms', easing: 'linear' } |
|
|
|
}"> |
|
|
|
}" |
|
|
|
> |
|
|
|
<div class="mb-3 form-group"> |
|
|
|
<label class="form-label">{{ 'AbpSettingManagement::SmtpDomain' | abpLocalization }}</label> |
|
|
|
<input type="text" class="form-control" formControlName="smtpDomain" /> |
|
|
|
@ -63,37 +78,43 @@ |
|
|
|
<button type="submit" class="btn btn-primary"> |
|
|
|
{{ 'AbpSettingManagement::Save' | abpLocalization }} |
|
|
|
</button> |
|
|
|
<button type="button" (click)="openSendEmailModal()" class="btn btn-primary mx-2" *abpPermission="emailingPolicy"> |
|
|
|
<i class="fa f-send"></i> |
|
|
|
<button |
|
|
|
type="button" |
|
|
|
(click)="openSendEmailModal()" |
|
|
|
class="btn btn-primary mx-2" |
|
|
|
*abpPermission="emailingPolicy" |
|
|
|
> |
|
|
|
<i class="fa f-send" aria-hidden="true"></i> |
|
|
|
{{ 'AbpSettingManagement::SendTestEmail' | abpLocalization }} |
|
|
|
</button> |
|
|
|
</form> |
|
|
|
|
|
|
|
<abp-modal [(visible)]="isEmailTestModalOpen" [options]="modalSize"> |
|
|
|
<ng-template #abpHeader> |
|
|
|
<h3>{{"SendTestEmail" | abpLocalization}}</h3> |
|
|
|
<h3>{{ 'SendTestEmail' | abpLocalization }}</h3> |
|
|
|
</ng-template> |
|
|
|
|
|
|
|
<ng-template #abpBody> |
|
|
|
<form [formGroup]="emailTestForm" id="emailTestForm" (ngSubmit)="emailTestFormSubmit()"> |
|
|
|
|
|
|
|
<div class="mb-3 form-group"> |
|
|
|
<label class="form-label">{{ 'AbpSettingManagement::SenderEmailAddress' | abpLocalization }}</label> |
|
|
|
<label class="form-label">{{ |
|
|
|
'AbpSettingManagement::SenderEmailAddress' | abpLocalization |
|
|
|
}}</label> |
|
|
|
<input class="form-control" formControlName="senderEmailAddress" /> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="mb-3 form-group"> |
|
|
|
<label class="form-label">{{ 'AbpSettingManagement::TargetEmailAddress' | abpLocalization }}</label> |
|
|
|
<label class="form-label">{{ |
|
|
|
'AbpSettingManagement::TargetEmailAddress' | abpLocalization |
|
|
|
}}</label> |
|
|
|
<input class="form-control" formControlName="targetEmailAddress" /> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="mb-3 form-group"> |
|
|
|
<label class="form-label">{{ 'AbpSettingManagement::Subject' | abpLocalization }}</label> |
|
|
|
<input class="form-control" formControlName="subject" /> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="mb-3 form-group"> |
|
|
|
<label class="form-label">{{ 'AbpSettingManagement::Body' | abpLocalization }}</label> |
|
|
|
<textarea class="form-control" formControlName="body"></textarea> |
|
|
|
@ -101,13 +122,16 @@ |
|
|
|
</form> |
|
|
|
</ng-template> |
|
|
|
|
|
|
|
|
|
|
|
<ng-template #abpFooter> |
|
|
|
<abp-button buttonType="submit" iconClass="fa fa-send" formName="emailTestForm" |
|
|
|
[disabled]="emailTestForm.invalid && emailTestForm.dirty"> |
|
|
|
<abp-button |
|
|
|
buttonType="submit" |
|
|
|
iconClass="fa fa-send" |
|
|
|
formName="emailTestForm" |
|
|
|
[disabled]="emailTestForm.invalid && emailTestForm.dirty" |
|
|
|
> |
|
|
|
<span>{{ 'AbpTenantManagement::Send' | abpLocalization }}</span> |
|
|
|
</abp-button> |
|
|
|
|
|
|
|
<button type="button" class="btn btn-secondary" abpClose>Close</button> |
|
|
|
</ng-template> |
|
|
|
</abp-modal> |
|
|
|
</abp-modal> |
|
|
|
|