no message

This commit is contained in:
Diamantis Tziotzios 2017-12-21 12:12:44 +02:00
parent cfd2188a47
commit 5e4a31748e
2 changed files with 30 additions and 20 deletions

View File

@ -2,43 +2,36 @@
<mat-horizontal-stepper [linear]="isLinear">
<mat-step [stepControl]="formGroup">
<form *ngIf="formGroup" [formGroup]="formGroup">
<ng-template matStepLabel>Dataset Profile Associations</ng-template>
<auto-complete class="full-width" placeholder="{{'FORM-PAYMENT-ORDER.EDITOR.FIELDS.PROJECT' | translate}}"
[configuration]="dmpAutoCompleteConfiguration"
titleKey="label"
[control]="formGroup.get('dmp')"
[required]="true">
<ng-template matStepLabel>{{'DATASET-WIZARD.FIRST-STEP.TITLE' | translate}}</ng-template>
<auto-complete class="full-width" placeholder="{{'DATASET-WIZARD.FIRST-STEP.DMP' | translate}}" [configuration]="dmpAutoCompleteConfiguration"
titleKey="label" [control]="formGroup.get('dmp')" [required]="true">
</auto-complete>
<auto-complete class="full-width" placeholder="{{'FORM-PAYMENT-ORDER.EDITOR.FIELDS.PROJECT' | translate}}"
[configuration]="datasetProfileAutoCompleteConfiguration"
titleKey="label"
[control]="formGroup.get('profile')"
[required]="true"
[disabled]="!formGroup.get('dmp').value">
<auto-complete class="full-width" placeholder="{{'DATASET-WIZARD.FIRST-STEP.PROFILE' | translate}}" [configuration]="datasetProfileAutoCompleteConfiguration"
titleKey="label" [control]="formGroup.get('profile')" [required]="true" [disabled]="!formGroup.get('dmp').value">
</auto-complete>
<div>
<button mat-button matStepperNext>Next</button>
<button matStepperNext mat-raised-button color="primary">{{'DATASET-WIZARD.ACTIONS.NEXT' | translate}}</button>
</div>
</form>
</mat-step>
<mat-step [stepControl]="formGroup">
<form *ngIf="formGroup" [formGroup]="formGroup">
<ng-template matStepLabel>Dataset Profile Basic Info</ng-template>
<ng-template matStepLabel>{{'DATASET-WIZARD.SECOND-STEP.TITLE' | translate}}</ng-template>
<app-dataset-editor-component [formGroup]="formGroup"></app-dataset-editor-component>
<div>
<button mat-button matStepperPrevious>Back</button>
<button mat-button matStepperNext>Next</button>
<button matStepperPrevious mat-raised-button color="primary">{{'DATASET-WIZARD.ACTIONS.BACK' | translate}}</button>
<button matStepperNext mat-raised-button color="primary">{{'DATASET-WIZARD.ACTIONS.NEXT' | translate}}</button>
</div>
</form>
</mat-step>
<mat-step>
<ng-template matStepLabel>Dataset Profile Form</ng-template>
You are now done.
<ng-template matStepLabel>{{'DATASET-WIZARD.THIRD-STEP.TITLE' | translate}}</ng-template>
<div>
<button mat-button matStepperPrevious>Back</button>
<button matStepperPrevious mat-raised-button color="primary">{{'DATASET-WIZARD.ACTIONS.BACK' | translate}}</button>
</div>
</mat-step>
</mat-horizontal-stepper>
<!-- <div *ngIf="formGroup"> {{ formGroup.value | json }}</div> -->
</div>

View File

@ -44,6 +44,23 @@
"VERSION": "Version"
}
},
"DATASET-WIZARD": {
"FIRST-STEP": {
"TITLE": "Plan Information",
"DMP": "Data Management Plan",
"PROFILE": "Profile"
},
"SECOND-STEP": {
"TITLE": "Dataset Information"
},
"THIRD-STEP": {
"TITLE": "Definition"
},
"ACTIONS": {
"NEXT": "Next",
"BACK": "Back"
}
},
"DATASET-LISTING": {
"TITLE": "Datasets",
"COLUMNS": {