2020-07-17 16:46:53 +02:00
|
|
|
<div class="main-info" [formGroup]="formGroup">
|
|
|
|
<div class="col-12 intro">
|
|
|
|
{{'DMP-EDITOR.MAIN-INFO.INTRO' | translate}}
|
|
|
|
</div>
|
|
|
|
<div class="col-12 card">
|
|
|
|
<!-- Title Field -->
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-12">
|
|
|
|
<div class="heading">1.1 {{'DMP-EDITOR.FIELDS.NAME' | translate}}*</div>
|
2020-09-23 18:02:59 +02:00
|
|
|
<!-- <div class="hint">{{'DMP-EDITOR.MAIN-INFO.HINT' | translate}}</div> -->
|
2020-07-17 16:46:53 +02:00
|
|
|
<div class="title-form">
|
2020-09-24 19:28:03 +02:00
|
|
|
<mat-form-field>
|
2020-07-17 16:46:53 +02:00
|
|
|
<input matInput placeholder="{{'DMP-EDITOR.FIELDS.NAME' | translate}}" type="text" name="label" formControlName="label" required>
|
|
|
|
<mat-error *ngIf="formGroup.get('label').hasError('backendError')">
|
|
|
|
{{formGroup.get('label').getError('backendError').message}}</mat-error>
|
|
|
|
<mat-error *ngIf="formGroup.get('label').hasError('required')">
|
|
|
|
{{'GENERAL.VALIDATION.REQUIRED' | translate}}</mat-error>
|
|
|
|
</mat-form-field>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- Description field -->
|
2020-09-24 19:28:03 +02:00
|
|
|
<div class="row">
|
2020-07-17 16:46:53 +02:00
|
|
|
<div class="col-12">
|
|
|
|
<div class="heading">1.2 {{'DMP-EDITOR.FIELDS.DESCRIPTION' | translate}}</div>
|
2020-09-30 10:42:52 +02:00
|
|
|
<div class="hint">{{'DMP-EDITOR.FIELDS.DESCRIPTION-HINT' | translate}}</div>
|
2020-07-17 16:46:53 +02:00
|
|
|
<div class="description-form">
|
2021-11-01 13:45:02 +01:00
|
|
|
<rich-text-editor-component [parentFormGroup]="formGroup" [controlName]="'description'"
|
|
|
|
[placeholder]="'DMP-EDITOR.PLACEHOLDER.DESCRIPTION'">
|
|
|
|
</rich-text-editor-component>
|
2020-07-17 16:46:53 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-09-25 14:55:06 +02:00
|
|
|
<!-- Language field -->
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-12">
|
2021-10-29 14:08:58 +02:00
|
|
|
<div class="heading">1.3 {{'DMP-EDITOR.FIELDS.LANGUAGE' | translate}}*</div>
|
2020-09-30 10:42:52 +02:00
|
|
|
<div class="hint">{{'DMP-EDITOR.FIELDS.LANGUAGE-HINT' | translate}}</div>
|
2020-09-25 14:55:06 +02:00
|
|
|
<div class="language-form">
|
|
|
|
<mat-form-field>
|
2021-10-29 14:08:58 +02:00
|
|
|
<mat-select [formControl]="formGroup.get('extraProperties').get('language')" placeholder="{{'DMP-EDITOR.FIELDS.LANGUAGE' | translate}}" required>
|
2020-09-25 14:55:06 +02:00
|
|
|
<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>
|
|
|
|
<!-- Visibility field-->
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-12">
|
|
|
|
<div class="heading">1.4 {{'DMP-EDITOR.FIELDS.VISIBILITY' | translate}}</div>
|
2020-09-30 10:42:52 +02:00
|
|
|
<div class="hint">{{'DMP-EDITOR.FIELDS.VISIBILITY-HINT' | translate}}</div>
|
2020-09-25 14:55:06 +02:00
|
|
|
<div class="visibility-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>
|
2020-07-20 17:24:29 +02:00
|
|
|
<!-- Researchers field-->
|
2020-09-24 19:28:03 +02:00
|
|
|
<div class="row">
|
2020-07-17 16:46:53 +02:00
|
|
|
<div class="col-12">
|
2020-09-25 14:55:06 +02:00
|
|
|
<div class="heading">1.5 {{'DMP-EDITOR.FIELDS.RESEARCHERS' | translate}}</div>
|
2020-07-17 16:46:53 +02:00
|
|
|
<div class="hint">
|
2020-09-30 10:42:52 +02:00
|
|
|
<div class="pb-1">{{'DMP-EDITOR.FIELDS.RESEARCHERS-HINT' | translate}}</div>
|
2020-07-17 16:46:53 +02:00
|
|
|
<div><span class="material-icons-outlined align-bottom">info</span> {{'DMP-EDITOR.MAIN-INFO.TYPING' | translate}}</div>
|
|
|
|
</div>
|
2020-09-25 14:55:06 +02:00
|
|
|
<div class="researchers-form">
|
2020-08-06 12:50:28 +02:00
|
|
|
<mat-form-field>
|
2020-11-19 09:38:43 +01:00
|
|
|
<mat-label>{{'DMP-EDITOR.PLACEHOLDER.RESEARCHERS' | translate}}</mat-label>
|
|
|
|
<app-multiple-auto-complete [formControl]="formGroup.get('researchers')" [configuration]="researchersAutoCompleteConfiguration">
|
2020-07-17 16:46:53 +02:00
|
|
|
</app-multiple-auto-complete>
|
|
|
|
<mat-error *ngIf="formGroup.get('researchers').hasError('backendError')">
|
|
|
|
{{formGroup.get('researchers').getError('backendError').message}}</mat-error>
|
|
|
|
<mat-error *ngIf="formGroup.get('researchers').hasError('required')">
|
|
|
|
{{'GENERAL.VALIDATION.REQUIRED' | translate}}</mat-error>
|
2020-09-23 18:41:12 +02:00
|
|
|
<!-- <button matSuffix class="input-btn" [disabled]="formGroup.get('researchers').disabled" type="button" (click)="addResearcher($event)">
|
2020-07-17 16:46:53 +02:00
|
|
|
<mat-icon class="icon-btn">add_circle</mat-icon>
|
2020-09-23 18:41:12 +02:00
|
|
|
</button> -->
|
2020-07-17 16:46:53 +02:00
|
|
|
</mat-form-field>
|
2020-09-25 14:55:06 +02:00
|
|
|
<div class="mb-4">
|
|
|
|
<span *ngIf="!formGroup.get('researchers').disabled" class="not-found">{{'DMP-EDITOR.FUNDING-INFO.FIND' | translate}}</span>
|
|
|
|
<span *ngIf="!formGroup.get('researchers').disabled" class="insert-manually" (click)="addResearcher($event)">{{'DMP-EDITOR.ACTIONS.INSERT-MANUALLY' | translate}}</span>
|
|
|
|
</div>
|
2020-07-17 16:46:53 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- Organizations Field -->
|
2020-09-24 19:28:03 +02:00
|
|
|
<div class="row">
|
2020-07-17 16:46:53 +02:00
|
|
|
<div class="col-12">
|
2020-09-25 14:55:06 +02:00
|
|
|
<div class="heading">1.6 {{'DMP-EDITOR.FIELDS.ORGANISATIONS' | translate}}</div>
|
2020-07-17 16:46:53 +02:00
|
|
|
<div class="hint">
|
|
|
|
<div class="pb-1">{{'DMP-EDITOR.FIELDS.ORGANISATIONS-HINT' | translate}}</div>
|
|
|
|
<div><span class="material-icons-outlined align-bottom">info</span> {{'DMP-EDITOR.MAIN-INFO.TYPING' | translate}}</div>
|
|
|
|
</div>
|
|
|
|
<div class="organizations-form">
|
2020-08-06 12:50:28 +02:00
|
|
|
<mat-form-field>
|
2020-11-19 09:38:43 +01:00
|
|
|
<mat-label>{{'DMP-EDITOR.PLACEHOLDER.ORGANIZATION' | translate}}</mat-label>
|
|
|
|
<app-multiple-auto-complete [formControl]="formGroup.get('organisations')" [configuration]="organisationsAutoCompleteConfiguration">
|
2020-07-17 16:46:53 +02:00
|
|
|
</app-multiple-auto-complete>
|
|
|
|
<mat-error *ngIf="formGroup.get('organisations').hasError('backendError')">
|
|
|
|
{{formGroup.get('organisations').getError('backendError').message}}</mat-error>
|
|
|
|
<mat-error *ngIf="formGroup.get('organisations').hasError('required')">{{'GENERAL.VALIDATION.REQUIRED' | translate}}</mat-error>
|
2020-09-23 18:41:12 +02:00
|
|
|
<!-- <button *ngIf="showOrganizationCreator()" matSuffix class="input-btn" [disabled]="cantAddOrganizations()" type="button" (click)="addOrganization($event)">
|
2020-07-17 16:46:53 +02:00
|
|
|
<mat-icon class="icon-btn">add_circle</mat-icon>
|
2020-09-23 18:41:12 +02:00
|
|
|
</button> -->
|
2020-07-17 16:46:53 +02:00
|
|
|
</mat-form-field>
|
2020-09-25 14:55:06 +02:00
|
|
|
<div *ngIf="showOrganizationCreator()" class="mb-4">
|
2020-09-23 18:41:12 +02:00
|
|
|
<span *ngIf="!cantAddOrganizations()" class="not-found">{{'DMP-EDITOR.FUNDING-INFO.FIND' | translate}}</span>
|
|
|
|
<span *ngIf="!cantAddOrganizations()" class="insert-manually" (click)="addOrganization($event)">{{'DMP-EDITOR.ACTIONS.INSERT-MANUALLY' | translate}}</span>
|
|
|
|
</div>
|
2020-07-17 16:46:53 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-09-25 14:55:06 +02:00
|
|
|
<!-- Contact Field -->
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-12">
|
2020-10-15 12:46:59 +02:00
|
|
|
<div class="heading">1.7 {{'DMP-EDITOR.FIELDS.CONTACT' | translate}}*</div>
|
2020-09-25 14:55:06 +02:00
|
|
|
<!-- <div class="hint">{{'DMP-EDITOR.LICENSE-INFO.HINT' | translate}}</div> -->
|
|
|
|
<div class="contact-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-10-01 15:35:20 +02:00
|
|
|
<!-- Publication Field -->
|
|
|
|
<div class="row" *ngIf="formGroup.get('extraProperties').get('visible').value">
|
|
|
|
<div class="col-12">
|
2020-10-15 12:46:59 +02:00
|
|
|
<div class="heading">1.8 {{'DMP-EDITOR.FIELDS.PUBLICATION' | translate}}*</div>
|
2020-10-01 15:35:20 +02:00
|
|
|
<!-- <div class="hint">{{'DMP-EDITOR.LICENSE-INFO.HINT' | translate}}</div> -->
|
|
|
|
<div class="publication-form">
|
|
|
|
<mat-form-field>
|
2020-10-15 12:46:59 +02:00
|
|
|
<input matInput [matDatepicker]="picker" [formControl]="formGroup.get('extraProperties').get('publicDate')" placeholder="{{'DMP-EDITOR.FIELDS.PUBLICATION' | translate}}" [required]="formGroup.get('extraProperties').get('visible').value">
|
|
|
|
<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>
|
2020-10-01 15:35:20 +02:00
|
|
|
</mat-form-field>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-07-17 16:46:53 +02:00
|
|
|
</div>
|
|
|
|
</div>
|