{{ "MANAGE_AUDIT_TEMPLATE" | translate }}
{{ "TEMPLATE_DETAILS" | translate }}
@if(templateForm.get('name')?.touched && templateForm.get('name')?.errors){ @if(templateForm.get('name')?.hasError('required')) {
{{'TEMPLATE_NAME_IS_REQUIRED' | translate}}
} @if(templateForm.get('name')?.hasError('maxlength')) {
{{'MAXIMUM_LENGTH_IS_100_CHARACTERS' | translate}}
} }
{{"TEMPLATE_IS_ACTIVE" | translate}}
-- {{ "NONE" | translate }} -- @for (icon of icons; track $index) { {{ icon }} {{ icon }} }
-- {{ "NONE" | translate }} -- @for (auditType of auditTypes; track $index) { {{ auditType.label | translate }} } @if (templateForm.get('auditType')?.touched && templateForm.get('auditType')?.hasError('required')) {
{{'AUDIT_TYPE_IS_REQUIRED' | translate}}
}
-- {{ "NONE" | translate }} -- @for(department of departmentStore.departments(); track department.id) { {{ department.name }} }
@if(templateForm.get('departmentId')?.touched && templateForm.get('departmentId')?.hasError('required')){
{{'DEPARTMENT_IS_REQUIRED' | translate}}
}
@if(templateForm.get('description')?.touched && templateForm.get('description')?.hasError('maxlength')){
{{'MAXIMUM_LENGTH_IS_1000_CHARACTERS' | translate}}
}
{{ "AUDIT_CHECKLIST_QUESTIONS" | translate }}
@for (questionControl of questions.controls; track $index;let i = $index) {
drag_indicator
{{ questionControl.get('orderNo')?.value }} - {{ questionControl.get('question')?.value || 'NEW_QUESTION' | translate }}
@if(questionControl){ }
} @if (questions.length === 0) {
help {{'NO_QUESTIONS_ADDED' | translate}}

{{'ADD_QUESTIONS_TO_YOUR_TEMPLATE_TO_GET_STARTED' | translate}}

}