@@ -89,14 +79,12 @@
}}"
formControlName="description"
maxlength="{{ validationConstants.MAX_DESCRIPTION_LENGTH_300 }}"
- appTrimValue
- >
+ appTrimValue>
diff --git a/src/app/shell/personal-cabinet/provider/create-workshop/create-teacher/teacher-form/teacher-form.component.ts b/src/app/shell/personal-cabinet/provider/create-workshop/create-teacher/teacher-form/teacher-form.component.ts
index 282a8c7bfe..451a91a2be 100644
--- a/src/app/shell/personal-cabinet/provider/create-workshop/create-teacher/teacher-form/teacher-form.component.ts
+++ b/src/app/shell/personal-cabinet/provider/create-workshop/create-teacher/teacher-form/teacher-form.component.ts
@@ -1,6 +1,6 @@
-import { Component, Input } from '@angular/core';
+import { Component, EventEmitter, Input, Output } from '@angular/core';
import { FormGroup } from '@angular/forms';
-import { Output, EventEmitter } from '@angular/core';
+
import { CropperConfigurationConstants } from '../../../../../../shared/constants/constants';
import { ValidationConstants } from '../../../../../../shared/constants/validation';
import { Util } from '../../../../../../shared/utils/utils';
@@ -11,8 +11,8 @@ import { Util } from '../../../../../../shared/utils/utils';
styleUrls: ['./teacher-form.component.scss']
})
export class TeacherFormComponent {
- readonly validationConstants = ValidationConstants;
- readonly cropperConfig = {
+ public readonly validationConstants = ValidationConstants;
+ public readonly cropperConfig = {
cropperMinWidth: CropperConfigurationConstants.cropperMinWidth,
cropperMaxWidth: CropperConfigurationConstants.cropperMaxWidth,
cropperMinHeight: CropperConfigurationConstants.cropperMinHeight,
@@ -23,19 +23,19 @@ export class TeacherFormComponent {
croppedQuality: CropperConfigurationConstants.croppedQuality
};
- today: Date = new Date();
- minDate: Date = Util.getMinBirthDate(ValidationConstants.BIRTH_AGE_MAX);
+ public today: Date = new Date();
+ public minDate: Date = Util.getMinBirthDate(ValidationConstants.BIRTH_AGE_MAX);
- @Input() index: number;
- @Input() TeacherFormGroup: FormGroup;
- @Input() teacherAmount: number;
- @Input() isRelease3: boolean;
+ @Input() public index: number;
+ @Input() public TeacherFormGroup: FormGroup;
+ @Input() public teacherAmount: number;
+ @Input() public isImagesFeature: boolean;
- @Output() deleteForm = new EventEmitter();
+ @Output() public deleteForm = new EventEmitter();
constructor() {}
- onDeleteTeacher(): void {
+ public onDeleteTeacher(): void {
this.deleteForm.emit(this.index);
}
}
diff --git a/src/app/shell/personal-cabinet/provider/create-workshop/create-workshop.component.html b/src/app/shell/personal-cabinet/provider/create-workshop/create-workshop.component.html
index 5fa6c47a1c..4b2350a4f5 100644
--- a/src/app/shell/personal-cabinet/provider/create-workshop/create-workshop.component.html
+++ b/src/app/shell/personal-cabinet/provider/create-workshop/create-workshop.component.html
@@ -6,10 +6,7 @@
{{ (editMode ? 'FORMS.HEADERS.EDIT_WORKSHOP' : 'FORMS.HEADERS.NEW_WORKSHOP') | translate }}
- {{
- (editMode ? 'FORMS.HEADERS.EDIT_WORKSHOP_DESCRIPTION_PATH' : 'FORMS.HEADERS.NEW_WORKSHOP_DESCRIPTION_PATH')
- | translate
- }}
+ {{ (editMode ? 'FORMS.HEADERS.EDIT_WORKSHOP_DESCRIPTION_PATH' : 'FORMS.HEADERS.NEW_WORKSHOP_DESCRIPTION_PATH') | translate }}
{{ 'FORMS.HEADERS.WORKSHOP_FORM_DESCRIPTION' | translate }}