remove school year from pages
Tests / PHPUnit (push) Successful in 1m15s

This commit is contained in:
root
2026-07-17 01:07:31 -04:00
parent 0d0a771dd1
commit 4db8334a3c
12 changed files with 70 additions and 77 deletions
+1 -8
View File
@@ -8,10 +8,7 @@
</div>
<div class="row g-2 align-items-center justify-content-center mb-3">
<div class="col-auto"><label for="schoolYearSelect" class="col-form-label">School year</label></div>
<div class="col-auto">
<select id="schoolYearSelect" class="form-select form-select-sm" style="min-width: 200px;"></select>
</div>
<input type="hidden" id="schoolYearSelect" value="<?= esc($schoolYear ?? '') ?>">
<div class="col-auto"><label for="semesterSelect" class="col-form-label">Semester</label></div>
<div class="col-auto">
<select id="semesterSelect" class="form-select form-select-sm" style="min-width: 160px;"></select>
@@ -136,9 +133,6 @@ document.addEventListener('DOMContentLoaded', function(){
const data = await res.json();
if (!res.ok || data?.ok === false) throw new Error('Failed to load data');
// Years
$year.innerHTML = '';
(data.schoolYears || []).forEach(y => opt($year, y, y));
if (data.selectedYear) $year.value = data.selectedYear;
// Semesters
@@ -193,7 +187,6 @@ document.addEventListener('DOMContentLoaded', function(){
}
}
$year.addEventListener('change', function(){ loadMeta(this.value, $sem.value).catch(console.error); });
$sem.addEventListener('change', function(){ loadMeta($year.value, this.value).catch(console.error); });
$student.addEventListener('change', function(){ updateAckStatus(); });
@@ -5,7 +5,6 @@
<div class="wrapper">
<div class="content">
<h2 class="mb-4">Generate Student Stickers</h2>
<?= $this->include('partials/academic_filter') ?>
<div class="d-flex gap-2 mb-3">
<!-- Auto-count & Print All -->