argos/dmp-frontend/src/app/dataset-wizard/dataset-wizard.component.html

37 lines
2.2 KiB
HTML
Raw Normal View History

2017-12-19 14:57:07 +01:00
<div class="data-management-plan-editor">
<mat-horizontal-stepper [linear]="isLinear">
2017-12-21 10:26:11 +01:00
<mat-step [stepControl]="formGroup">
<form *ngIf="formGroup" [formGroup]="formGroup">
2017-12-21 11:12:44 +01:00
<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">
2017-12-20 14:34:32 +01:00
</auto-complete>
2017-12-21 11:12:44 +01:00
<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">
2017-12-21 10:26:11 +01:00
</auto-complete>
2017-12-19 14:57:07 +01:00
<div>
2017-12-21 11:12:44 +01:00
<button matStepperNext mat-raised-button color="primary">{{'DATASET-WIZARD.ACTIONS.NEXT' | translate}}</button>
2017-12-19 14:57:07 +01:00
</div>
</form>
</mat-step>
2017-12-21 10:26:11 +01:00
<mat-step [stepControl]="formGroup">
<form *ngIf="formGroup" [formGroup]="formGroup">
2017-12-21 11:12:44 +01:00
<ng-template matStepLabel>{{'DATASET-WIZARD.SECOND-STEP.TITLE' | translate}}</ng-template>
2017-12-21 10:26:11 +01:00
<app-dataset-editor-component [formGroup]="formGroup"></app-dataset-editor-component>
2017-12-19 14:57:07 +01:00
<div>
2017-12-21 11:12:44 +01:00
<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>
2017-12-19 14:57:07 +01:00
</div>
</form>
</mat-step>
<mat-step>
2017-12-21 11:12:44 +01:00
<ng-template matStepLabel>{{'DATASET-WIZARD.THIRD-STEP.TITLE' | translate}}</ng-template>
2017-12-19 14:57:07 +01:00
<div>
2017-12-21 11:12:44 +01:00
<button matStepperPrevious mat-raised-button color="primary">{{'DATASET-WIZARD.ACTIONS.BACK' | translate}}</button>
2017-12-19 14:57:07 +01:00
</div>
</mat-step>
</mat-horizontal-stepper>
2017-12-21 10:46:11 +01:00
<!-- <div *ngIf="formGroup"> {{ formGroup.value | json }}</div> -->
2017-12-21 11:12:44 +01:00
2017-12-19 14:57:07 +01:00
</div>