Skip to content

Commit a580f0d

Browse files
authored
Merge pull request #1858 from bcgov/feature/enrol
Changes for enrol
2 parents 11f9aea + d0f359b commit a580f0d

File tree

6 files changed

+51
-52
lines changed

6 files changed

+51
-52
lines changed

frontend/src/components/common/ResolvedDuplicates.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
density="compact"
9999
type="info"
100100
variant="tonal"
101-
text="There are no resolved enrollment duplicates."
101+
text="There are no resolved enrolment duplicates."
102102
/>
103103
</v-row>
104104
</template>

frontend/src/components/sdcCollection/sdcDistrictCollection/duplicates/StepFourInDistrictDuplicates.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@
3838
</v-tabs>
3939
<v-window v-model="tab">
4040
<v-window-item
41-
value="Enrollment Duplicates"
41+
value="Enrolment Duplicates"
4242
transition="false"
4343
reverse-transition="false"
4444
>
4545
<DuplicateTab
46-
v-if="tab==='Enrollment Duplicates'"
46+
v-if="tab==='Enrolment Duplicates'"
4747
duplicate-type="enrollment"
4848
duplicate-level="DISTRICT"
4949
:headers-config="IN_DISTRICT_DUPLICATES"
@@ -90,7 +90,7 @@
9090
>
9191
<p class="form-hint mr-3">
9292
<span v-if="nonAllowableDuplicates.length > 0">
93-
{{ nonAllowableDuplicates.length }} enrollment
93+
{{ nonAllowableDuplicates.length }} enrolment
9494
</span>
9595
<span v-if="nonAllowableDuplicates.length > 0 && nonAllowableProgramDuplicates.length > 0">
9696
and
@@ -154,7 +154,7 @@ export default defineComponent({
154154
sdcDistrictCollectionID: this.$route.params.sdcDistrictCollectionID,
155155
tab: null,
156156
tabs: [
157-
'Enrollment Duplicates',
157+
'Enrolment Duplicates',
158158
'Program Duplicates'
159159
],
160160
};

frontend/src/components/sdcCollection/sdcDistrictCollection/duplicates/StepSixProvincialDuplicates.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,17 @@
3333
class="divider"
3434
:value="name"
3535
>
36-
{{ name }} {{ name === 'Enrollment Duplicates' ? '(' + nonAllowableDuplicates.length + ')': '(' + nonAllowableProgramDuplicates.length + ')' }}
36+
{{ name }} {{ name === 'Enrolment Duplicates' ? '(' + nonAllowableDuplicates.length + ')': '(' + nonAllowableProgramDuplicates.length + ')' }}
3737
</v-tab>
3838
</v-tabs>
3939
<v-window v-model="tab">
4040
<v-window-item
41-
value="Enrollment Duplicates"
41+
value="Enrolment Duplicates"
4242
transition="false"
4343
reverse-transition="false"
4444
>
4545
<DuplicateTab
46-
v-if="tab==='Enrollment Duplicates'"
46+
v-if="tab==='Enrolment Duplicates'"
4747
duplicate-type="enrollment"
4848
duplicate-level="PROVINCIAL"
4949
:headers-config="PROVINCIAL_DUPLICATES"
@@ -90,7 +90,7 @@
9090
>
9191
<p class="form-hint mr-3">
9292
<span v-if="nonAllowableDuplicates.length > 0">
93-
{{ nonAllowableDuplicates.length }} enrollment
93+
{{ nonAllowableDuplicates.length }} enrolment
9494
</span>
9595
<span v-if="nonAllowableDuplicates.length > 0 && nonAllowableProgramDuplicates.length > 0">
9696
and
@@ -153,7 +153,7 @@ export default defineComponent({
153153
sdcDistrictCollectionID: this.$route.params.sdcDistrictCollectionID,
154154
tab: null,
155155
tabs: [
156-
'Enrollment Duplicates',
156+
'Enrolment Duplicates',
157157
'Program Duplicates'
158158
],
159159
};

frontend/src/components/sdcCollection/sdcSchoolCollection/ProvincialDuplicatesStep.vue

Lines changed: 31 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@
3838
</v-tabs>
3939
<v-window v-model="tab">
4040
<v-window-item
41-
value="Enrollment Duplicates"
41+
value="Enrolment Duplicates"
4242
transition="false"
4343
reverse-transition="false"
4444
>
4545
<DuplicateTab
46-
v-if="tab==='Enrollment Duplicates'"
46+
v-if="tab==='Enrolment Duplicates'"
4747
duplicate-type="enrollment"
4848
duplicate-level="PROVINCIAL"
4949
:headers-config="PROVINCIAL_DUPLICATES"
@@ -73,35 +73,34 @@
7373
</v-window>
7474
</div>
7575

76-
<v-row justify="end">
77-
<PrimaryButton
78-
id="step-4-next-button-district"
79-
class="mr-3 mb-3"
80-
:disabled="disableNextButton() || apiError || !hasEditPermission"
81-
icon="mdi-check"
82-
text="Verify as Correct"
83-
:click-action="next"
84-
/>
85-
</v-row>
86-
<v-row
87-
v-if="disableNextButton()"
88-
justify="end"
89-
class="my-0"
90-
>
91-
<p class="form-hint mr-3">
92-
<span v-if="nonAllowableDuplicates.length > 0">
93-
{{ nonAllowableDuplicates.length }} enrollment
94-
</span>
95-
<span v-if="nonAllowableDuplicates.length > 0 && nonAllowableProgramDuplicates.length > 0">
96-
and
97-
</span>
98-
<span v-if="nonAllowableProgramDuplicates.length > 0">
99-
{{ nonAllowableProgramDuplicates.length }} program
100-
</span>
101-
duplicate(s) unresolved
102-
</p>
103-
</v-row>
104-
76+
<v-row justify="end">
77+
<PrimaryButton
78+
id="step-4-next-button-district"
79+
class="mr-3 mb-3"
80+
:disabled="disableNextButton() || apiError || !hasEditPermission"
81+
icon="mdi-check"
82+
text="Verify as Correct"
83+
:click-action="next"
84+
/>
85+
</v-row>
86+
<v-row
87+
v-if="disableNextButton()"
88+
justify="end"
89+
class="my-0"
90+
>
91+
<p class="form-hint mr-3">
92+
<span v-if="nonAllowableDuplicates.length > 0">
93+
{{ nonAllowableDuplicates.length }} enrolment
94+
</span>
95+
<span v-if="nonAllowableDuplicates.length > 0 && nonAllowableProgramDuplicates.length > 0">
96+
and
97+
</span>
98+
<span v-if="nonAllowableProgramDuplicates.length > 0">
99+
{{ nonAllowableProgramDuplicates.length }} program
100+
</span>
101+
duplicate(s) unresolved
102+
</p>
103+
</v-row>
105104
</template>
106105
<script>
107106
import {defineComponent} from 'vue';
@@ -154,7 +153,7 @@ export default defineComponent({
154153
duplicateResolutionCodesMap: null,
155154
tab: null,
156155
tabs: [
157-
'Enrollment Duplicates',
156+
'Enrolment Duplicates',
158157
'Program Duplicates'
159158
],
160159
};

frontend/src/components/sdcCollection/sdcSchoolCollection/stepOneUploadData/StepOneUploadData.vue

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
variant="text"
6161
@click="clickReportZeroEnrollment"
6262
>
63-
Report Zero Enrollment
63+
Report Zero Enrolment
6464
</v-btn>
6565
<div class="pl-4">
6666
More information on the
@@ -182,7 +182,7 @@
182182
</a>
183183
</span>
184184
<span v-if="hasEditPermission">
185-
<br>To manually add all student enrollment data for this collection,
185+
<br>To manually add all student enrolment data for this collection,
186186
<a
187187
rel="noopener noreferrer"
188188
style="color: rgb(56, 89, 138); text-decoration: underline"
@@ -203,14 +203,14 @@
203203
color="#003366"
204204
style="width: 18em"
205205
prepend-icon="mdi-numeric-0-circle"
206-
text="Report Zero Enrollment"
206+
text="Report Zero Enrolment"
207207
:disabled="!hasEditPermission"
208208
@click="clickReportZeroEnrollment"
209209
/>
210210
</v-col>
211211
<v-col class="d-flex justify-start">
212212
<div class="mt-2">
213-
This option should only be used for schools with no student<br> enrollment to report for this collection.
213+
This option should only be used for schools with no student<br> enrolment to report for this collection.
214214
</div>
215215
</v-col>
216216
</v-row>
@@ -251,7 +251,7 @@
251251
</ConfirmationDialog>
252252
<ConfirmationDialog ref="confirmZeroEnrollment">
253253
<template #message>
254-
<p>Please confirm if you would like to report zero enrollment for this collection.</p>
254+
<p>Please confirm if you would like to report zero enrolment for this collection.</p>
255255
&nbsp;
256256
<p>Confirming below will <strong>finalize your 1701 submission</strong> and <strong>remove your ability to edit data for this collection.</strong></p>
257257
</template>
@@ -405,7 +405,7 @@ export default {
405405
await this.handleFileImport();
406406
},
407407
async clickReportZeroEnrollment(){
408-
const confirmation = await this.$refs.confirmZeroEnrollment.open('Confirm Zero Enrollment', null, {color: '#fff', width: 580, closeIcon: false, subtitle: false, dark: false, resolveText: 'Confirm', rejectText: 'Cancel'});
408+
const confirmation = await this.$refs.confirmZeroEnrollment.open('Confirm Zero Enrolment', null, {color: '#fff', width: 580, closeIcon: false, subtitle: false, dark: false, resolveText: 'Confirm', rejectText: 'Cancel'});
409409
if (!confirmation) {
410410
return;
411411
}
@@ -458,7 +458,7 @@ export default {
458458
})
459459
.catch(error => {
460460
console.error(error);
461-
this.setFailureAlert(error?.response?.data?.message ? error?.response?.data?.message : 'An error occurred while triggering manual enrollment. Please try again later.');
461+
this.setFailureAlert(error?.response?.data?.message ? error?.response?.data?.message : 'An error occurred while triggering manual enrolment. Please try again later.');
462462
});
463463
},
464464
async startPollingStatus() {
@@ -521,11 +521,11 @@ export default {
521521
},
522522
async reportZeroEnrollment(sdcSchoolCollectionId) {
523523
ApiService.apiAxios.post(`${ApiRoutes.sdc.BASE_URL}/${sdcSchoolCollectionId}/reportZeroEnrollment`).then(() => {
524-
this.setSuccessAlert('Your report of zero enrollment was recorded successfully.');
524+
this.setSuccessAlert('Your report of zero enrolment was recorded successfully.');
525525
this.$emit('refresh-store');
526526
}).catch(e => {
527527
console.error(e);
528-
this.fileUploadErrorMessage = 'An error has occurred when reporting zero enrollment: ' + e.message;
528+
this.fileUploadErrorMessage = 'An error has occurred when reporting zero enrolment: ' + e.message;
529529
});
530530
},
531531
async getFileProgress() {

tests-e2e/cypress/support/selectors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ export default {
188188
reportDropdown: '#reports'
189189
},
190190
provincialDuplicatesComponent : {
191-
enrollmentDuplicatesTab: 'button[value="Enrollment Duplicates"]',
191+
enrollmentDuplicatesTab: 'button[value="Enrolment Duplicates"]',
192192
programDuplicatesTab: 'button[value="Program Duplicates"]',
193193
nonAllowableEnrollmentTab: '#nonAllowableenrollmentButton',
194194
nonAllowableProgramTab: '#nonAllowableprogramButton',

0 commit comments

Comments
 (0)