argos/dmp-frontend/src/app/ui/dmp/editor/dmp-finalize-dialog/dmp-finalize-dialog.compone...

32 lines
1.1 KiB
HTML
Raw Normal View History

<form *ngIf="formGroup" (ngSubmit)="onSubmit()">
<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">
{{'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">
<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>
</div>
<div mat-dialog-actions>
<div class="full-width">
<button mat-raised-button type="submit">
{{'DMP-FINALISE-DIALOG.SUBMIT' | translate}}
</button>
</div>
</div>
</form>