<div *ngIf="courseData != null">
    <div *ngIf="courseData.report != ''">
        <div class="label">zápis z kurzu</div>
        <p>{{courseData.report}}</p>
    </div>
</div>

<div *ngIf="roleAtLeast('zamestnanec') == true && courseData != null">
    <button mat-raised-button color="primary" (click)="openCourseReportDialog()" *ngIf="courseData.report == ''"> 
        <mat-icon class="button-icon" fontSet="material-icons-outlined">content_paste</mat-icon>
        Vyplnit zápis z kurzu
    </button>
    <button mat-stroked-button color="primary" (click)="openCourseReportDialog()" *ngIf="courseData.report != ''"> 
        <mat-icon class="button-icon" fontSet="material-icons-outlined">edit</mat-icon>
        Upravit zápis z kurzu
    </button>
</div>
