@if(isDetailsMode){
{{ "MANAGE_COMPLAINT" | translate }}
}
{{ "COMPLAINT_DETAILS" | translate }}
@if(!isDetailsMode){
}
@if(complaintForm.get('title')?.touched && complaintForm.get('title')?.errors){
@if(complaintForm.get('title')?.hasError('required')){
{{'TITLE_IS_REQUIRED' | translate}}
}
}
-- {{ "NONE" | translate }} -- @for (user of userStore.users(); track user) { {{ user.firstName }} {{ user.lastName }} } @if(complaintForm.get('assignedToId')?.touched && complaintForm.get('assignedToId')?.errors){
@if(complaintForm.get('assignedToId')?.hasError('required')){
{{'ASSIGNED_TO_IS_REQUIRED' | translate}}
}
}
-- {{ "NONE" | translate }} -- @for (complaintType of complaintTypeList; track complaintType) { {{ complaintType.name | translate }} }
@if(complaintForm.get('complaintTypeId')?.touched && complaintForm.get('complaintTypeId')?.errors){ @if(complaintForm.get('complaintTypeId')?.errors?.['required']){
{{'COMPLAINT_TYPE_IS_REQUIRED' | translate}}
}
}
-- {{ "NONE" | translate }} -- @for (user of reportedByList; track user) { {{ user.name | translate }} } @if(complaintForm.get('reportedBy')?.touched && complaintForm.get('reportedBy')?.errors){
@if(complaintForm.get('reportedBy')?.errors?.['required']){
{{'REPORTED_BY_IS_REQUIRED' | translate}}
}
}
-- {{ "NONE" | translate }} -- @for (priority of priorityList; track priority) { {{ priority.name | translate }} } @if(complaintForm.get('priority')?.touched && complaintForm.get('priority')?.errors){ @if(complaintForm.get('priority')?.errors?.['required']){
{{'PRIORITY_IS_REQUIRED' | translate}}
}
}
-- {{ "NONE" | translate }} -- @for (status of statusList; track status) { {{ status.name | translate }} } @if(complaintForm.get('status')?.touched && complaintForm.get('status')?.errors){
@if(complaintForm.get('status')?.hasError('required')){
{{'STATUS_IS_REQUIRED' | translate}}
}
}
@if(complaintForm.get('description')?.touched && complaintForm.get('description')?.errors){ @if(complaintForm.get('description')?.errors?.['required']){
{{'DESCRIPTION_IS_REQUIRED' | translate}}
}
}