-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #582 from bcgov/release/v1.22
Release/v1.22
- Loading branch information
Showing
7 changed files
with
325 additions
and
3 deletions.
There are no files selected for viewing
96 changes: 96 additions & 0 deletions
96
frontend/src/components/Courses/EquivalentOrChallengeCodes.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
<template> | ||
<div> | ||
<p> | ||
Indicates if credit for the course was granted through the Equivalency (E) | ||
or Challenge (C) process. | ||
</p> | ||
<DisplayTable | ||
title="Exam Special Case Codes" | ||
v-bind:items="sortedEquivalentOrChallengeCodes" | ||
v-bind:fields="equivalentOrChallengeCodesFields" | ||
id="equivalentOrChallengeCode" | ||
showFilter="true" | ||
> | ||
<template #cell(effectiveDate)="row"> | ||
{{ $filters.formatSimpleDate(row.item.effectiveDate) }} | ||
</template> | ||
<template #cell(expiryDate)="row"> | ||
{{ $filters.formatSimpleDate(row.item.expiryDate) }} | ||
</template> | ||
</DisplayTable> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import DisplayTable from "@/components/DisplayTable.vue"; | ||
import CourseService from "@/services/CourseService"; | ||
// import shared functions & validations | ||
import { applyDisplayOrder } from "@/utils/common.js"; | ||
export default { | ||
name: "EquivalentOrChallengeCodes", | ||
components: { | ||
DisplayTable: DisplayTable, | ||
}, | ||
created() { | ||
// get codes | ||
CourseService.getEquivalentOrChallengeCodes() | ||
.then((response) => { | ||
this.equivalentOrChallengeCodes = response.data; | ||
}) | ||
// eslint-disable-next-line | ||
.catch((error) => { | ||
this.$bvToast.toast("ERROR " + error.response.statusText, { | ||
title: "ERROR" + error.response.status, | ||
variant: "danger", | ||
noAutoHide: true, | ||
}); | ||
}); | ||
}, | ||
data: function () { | ||
return { | ||
equivalentOrChallengeCodes: [], | ||
equivalentOrChallengeCodesFields: [ | ||
{ | ||
key: "equivalentOrChallengeCode", | ||
label: "Code", | ||
sortable: true, | ||
}, | ||
{ | ||
key: "label", | ||
label: "Label", | ||
sortable: true, | ||
}, | ||
{ | ||
key: "description", | ||
label: "Description", | ||
sortable: true, | ||
}, | ||
{ | ||
key: "effectiveDate", | ||
label: "Effective Date", | ||
sortable: true, | ||
}, | ||
{ | ||
key: "expiryDate", | ||
label: "Expiry Date", | ||
sortable: true, | ||
}, | ||
], | ||
}; | ||
}, | ||
computed: { | ||
sortedEquivalentOrChallengeCodes() { | ||
return applyDisplayOrder(this.equivalentOrChallengeCodes); | ||
}, | ||
}, | ||
}; | ||
</script> | ||
|
||
<style> | ||
.table th, | ||
.table td { | ||
border-top: none !important; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
<template> | ||
<div> | ||
<p> | ||
Identifies the special cases associated with writing the exam or allowing | ||
an exemption from exam writing. | ||
</p> | ||
<DisplayTable | ||
title="Exam Special Case Codes" | ||
v-bind:items="sortedExamSpecialCaseCodes" | ||
v-bind:fields="examSpecialCaseCodesFields" | ||
id="examSpecialCaseCode" | ||
showFilter="true" | ||
> | ||
<template #cell(effectiveDate)="row"> | ||
{{ $filters.formatSimpleDate(row.item.effectiveDate) }} | ||
</template> | ||
<template #cell(expiryDate)="row"> | ||
{{ $filters.formatSimpleDate(row.item.expiryDate) }} | ||
</template> | ||
</DisplayTable> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import DisplayTable from "@/components/DisplayTable.vue"; | ||
import CourseService from "@/services/CourseService"; | ||
// import shared functions & validations | ||
import { applyDisplayOrder } from "@/utils/common.js"; | ||
export default { | ||
name: "ExamSpecialCaseCodes", | ||
components: { | ||
DisplayTable: DisplayTable, | ||
}, | ||
created() { | ||
// get codes | ||
CourseService.getExamSpecialCaseCodes() | ||
.then((response) => { | ||
this.examSpecialCaseCodes = response.data; | ||
}) | ||
// eslint-disable-next-line | ||
.catch((error) => { | ||
this.$bvToast.toast("ERROR " + error.response.statusText, { | ||
title: "ERROR" + error.response.status, | ||
variant: "danger", | ||
noAutoHide: true, | ||
}); | ||
}); | ||
}, | ||
data: function () { | ||
return { | ||
examSpecialCaseCodes: [], | ||
examSpecialCaseCodesFields: [ | ||
{ | ||
key: "examSpecialCaseCode", | ||
label: "Code", | ||
sortable: true, | ||
}, | ||
{ | ||
key: "label", | ||
label: "Label", | ||
sortable: true, | ||
}, | ||
{ | ||
key: "description", | ||
label: "Description", | ||
sortable: true, | ||
}, | ||
{ | ||
key: "effectiveDate", | ||
label: "Effective Date", | ||
sortable: true, | ||
class: "w-25", | ||
}, | ||
{ | ||
key: "expiryDate", | ||
label: "Expiry Date", | ||
sortable: true, | ||
class: "w-25", | ||
}, | ||
], | ||
}; | ||
}, | ||
computed: { | ||
sortedExamSpecialCaseCodes() { | ||
return applyDisplayOrder(this.examSpecialCaseCodes); | ||
}, | ||
}, | ||
}; | ||
</script> | ||
|
||
<style> | ||
.table th, | ||
.table td { | ||
border-top: none !important; | ||
} | ||
</style> |
95 changes: 95 additions & 0 deletions
95
frontend/src/components/Courses/FineArtsAppliedSkillsCodes.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
<template> | ||
<div> | ||
<p> | ||
Fine Arts Applied Skills codes indicates that a course is being used for | ||
the Fine Arts and/or Applied Skills graduation requirement. | ||
</p> | ||
<DisplayTable | ||
title="Fine Arts Applied Skills Codes" | ||
v-bind:items="sortedFaAsCodes" | ||
v-bind:fields="fineArtsAppliedSkillsTypesFields" | ||
id="fineArtsAppliedSkillsCode" | ||
showFilter="true" | ||
> | ||
<template #cell(effectiveDate)="row"> | ||
{{ $filters.formatSimpleDate(row.item.effectiveDate) }} | ||
</template> | ||
<template #cell(expiryDate)="row"> | ||
{{ $filters.formatSimpleDate(row.item.expiryDate) }} | ||
</template> | ||
</DisplayTable> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import DisplayTable from "@/components/DisplayTable.vue"; | ||
import CourseService from "@/services/CourseService"; | ||
// import shared functions & validations | ||
import { applyDisplayOrder } from "@/utils/common.js"; | ||
export default { | ||
name: "FineArtsAppliedSkillsCodes", | ||
components: { | ||
DisplayTable: DisplayTable, | ||
}, | ||
created() { | ||
CourseService.getFineArtsAppliedSkillsTypes() | ||
.then((response) => { | ||
this.fineArtsAppliedSkillsTypes = response.data; | ||
}) | ||
// eslint-disable-next-line | ||
.catch((error) => { | ||
this.$bvToast.toast("ERROR " + error.response.statusText, { | ||
title: "ERROR" + error.response.status, | ||
variant: "danger", | ||
noAutoHide: true, | ||
}); | ||
}); | ||
}, | ||
data: function () { | ||
return { | ||
fineArtsAppliedSkillsTypes: [], | ||
fineArtsAppliedSkillsTypesFields: [ | ||
{ | ||
key: "fineArtsAppliedSkillsCode", | ||
label: "Code", | ||
sortable: true, | ||
}, | ||
{ | ||
key: "label", | ||
label: "Label", | ||
sortable: true, | ||
}, | ||
{ | ||
key: "description", | ||
label: "Description", | ||
sortable: true, | ||
}, | ||
{ | ||
key: "effectiveDate", | ||
label: "Effective Date", | ||
sortable: true, | ||
}, | ||
{ | ||
key: "expiryDate", | ||
label: "Expiry Date", | ||
sortable: true, | ||
}, | ||
], | ||
}; | ||
}, | ||
computed: { | ||
sortedFaAsCodes() { | ||
return applyDisplayOrder(this.fineArtsAppliedSkillsTypes); | ||
}, | ||
}, | ||
}; | ||
</script> | ||
|
||
<style> | ||
.table th, | ||
.table td { | ||
border-top: none !important; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters