<div class="modal-header">
    <p>Exporter les données : </p>
</div>
<form class="form-report" [formGroup]="form">
    <div class="modal-body">
        <div *ngFor="let item of checkList; let i = index">
            <mat-checkbox class="export-checkbox" formControlName="{{item.formControlName}}" [checked]="selected === i" (change)="selected = i">{{item.value}}</mat-checkbox>
            <br *ngIf="i===0">
        </div>
    </div>
    <div class="modal-footer">
        <button type="button" class="cancel btn" (click)="closeDialog()">
            Annuler
        </button>
        <button type="button" class="save btn" color="primary" (click)="exporter(selected)">
            Exporter
        </button>
    </div>
</form>
