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 -15
View File
@@ -18,14 +18,7 @@
<!-- Top toolbar: put all filters on one line -->
<form id="financialFilterForm" method="get" class="d-flex align-items-end gap-3 flex-nowrap justify-content-center mb-3 w-100 overflow-auto" style="white-space: nowrap;">
<div class="d-flex align-items-center gap-2 flex-nowrap">
<label class="form-label mb-0 me-2">School year</label>
<select name="school_year" class="form-select form-select-sm rounded-pill px-3" style="min-width: 180px;">
<?php foreach (($schoolYears ?? []) as $sy): ?>
<option value="<?= esc($sy) ?>" <?= (string)($selectedYear ?? '') === (string)$sy ? 'selected' : '' ?>><?= esc($sy) ?></option>
<?php endforeach; ?>
</select>
</div>
<input type="hidden" name="school_year" value="<?= esc($selectedYear ?? '') ?>">
<div class="d-flex align-items-end gap-2 flex-nowrap">
<div class="d-flex flex-column">
<label class="form-label">Date From:</label>
@@ -580,13 +573,6 @@
});
}
// Auto hydrate on year change
const yearSel = document.querySelector('#financialFilterForm select[name="school_year"]');
if (yearSel) yearSel.addEventListener('change', function() {
hydrate();
updateActionLinks();
});
// Retry handler on error banner
const retry = document.getElementById('reportRetry');
if (retry) retry.addEventListener('click', function(ev) {