2019-04-24 11:26:53 +02:00
|
|
|
<div class="main-content">
|
|
|
|
<div class="container-fluid">
|
|
|
|
<div class="dataset-create-wizard">
|
2019-07-01 12:06:26 +02:00
|
|
|
<h3 *ngIf="isNew">{{ 'QUICKWIZARD.CREATE-ADD.ADD.DATASET-WIZARD' | translate }}</h3>
|
|
|
|
<p *ngIf="isNew">{{ 'QUICKWIZARD.CREATE-ADD.ADD.POST-SELECTION-INFO' | translate }}</p>
|
2019-04-24 11:26:53 +02:00
|
|
|
<mat-horizontal-stepper linear #stepper>
|
|
|
|
<mat-step class="step-container" [stepControl]="formGroup.get('dmpMeta')">
|
|
|
|
<ng-template matStepLabel>{{'DATASET-CREATE-WIZARD.FIRST-STEP.TITLE'| translate}}</ng-template>
|
|
|
|
<form [formGroup]="formGroup.get('dmpMeta')">
|
2019-10-31 09:54:32 +01:00
|
|
|
<dataset-dmp-selector-component class="col-12" [formGroup]="formGroup.get('dmpMeta')" [datasetFormGroup]="formGroup.get('datasets')" [stepper]="stepper">
|
2019-04-24 11:26:53 +02:00
|
|
|
</dataset-dmp-selector-component>
|
|
|
|
</form>
|
|
|
|
<div class="col-12">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col"></div>
|
2019-10-31 09:54:32 +01:00
|
|
|
<div><button matStepperNext mat-raised-button color="primary" [disabled]="!formGroup.get('dmpMeta').valid">{{'DATASET-CREATE-WIZARD.ACTIONS.NEXT'| translate}}</button></div>
|
2019-04-24 11:26:53 +02:00
|
|
|
</div>
|
2019-03-05 11:20:10 +01:00
|
|
|
</div>
|
2019-04-24 11:26:53 +02:00
|
|
|
</mat-step>
|
|
|
|
<mat-step [stepControl]="formGroup">
|
|
|
|
<ng-template matStepLabel>
|
|
|
|
{{'QUICKWIZARD.CREATE-ADD.CREATE.QUICKWIZARD_CREATE.THIRD-STEP.TITLE' | translate}}
|
|
|
|
</ng-template>
|
|
|
|
<div *ngIf="formGroup.get('dmpMeta').valid && isActive('step2')">
|
2019-10-31 09:54:32 +01:00
|
|
|
<app-dataset-editor-wizard-component class="col-12" [formGroup]="formGroup" [datasetProfile]="formGroup.get('dmpMeta').get('datasetProfile')" [datasetLabel]="formGroup.get('dmpMeta').get('dmp').value['label']">
|
2019-04-24 11:26:53 +02:00
|
|
|
</app-dataset-editor-wizard-component>
|
|
|
|
</div>
|
|
|
|
<div class="navigation-buttons-container">
|
2019-10-31 09:54:32 +01:00
|
|
|
<button matStepperPrevious mat-raised-button color="primary">{{'QUICKWIZARD.CREATE-ADD.CREATE.QUICKWIZARD_CREATE.ACTIONS.BACK' | translate}}</button>
|
|
|
|
<button class="saveAndFinalizeButton" matStepperNext mat-raised-button (click)='saveFinalize()' [disabled]="!isFormValid() || !hasDatasets()" color="primary">{{'QUICKWIZARD.CREATE-ADD.CREATE.QUICKWIZARD_CREATE.ACTIONS.SAVE-AND-FINALIZE' | translate}}</button>
|
|
|
|
<button class="saveButton" matStepperNext mat-raised-button (click)='save()' [disabled]="!hasDatasets()" color="primary">{{'QUICKWIZARD.CREATE-ADD.CREATE.QUICKWIZARD_CREATE.ACTIONS.SAVE' | translate}}</button>
|
2019-04-24 11:26:53 +02:00
|
|
|
</div>
|
|
|
|
</mat-step>
|
|
|
|
</mat-horizontal-stepper>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-03-06 10:43:48 +01:00
|
|
|
</div>
|