Newer
Older
<div class="term-inner">
<div fxLayout="row" class="term-header" fxLayoutAlign="space-between center">
<h2>{{ term.termCode | getTermDescription }}</h2>
<div fxLayout="row" fxLayoutAlign="end center">
<p class="text-right semi-bold credits">{{ getTotalCredits() }} Cr</p>
<button mat-icon-button>
<ng-container *ngIf="term.note as note; else newNote">
<mat-icon
aria-label="Open dialog with notes in this term"
class="add-note-icon"
(click)="openNotesDialog()"
matTooltip="Edit Note"
matTooltipPosition="above">insert_drive_file</mat-icon>
</ng-container>
<ng-template #newNote>
<mat-icon
aria-label="Open dialog with notes in this term"
class="add-note-icon"
(click)="openNotesDialog()"
matTooltip="Add Note"
matTooltipPosition="above">note_add</mat-icon>
</ng-template>

Scott Berg
committed
<div
cdkDropList
id="term-{{term.termCode}}"
[cdkDropListData]="term.courses"

Scott Berg
committed
[cdkDropListConnectedTo]="dropZones$ | async"

Scott Berg
committed
(cdkDropListDropped)="drop($event)"
>
<ng-container *ngIf="term.note as note">
<div class="note-item" (click)="openNotesDialog()">
<p class="semi-bold">Note</p>
<p class="note-excerpt">{{ note.note }}</p>
</div>
</ng-container>
<div
class="course-wrapper"
cdkDrag

Scott Berg
committed
[cdkDragDisabled]="(isPastTerm$ | async) || course.id === null"
[cdkDragData]="course"
*ngFor="let course of term.courses"
>
<cse-course-item [course]="course" type="course" [disabled]="(isPastTerm$ | async) || course.id === null" [isPastTerm]="(isPastTerm$ | async)" [isCurrentTerm]="(isCurrentTerm$ | async)"></cse-course-item>

Scott Berg
committed
<div class="no-courses" *ngIf="term.courses.length === 0">
<p>No Courses Taken</p>
</div>

Scott Berg
committed
<div class="add-new-wrapper" *ngIf="!(isPastTerm$ | async)">
<button mat-raised-button (click)="toggleCourseSearch()" class="add-course-button">+ Add Course</button>