argos/dmp-frontend/src/app/datasets/editor/dataset-editor.component.html

28 lines
1.5 KiB
HTML
Raw Normal View History

2017-12-18 15:28:08 +01:00
<div class="project-editor">
2018-06-05 10:18:01 +02:00
<form *ngIf="formGroup" (ngSubmit)="formSubmit()" [formGroup]="formGroup">
2017-12-18 15:28:08 +01:00
2018-06-05 10:18:01 +02:00
<mat-form-field class="full-width">
<input matInput placeholder="{{'DATASET-EDITOR.FIELDS.NAME' | translate}}" type="text" name="label" formControlName="label"
required>
<mat-error *ngIf="formGroup.get('label').errors?.backendError">{{baseErrorModel.label}}</mat-error>
<mat-error *ngIf="formGroup.get('label').errors?.required">{{'GENERAL.VALIDATION.REQUIRED' | translate}}</mat-error>
</mat-form-field>
2017-12-18 15:28:08 +01:00
2018-06-05 10:18:01 +02:00
<mat-form-field class="full-width">
<input matInput placeholder="{{'DATASET-EDITOR.FIELDS.URI' | translate}}" type="text" name="uri" formControlName="uri">
<mat-error *ngIf="formGroup.get('uri').errors?.backendError">{{baseErrorModel.uri}}</mat-error>
<mat-error *ngIf="formGroup.get('uri').errors?.required">{{'GENERAL.VALIDATION.REQUIRED' | translate}}</mat-error>
</mat-form-field>
2017-12-18 15:28:08 +01:00
2018-06-05 10:18:01 +02:00
<mat-form-field class="full-width">
<textarea matInput class="description-area" placeholder="{{'DATASET-EDITOR.FIELDS.DESCRIPTION' | translate}}" formControlName="description"></textarea>
<mat-error *ngIf="formGroup.get('description').errors?.backendError">{{errorModel.description}}</mat-error>
<mat-error *ngIf="formGroup.get('description').errors?.required">{{'GENERAL.VALIDATION.REQUIRED' | translate}}</mat-error>
</mat-form-field>
2017-12-18 15:28:08 +01:00
2018-06-05 10:18:01 +02:00
</form>
<!-- <div *ngIf="formGroup"> {{ formGroup.value | json }}</div> -->
</div>