diff --git a/dmp-frontend/src/app/ui/quick-wizard/quick-wizard-editor/quick-wizard-editor.component.html b/dmp-frontend/src/app/ui/quick-wizard/quick-wizard-editor/quick-wizard-editor.component.html index b2f3367e4..da970343b 100644 --- a/dmp-frontend/src/app/ui/quick-wizard/quick-wizard-editor/quick-wizard-editor.component.html +++ b/dmp-frontend/src/app/ui/quick-wizard/quick-wizard-editor/quick-wizard-editor.component.html @@ -1,59 +1,68 @@
-
+

{{ 'QUICKWIZARD.CREATE-ADD.CREATE.QUICKWIZARD_CREATE.TITLE' | translate }}

- - {{'QUICKWIZARD.CREATE-ADD.CREATE.QUICKWIZARD_CREATE.FIRST-STEP.TITLE' | translate}} - -
- - -
- + + + {{'QUICKWIZARD.CREATE-ADD.CREATE.QUICKWIZARD_CREATE.FIRST-STEP.TITLE' | translate}} + +
+ + +
+ +
- - {{'QUICKWIZARD.CREATE-ADD.CREATE.QUICKWIZARD_CREATE.SECOND-STEP.TITLE' | translate}} - -
- - -
- + + + {{'QUICKWIZARD.CREATE-ADD.CREATE.QUICKWIZARD_CREATE.SECOND-STEP.TITLE' | translate}} + +
+ + +
+ +
- - {{'QUICKWIZARD.CREATE-ADD.CREATE.QUICKWIZARD_CREATE.THIRD-STEP.TITLE' | translate}} - -
- - - - + + + - -
- + +
+ +
diff --git a/dmp-frontend/src/app/ui/quick-wizard/quick-wizard-editor/quick-wizard-editor.component.ts b/dmp-frontend/src/app/ui/quick-wizard/quick-wizard-editor/quick-wizard-editor.component.ts index 8dfc26fc8..89a55702b 100644 --- a/dmp-frontend/src/app/ui/quick-wizard/quick-wizard-editor/quick-wizard-editor.component.ts +++ b/dmp-frontend/src/app/ui/quick-wizard/quick-wizard-editor/quick-wizard-editor.component.ts @@ -32,11 +32,9 @@ export class QuickWizardEditorComponent extends BaseComponent implements OnInit, quickWizard: QuickWizardEditorWizardModel formGroup: FormGroup = null; - private uiNotificationService: UiNotificationService - - isLinear = false; firstStepFormGroup: FormGroup; secondFormGroup: FormGroup; + uiNotificationService: any; constructor( @@ -89,6 +87,17 @@ export class QuickWizardEditorComponent extends BaseComponent implements OnInit, // }); } + isAvtive(step: string): boolean { + switch (step) { + case 'step1': + return this.stepper.selectedIndex==0; + case 'step2': + return this.stepper.selectedIndex==1; + case 'step3': + return this.stepper.selectedIndex==2; + } + } + formSubmit(): void { this.touchAllFormFields(this.formGroup); if (!this.isFormValid()) { return; }