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">
|
2019-02-08 10:04:12 +01:00
|
|
|
<h4>{{'DMP-FINALISE-DIALOG.ALREADY-FINALISED-DATASETS' | translate}}</h4>
|
2018-10-12 10:22:23 +02:00
|
|
|
<mat-list>
|
2019-05-28 15:37:39 +02:00
|
|
|
<!-- <mat-list-item *ngFor="let dataset of datasetsFinalized; let len = length"> -->
|
|
|
|
<mat-list-item *ngFor="let dataset of datasetsFinalized">
|
2018-10-12 10:22:23 +02:00
|
|
|
<div>{{ dataset.label }}</div>
|
|
|
|
</mat-list-item>
|
|
|
|
</mat-list>
|
|
|
|
</div>
|
|
|
|
<div *ngIf="datasetsDraft.length > 0">
|
2019-02-08 10:04:12 +01:00
|
|
|
<h4>{{'DMP-FINALISE-DIALOG.FINALISE-TITLE' | translate}}</h4>
|
2018-10-12 10:22:23 +02:00
|
|
|
<mat-selection-list #datasetsDraftSelectionList [formControl]="this.formGroup.get('datasets')">
|
2019-05-28 15:37:39 +02:00
|
|
|
<!-- <div class="styleBorder" *ngFor="let dataset of datasetsDraft; let len = length"> -->
|
|
|
|
<div class="styleBorder" *ngFor="let dataset of datasetsDraft">
|
2019-02-08 11:31:22 +01:00
|
|
|
<mat-list-option [value]='dataset'>
|
2019-02-08 10:04:12 +01:00
|
|
|
{{ dataset.label }}
|
|
|
|
</mat-list-option>
|
2019-02-08 11:31:22 +01:00
|
|
|
</div>
|
2018-10-12 10:22:23 +02:00
|
|
|
</mat-selection-list>
|
2019-05-28 15:37:39 +02:00
|
|
|
</div>minLengthArray
|
2018-10-12 10:22:23 +02:00
|
|
|
<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">
|
2019-02-08 10:04:12 +01:00
|
|
|
<button mat-raised-button color="primary" type="submit">
|
2018-10-11 13:22:03 +02:00
|
|
|
{{'DMP-FINALISE-DIALOG.SUBMIT' | translate}}
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-05-28 15:37:39 +02:00
|
|
|
</form>
|