diff --git a/eform-client/src/app/plugins/modules/backend-configuration-pn/modules/task-wizard/components/task-wizard-actions/task-wizard-create-modal/task-wizard-create-modal.component.html b/eform-client/src/app/plugins/modules/backend-configuration-pn/modules/task-wizard/components/task-wizard-actions/task-wizard-create-modal/task-wizard-create-modal.component.html index feb49a8e..95c0cdaa 100644 --- a/eform-client/src/app/plugins/modules/backend-configuration-pn/modules/task-wizard/components/task-wizard-actions/task-wizard-create-modal/task-wizard-create-modal.component.html +++ b/eform-client/src/app/plugins/modules/backend-configuration-pn/modules/task-wizard/components/task-wizard-actions/task-wizard-create-modal/task-wizard-create-modal.component.html @@ -11,11 +11,11 @@

{{ 'Create new task' | translate }}

{{ 'Status' | translate }} {{ 'Compliance' | translate }} @@ -46,10 +46,9 @@

{{ 'Create new task' | translate }}

[multiple]="false" /> -
+
-
-
- - {{ selectedFolderName || ('Folder not selected' | translate) }} -
-
+
@@ -108,11 +98,9 @@

{{ 'Create new task' | translate }}

[multiple]="true" />
-
+
-
-
- - {{ selectedFolderName || ('Folder not selected' | translate) }} -
-
+ >
@@ -164,62 +152,64 @@

{{ 'Edit task' | translate }}

>
-->
- - -
- - {{ 'Task description' | translate }} ({{ getLanguageName(translate.get('languageId')?.value) }}) - - - - - {{ 'Task description' | translate }} ({{ getLanguageName(nextTranslate.get('languageId')?.value) }}) - - - -
- - - - - - - - - - - - - - - - - - + + +
+ + {{ 'Task description' | translate }} + ({{ getLanguageName(translate.get('languageId')?.value) }}) + + + + + {{ 'Task description' | translate }} + ({{ getLanguageName(nextTranslate.get('languageId')?.value) }}) + + + +
+ + + + + + + + + + + + + + + + + + - + +
-
diff --git a/eform-client/src/app/plugins/modules/backend-configuration-pn/modules/task-wizard/components/task-wizard-actions/task-wizard-update-modal/task-wizard-update-modal.component.ts b/eform-client/src/app/plugins/modules/backend-configuration-pn/modules/task-wizard/components/task-wizard-actions/task-wizard-update-modal/task-wizard-update-modal.component.ts index 0a92f1eb..eb07285d 100644 --- a/eform-client/src/app/plugins/modules/backend-configuration-pn/modules/task-wizard/components/task-wizard-actions/task-wizard-update-modal/task-wizard-update-modal.component.ts +++ b/eform-client/src/app/plugins/modules/backend-configuration-pn/modules/task-wizard/components/task-wizard-actions/task-wizard-update-modal/task-wizard-update-modal.component.ts @@ -62,6 +62,7 @@ export class TaskWizardUpdateModalComponent implements OnInit, OnDestroy { statuses: { label: string, value: number }[] = []; foldersTreeDto: FolderDto[] = []; selectedFolderName: string = ''; + selectedFolderId: number; repeatTypeDay: { name: string, id: number }[] = []; repeatTypeWeek: { name: string, id: number }[] = []; repeatTypeMonth: { name: string, id: number }[] = []; @@ -102,7 +103,7 @@ export class TaskWizardUpdateModalComponent implements OnInit, OnDestroy { return R.equals(this.taskForm.value, this.copyModel); } - + constructor() { this.typeahead .pipe( @@ -316,6 +317,12 @@ export class TaskWizardUpdateModalComponent implements OnInit, OnDestroy { } } + onFolderSelected(folder: FolderDto) { + this.taskForm.patchValue({ folderId: folder.id }); + this.selectedFolderId = folder.id; + this.selectedFolderName = findFullNameById(folder.id, this.foldersTreeDto); + } + update() { const task: TaskWizardCreateModel = { diff --git a/eform-client/src/app/plugins/modules/backend-configuration-pn/modules/task-wizard/components/task-wizard-filters/task-wizard-filters.component.html b/eform-client/src/app/plugins/modules/backend-configuration-pn/modules/task-wizard/components/task-wizard-filters/task-wizard-filters.component.html index 9ef086ad..bcb719ae 100644 --- a/eform-client/src/app/plugins/modules/backend-configuration-pn/modules/task-wizard/components/task-wizard-filters/task-wizard-filters.component.html +++ b/eform-client/src/app/plugins/modules/backend-configuration-pn/modules/task-wizard/components/task-wizard-filters/task-wizard-filters.component.html @@ -1,5 +1,5 @@ -
-
+
+ {{'Location' | translate}} -
-
+ + {{'Tags' | translate}}
-
+ diff --git a/eform-client/src/app/plugins/modules/backend-configuration-pn/modules/task-wizard/components/task-wizard-page/task-wizard-page.component.html b/eform-client/src/app/plugins/modules/backend-configuration-pn/modules/task-wizard/components/task-wizard-page/task-wizard-page.component.html index 60668e56..0dc4c35a 100644 --- a/eform-client/src/app/plugins/modules/backend-configuration-pn/modules/task-wizard/components/task-wizard-page/task-wizard-page.component.html +++ b/eform-client/src/app/plugins/modules/backend-configuration-pn/modules/task-wizard/components/task-wizard-page/task-wizard-page.component.html @@ -1,14 +1,4 @@ - - - - - - - - - -