2018-10-12 10:22:23 +02:00
|
|
|
<form *ngIf="formGroup" (ngSubmit)="onSubmit()">
|
2018-10-11 13:22:03 +02:00
|
|
|
<div mat-dialog-title>
|
|
|
|
</div>
|
2019-01-18 18:03:45 +01:00
|
|
|
<div mat-dialog-content *ngIf="datasetsFinalized && datasetsDraft">
|
|
|
|
<div *ngIf="datasetsFinalized.length > 0">
|
2018-10-12 10:22:23 +02:00
|
|
|
{{'DMP-FINALISE-DIALOG.ALREADY-FINALISED-DATASETS' | translate}}
|
|
|
|
<mat-list>
|
2019-01-18 18:03:45 +01:00
|
|
|
<mat-list-item *ngFor="let dataset of datasetsFinalized; let len = length">
|
2018-10-12 10:22:23 +02:00
|
|
|
<div>{{ dataset.label }}</div>
|
|
|
|
</mat-list-item>
|
|
|
|
</mat-list>
|
|
|
|
</div>
|
|
|
|
<div *ngIf="datasetsDraft.length > 0">
|
|
|
|
{{'DMP-FINALISE-DIALOG.FINALISE-TITLE' | translate}}
|
|
|
|
<mat-selection-list #datasetsDraftSelectionList [formControl]="this.formGroup.get('datasets')">
|
|
|
|
<mat-list-option *ngFor="let dataset of datasetsDraft; let len = length" [value]='dataset'>
|
|
|
|
{{ dataset.label }}
|
|
|
|
</mat-list-option>
|
|
|
|
</mat-selection-list>
|
|
|
|
</div>
|
|
|
|
<mat-error *ngIf="formGroup.get('datasets').errors?.minLengthArray">{{'DMP-FINALISE-DIALOG.VALIDATION.AT-LEAST-ONE-DATASET-FINALISED'
|
|
|
|
| translate}}</mat-error>
|
2018-10-11 13:22:03 +02:00
|
|
|
</div>
|
|
|
|
<div mat-dialog-actions>
|
|
|
|
<div class="full-width">
|
2018-10-12 10:22:23 +02:00
|
|
|
<button mat-raised-button type="submit">
|
2018-10-11 13:22:03 +02:00
|
|
|
{{'DMP-FINALISE-DIALOG.SUBMIT' | translate}}
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|