|
|
@ -44,6 +44,11 @@ |
|
|
<mat-error *ngIf="templateConfigurationForm.get('WEB.subject').hasError('required')"> |
|
|
<mat-error *ngIf="templateConfigurationForm.get('WEB.subject').hasError('required')"> |
|
|
{{ 'notification.subject-required' | translate }} |
|
|
{{ 'notification.subject-required' | translate }} |
|
|
</mat-error> |
|
|
</mat-error> |
|
|
|
|
|
<mat-error *ngIf="templateConfigurationForm.get('WEB.subject').hasError('maxlength')"> |
|
|
|
|
|
{{'notification.subject-max-length' | translate : |
|
|
|
|
|
{length: templateConfigurationForm.get('WEB.subject').getError('maxlength').requiredLength} |
|
|
|
|
|
}} |
|
|
|
|
|
</mat-error> |
|
|
</mat-form-field> |
|
|
</mat-form-field> |
|
|
<mat-form-field class="mat-block"> |
|
|
<mat-form-field class="mat-block"> |
|
|
<mat-label translate>notification.message</mat-label> |
|
|
<mat-label translate>notification.message</mat-label> |
|
|
@ -56,6 +61,11 @@ |
|
|
<mat-error *ngIf="templateConfigurationForm.get('WEB.body').hasError('required')"> |
|
|
<mat-error *ngIf="templateConfigurationForm.get('WEB.body').hasError('required')"> |
|
|
{{ 'notification.message-required' | translate }} |
|
|
{{ 'notification.message-required' | translate }} |
|
|
</mat-error> |
|
|
</mat-error> |
|
|
|
|
|
<mat-error *ngIf="templateConfigurationForm.get('WEB.body').hasError('maxlength')"> |
|
|
|
|
|
{{ 'notification.message-max-length' | translate : |
|
|
|
|
|
{length: templateConfigurationForm.get('WEB.body').getError('maxlength').requiredLength} |
|
|
|
|
|
}} |
|
|
|
|
|
</mat-error> |
|
|
</mat-form-field> |
|
|
</mat-form-field> |
|
|
<section formGroupName="additionalConfig" class="tb-form-panel no-padding no-border"> |
|
|
<section formGroupName="additionalConfig" class="tb-form-panel no-padding no-border"> |
|
|
<div class="tb-form-row space-between" formGroupName="icon"> |
|
|
<div class="tb-form-row space-between" formGroupName="icon"> |
|
|
@ -194,6 +204,11 @@ |
|
|
<mat-error *ngIf="templateConfigurationForm.get('EMAIL.subject').hasError('required')"> |
|
|
<mat-error *ngIf="templateConfigurationForm.get('EMAIL.subject').hasError('required')"> |
|
|
{{ 'notification.subject-required' | translate }} |
|
|
{{ 'notification.subject-required' | translate }} |
|
|
</mat-error> |
|
|
</mat-error> |
|
|
|
|
|
<mat-error *ngIf="templateConfigurationForm.get('EMAIL.subject').hasError('maxlength')"> |
|
|
|
|
|
{{'notification.subject-max-length' | translate : |
|
|
|
|
|
{length: templateConfigurationForm.get('EMAIL.subject').getError('maxlength').requiredLength} |
|
|
|
|
|
}} |
|
|
|
|
|
</mat-error> |
|
|
</mat-form-field> |
|
|
</mat-form-field> |
|
|
<mat-label class="tb-title tb-required" |
|
|
<mat-label class="tb-title tb-required" |
|
|
[class.tb-error]="(interacted || templateConfigurationForm.get('EMAIL.body').touched) && templateConfigurationForm.get('EMAIL.body').hasError('required')" |
|
|
[class.tb-error]="(interacted || templateConfigurationForm.get('EMAIL.body').touched) && templateConfigurationForm.get('EMAIL.body').hasError('required')" |
|
|
|