Newer
Older
<div
fxLayout="row"
class="term-header"
fxLayoutAlign="space-between center"
>
<div fxLayout="row" fxLayoutAlign="space-between center">
<p class="text-right semi-bold credits">{{ credits$ | async }} Cr</p>
<ng-container *ngIf="(note$ | async) as note; else newNote">
<button
mat-icon-button
[disabled]="note.isLoaded === false"
(click)="openNotesDialog(note)"
>
<mat-icon
aria-label="Open dialog with notes in this term"
color="primary"
matTooltip="Edit Note"
</button>
</ng-container>
<ng-template #newNote>
<button mat-icon-button (click)="openNotesDialog()">
<mat-icon
aria-label="Open dialog with notes in this term"
color="primary"
matTooltip="Add Note"
<div
id="term-{{ termCode }}"
class="term-body"
cdkDropList
[cdkDropListData]="(term$ | async).termCode"
[cdkDropListConnectedTo]="dropZoneIds$ | async"
<ng-container *ngIf="note.isLoaded; else noteIsLoading">
<div class="note-item" (click)="openNotesDialog(note)">
<p class="semi-bold">Note</p>
<p class="note-excerpt">{{ note.text }}</p>
</div>
</ng-container>
<ng-template #noteIsLoading>
<div class="note-item note-item-loading">
<p class="semi-bold">Note</p>
<p class="note-excerpt">{{ note.text }}</p>
<mat-progress-spinner
mode="indeterminate"
diameter="24"
></mat-progress-spinner>
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<!-- Render list of cart courses in this term -->
<div
*ngIf="(term$ | async).era == 'active'"
fxLayout="row"
class="term-header"
fxLayoutAlign="space-between center"
>
<h3>My Courses: Cart</h3>
<div fxLayout="row" fxLayoutAlign="space-between center">
<p class="text-right semi-bold credits">
{{ cartCredits$ | async }} Cr
</p>
<button mat-icon-button>
<a href="/my-courses">
<mat-icon
aria-label="Go to cart"
color="primary"
matTooltip="Go to cart"
matTooltipPosition="above"
>
shopping_cart
</mat-icon>
</a>
</button>
</div>
</div>
<div
class="course-wrapper"
*ngFor="let course of (courses$ | async)"
cdkDrag
[cdkDragData]="course"
>
<ng-container class="course-wrapper-inner" *ngIf="course.id !== null">
<cse-course-item
type="course"
[course]="course"
[isPastTerm]="isPastTerm$ | async"
>
</cse-course-item>
</ng-container>
</div>
<div class="no-courses" *ngIf="(courses$ | async).length == 0">
<p>
No courses planned
</p>
</div>
<div
class="course-wrapper"
*ngFor="let course of (courses$ | async)"
cdkDrag
[cdkDragDisabled]="(isPastTerm$ | async) || course.id === null"
[cdkDragData]="course"
>
<ng-container class="course-wrapper-inner" *ngIf="course.id === null">
[isPastTerm]="isPastTerm$ | async"
[isCurrentTerm]="isCurrentTerm$ | async"
[disabled]="(isPastTerm$ | async) || course.id === null"
>
<div
class="no-courses"
*ngIf="
(courses$ | async).length === 0 && (term$ | async).era == 'passt'
"
>
<p>
{{
(isPastTerm$ | async) ? 'No courses Taken' : 'No enrolled courses'
}}
</p>
<div class="add-new-wrapper" *ngIf="(isPastTerm$ | async) === false">
<button
mat-raised-button
class="add-course-button"