2020-09-09 16:52:42 +02:00
|
|
|
<div class="main-info" [formGroup]="formGroup">
|
|
|
|
<div class="col-12 intro">
|
|
|
|
{{'DMP-EDITOR.LICENSE-INFO.INTRO' | translate}}
|
|
|
|
</div>
|
|
|
|
<div class="col-12 card">
|
|
|
|
<!-- Title Field -->
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-12">
|
|
|
|
<div class="heading">4.1 {{'DMP-EDITOR.FIELDS.LANGUAGE' | translate}}</div>
|
|
|
|
<div class="hint">{{'DMP-EDITOR.LICENSE-INFO.HINT' | translate}}</div>
|
|
|
|
<div class="title-form">
|
|
|
|
<mat-form-field *ngIf="!isNewDataset">
|
|
|
|
<mat-select [formControl]="formGroup.get('extraProperties').get('language')" placeholder="{{'DMP-EDITOR.FIELDS.LANGUAGE' | translate}}">
|
|
|
|
<mat-option *ngFor="let lang of getLanguageInfos()" [value]="lang.code">
|
|
|
|
{{ lang.name }}
|
|
|
|
</mat-option>
|
|
|
|
</mat-select>
|
|
|
|
<mat-error *ngIf="formGroup.get('extraProperties').get('language').hasError('backendError')">
|
|
|
|
{{formGroup.get('extraProperties').get('language').getError('backendError').message}}</mat-error>
|
|
|
|
<mat-error *ngIf="formGroup.get('extraProperties').get('language').hasError('required')">
|
|
|
|
{{'GENERAL.VALIDATION.REQUIRED' | translate}}</mat-error>
|
|
|
|
</mat-form-field>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- Description field -->
|
|
|
|
<div class="row" *ngIf="!isNewDataset">
|
|
|
|
<div class="col-12">
|
|
|
|
<div class="heading">4.2 {{'DMP-EDITOR.FIELDS.LICENSE' | translate}}</div>
|
|
|
|
<div class="hint">{{'DMP-EDITOR.LICENSE-INFO.HINT' | translate}}</div>
|
|
|
|
<div class="description-form">
|
|
|
|
<mat-form-field>
|
|
|
|
<app-single-auto-complete [formControl]="formGroup.get('extraProperties').get('license')" placeholder="{{'DMP-EDITOR.FIELDS.LICENSE' | translate}}" [configuration]="licenseAutoCompleteConfiguration">
|
|
|
|
</app-single-auto-complete>
|
|
|
|
<mat-error *ngIf="formGroup.get('extraProperties').get('license').hasError('backendError')">
|
|
|
|
{{formGroup.get('extraProperties').get('license').getError('backendError').message}}</mat-error>
|
|
|
|
<mat-error *ngIf="formGroup.get('extraProperties').get('license').hasError('required')">
|
|
|
|
{{'GENERAL.VALIDATION.REQUIRED' | translate}}</mat-error>
|
|
|
|
</mat-form-field>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- Researchers field-->
|
|
|
|
<div class="row" *ngIf="!isNewDataset">
|
|
|
|
<div class="col-12">
|
|
|
|
<div class="heading">4.3 {{'DMP-EDITOR.FIELDS.VISIBILITY' | translate}}</div>
|
|
|
|
<div class="hint">{{'DMP-EDITOR.LICENSE-INFO.HINT' | translate}}</div>
|
|
|
|
<div class="author-form">
|
|
|
|
<mat-form-field>
|
|
|
|
<mat-select [formControl]="formGroup.get('extraProperties').get('visible')" placeholder="{{'DMP-EDITOR.FIELDS.VISIBILITY' | translate}}">
|
|
|
|
<mat-option *ngFor="let vis of visibles" [value]="vis.value">
|
|
|
|
{{vis.name | translate}}
|
|
|
|
</mat-option>
|
|
|
|
</mat-select>
|
|
|
|
<mat-error *ngIf="formGroup.get('extraProperties').get('visible').hasError('backendError')">
|
|
|
|
{{formGroup.get('extraProperties').get('visible').getError('backendError').message}}</mat-error>
|
|
|
|
<mat-error *ngIf="formGroup.get('extraProperties').get('visible').hasError('required')">
|
|
|
|
{{'GENERAL.VALIDATION.REQUIRED' | translate}}</mat-error>
|
|
|
|
</mat-form-field>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- Organizations Field -->
|
|
|
|
<div class="row" *ngIf="!isNewDataset && formGroup.get('extraProperties').get('visible').value">
|
|
|
|
<div class="col-12">
|
|
|
|
<div class="heading">4.4 {{'DMP-EDITOR.FIELDS.PUBLICATION' | translate}}</div>
|
|
|
|
<div class="hint">{{'DMP-EDITOR.LICENSE-INFO.HINT' | translate}}</div>
|
|
|
|
<div class="organizations-form">
|
|
|
|
<mat-form-field>
|
|
|
|
<input matInput [matDatepicker]="picker" [formControl]="formGroup.get('extraProperties').get('publicDate')" placeholder="{{'DMP-EDITOR.FIELDS.PUBLICATION' | translate}}">
|
|
|
|
<mat-datepicker-toggle matSuffix [for]="picker"></mat-datepicker-toggle>
|
|
|
|
<mat-datepicker #picker></mat-datepicker>
|
|
|
|
<mat-error *ngIf="formGroup.get('extraProperties').get('publicDate').hasError('backendError')">
|
|
|
|
{{formGroup.get('extraProperties').get('publicDate').getError('backendError').message}}</mat-error>
|
|
|
|
<mat-error *ngIf="formGroup.get('extraProperties').get('publicDate').hasError('required')">
|
|
|
|
{{'GENERAL.VALIDATION.REQUIRED' | translate}}</mat-error>
|
|
|
|
</mat-form-field>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row" *ngIf="!isNewDataset">
|
|
|
|
<div class="col-12">
|
|
|
|
<div class="heading">4.5 {{'DMP-EDITOR.FIELDS.CONTACT' | translate}}</div>
|
|
|
|
<div class="hint">{{'DMP-EDITOR.LICENSE-INFO.HINT' | translate}}</div>
|
|
|
|
<div class="organizations-form">
|
|
|
|
<mat-form-field>
|
|
|
|
<mat-select [formControl]="formGroup.get('extraProperties').get('contact')" placeholder="{{'DMP-EDITOR.FIELDS.CONTACT' | translate}}">
|
|
|
|
<mat-option *ngFor="let vis of getAssociates()" [value]="vis.id">
|
|
|
|
{{vis.name | translate}}
|
|
|
|
</mat-option>
|
|
|
|
</mat-select>
|
|
|
|
<mat-error *ngIf="formGroup.get('extraProperties').get('contact').hasError('backendError')">
|
|
|
|
{{formGroup.get('extraProperties').get('contact').getError('backendError').message}}</mat-error>
|
|
|
|
<mat-error *ngIf="formGroup.get('extraProperties').get('contact').hasError('required')">
|
|
|
|
{{'GENERAL.VALIDATION.REQUIRED' | translate}}</mat-error>
|
|
|
|
</mat-form-field>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-09-23 17:31:42 +02:00
|
|
|
<!-- <div class="row" *ngIf="!isNewDataset">
|
2020-09-09 16:52:42 +02:00
|
|
|
<div class="col-12">
|
|
|
|
<div class="heading">4.6 {{'DMP-EDITOR.FIELDS.COST' | translate}}</div>
|
|
|
|
<div class="hint">{{'DMP-EDITOR.LICENSE-INFO.HINT' | translate}}</div>
|
|
|
|
<div class="organizations-form">
|
|
|
|
<app-cost-listing [form] = "formGroup.get('extraProperties').get('costs')"></app-cost-listing>
|
|
|
|
<button class="input-btn cost-add" matSuffix class="input-btn" type="button" (click)="addCost($event)">
|
|
|
|
<mat-icon class="icon-btn">add_circle</mat-icon>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-09-23 17:31:42 +02:00
|
|
|
</div> -->
|
2020-09-09 16:52:42 +02:00
|
|
|
</div>
|
|
|
|
</div>
|