Skip to content

Commit

Permalink
chore: standardize enrollment spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmed-arb committed Sep 22, 2023
1 parent 813c20e commit 98226de
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,14 +167,14 @@
placeholder: "Browse Courses",
});

$('#select-enrolment-year').change(function (e) {
$('#select-enrollment-year').change(function (e) {
e.preventDefault();
const today = new Date();
const selected_year = Number($(this).val())
const current_year = today.getFullYear()
var quarters = 4;

var quarter_select = $("#select-enrolment-quarter")
var quarter_select = $("#select-enrollment-quarter")
quarter_select.empty()

if(!selected_year){
Expand Down Expand Up @@ -315,10 +315,10 @@
AjaxCall(url_for_average_calculate_grades);
})
$("[name='courses-enrollments-csv']").click(function() {
let url_for_courses_enrolment_report = $(this).attr('data-endpoint');
let year = $('#select-enrolment-year').val()
let quarter = $('#select-enrolment-quarter').val()
AjaxCall(url_for_courses_enrolment_report, {year: Number(year), quarter: Number(quarter)});
let url_for_courses_enrollment_report = $(this).attr('data-endpoint');
let year = $('#select-enrollment-year').val()
let quarter = $('#select-enrollment-quarter').val()
AjaxCall(url_for_courses_enrollment_report, {year: Number(year), quarter: Number(quarter)});
})
$("[name='all-courses-enrollments-csv']").click(function() {
let data_url = $(this).attr('data-endpoint');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,13 +173,13 @@
<span class="info-text">${_("Generate a report for last quarter enrollments of all courses.")}</span>
</td>
<td class="d-flex align-items-center p-3">
<select name="enrolment-year" id="select-enrolment-year" class="quarterly-selector">
<select name="enrollment-year" id="select-enrollment-year" class="quarterly-selector">
<option value="">${_("Select Year")}</option>
%for year in year_options:
<option value=${year}>${year}</option>
%endfor
</select>
<select name="enrolment-quarter" id="select-enrolment-quarter" class="ml-1 quarterly-selector">
<select name="enrollment-quarter" id="select-enrollment-quarter" class="ml-1 quarterly-selector">
<option value="">${_("Select Quarter")}</option>
</select>
</td>
Expand All @@ -196,7 +196,7 @@
<tr class="all-courses-report">
<td>
<span class="text">${_("All Courses Enrollement Report")}</span>
<span class="info-text">${_("Generate an all time report of enrolment/completion for all courses.")}</span>
<span class="info-text">${_("Generate an all time report of enrollment/completion for all courses.")}</span>
</td>
<td></td>
<td class="action">
Expand Down

0 comments on commit 98226de

Please sign in to comment.