2020-07-17 16:46:53 +02:00
|
|
|
<div class="main-info" [formGroup]="formGroup">
|
|
|
|
<div class="col-12 intro">
|
|
|
|
<p>{{'DMP-EDITOR.DATASET-INFO.INTRO' | translate}}</p>
|
|
|
|
<p>{{'DMP-EDITOR.DATASET-INFO.SECOND-INTRO' | translate}}</p>
|
|
|
|
</div>
|
|
|
|
<div class="col-12 card">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-12">
|
|
|
|
<div class="heading">3 {{'DMP-EDITOR.STEPPER.DATASET-INFO' | translate}}*</div>
|
|
|
|
<div class="hint">
|
|
|
|
<div class="pb-1">{{'DMP-EDITOR.MAIN-INFO.HINT' | translate}}</div>
|
|
|
|
<div><span class="material-icons-outlined align-bottom">info</span> {{'DMP-EDITOR.MAIN-INFO.TYPING' | translate}}</div>
|
|
|
|
</div>
|
|
|
|
<div class="profile-form">
|
2020-08-06 13:02:50 +02:00
|
|
|
<mat-form-field *ngIf="!isNewDataset">
|
2020-07-17 16:46:53 +02:00
|
|
|
<app-multiple-auto-complete required='true' [formControl]="formGroup.get('profiles')" placeholder="{{'DMP-EDITOR.FIELDS.DATASET-TEMPLATES' | translate}}" [configuration]="profilesAutoCompleteConfiguration">
|
|
|
|
</app-multiple-auto-complete>
|
|
|
|
<mat-error *ngIf="formGroup.get('profiles').hasError('backendError')">
|
|
|
|
{{formGroup.get('profiles').getError('backendError').message}}</mat-error>
|
|
|
|
<mat-error *ngIf="formGroup.get('profiles').hasError('required')">
|
|
|
|
{{'GENERAL.VALIDATION.REQUIRED' | translate}}</mat-error>
|
2020-08-06 13:02:50 +02:00
|
|
|
<button matSuffix class="input-btn" [disabled]="formGroup.get('profiles').disabled" (click)="allAvailableProfiles($event)">
|
2020-07-17 16:46:53 +02:00
|
|
|
<mat-icon class="icon-btn">view_list</mat-icon>
|
|
|
|
</button>
|
|
|
|
</mat-form-field>
|
2020-08-06 13:02:50 +02:00
|
|
|
<mat-form-field *ngIf="isNewDataset">
|
|
|
|
<mat-select placeholder=" {{'DATASET-WIZARD.FIRST-STEP.PROFILE'| translate}}" [required]="true" formControlName="profile" (click)="loadDatasetProfiles()">
|
|
|
|
<mat-option *ngFor="let profile of availableProfiles" [value]="profile.id">
|
|
|
|
{{profile.label}}
|
|
|
|
</mat-option>
|
|
|
|
</mat-select>
|
|
|
|
<mat-error *ngIf="formGroup.get('profile').hasError('backendError')">{{formGroup.get('profile').getError('backendError').message}}</mat-error>
|
|
|
|
</mat-form-field>
|
2020-07-17 16:46:53 +02:00
|
|
|
</div>
|
|
|
|
<div class="col pb-3 d-flex">
|
|
|
|
<span class="not-found">{{'DMP-EDITOR.DATASET-INFO.FIND' | translate}}</span>
|
|
|
|
<span class="insert" (click)="addDataset(dmp.id)">{{'DMP-EDITOR.ACTIONS.CREATE-DATASET' | translate}}</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|