Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds warning to schedule page for credit overload/underload #878

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions src/web/src/pages/NewCourseScheduler.vue
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,9 @@
<b-col class="m-2">
<h5>CRNs: {{ selectedCrns }}</h5>
<h5>Credits: {{ totalCredits }}</h5>
<h5 v-if="needsApproval" style="color: red;">Student needs a credit approval form</h5>
<h5 v-else-if="requiresPayment" style="color: red;">Students with 24+ credits are required to pay $2000 per credit hour over 21</h5>
<h5 v-else-if="moreCreditsNeeded" style="color: red;">Need 12+ credits to be considered a full-time student</h5>
</b-col>

<b-col md="3" justify="end">
Expand Down Expand Up @@ -670,6 +673,18 @@ export default {
}, 0);
return sum;
},
moreCreditsNeeded() {
var sum = this.totalCredits
return sum < 12
},
requiresPayment() {
var sum = this.totalCredits
return sum >=24;
},
needsApproval() {
var sum = this.totalCredits
return sum >= 22 && sum <= 23;
},
numSelectedCourses() {
return Object.values(this.selectedCourses).length;
},
Expand Down