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

37 lines
2.4 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>
2018-01-11 17:25:41 +01:00
<auto-complete class="mat-form-field-full-width" placeholder="{{'DATASET-WIZARD.FIRST-STEP.DMP' | translate}}" [configuration]="dmpAutoCompleteConfiguration"
2017-12-21 11:12:44 +01:00
titleKey="label" [control]="formGroup.get('dmp')" [required]="true">
2017-12-20 14:34:32 +01:00
</auto-complete>
2018-01-11 17:25:41 +01:00
<auto-complete class="mat-form-field-full-width" placeholder="{{'DATASET-WIZARD.FIRST-STEP.PROFILE' | translate}}" [configuration]="datasetProfileAutoCompleteConfiguration"
2017-12-21 11:12:44 +01:00
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>
2017-12-22 14:42:47 +01:00
<button matStepperNext mat-raised-button color="primary" (click)="formSubmit()">{{'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>
2018-01-12 09:14:28 +01:00
<dynamic-form class="mat-form-field-full-width" *ngIf="datasetWizardModel && datasetWizardModel.id" [dataModel]="datasetWizardModel"></dynamic-form>
2017-12-19 14:57:07 +01:00
<div>
2018-01-11 12:15:15 +01:00
<button style="margin-top:10px;" 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>