fix is_active student flag and apply it in all pages
Deploy to Shared Hosting / Shared hosting deploy (push) Failing after 48s
Tests / PHPUnit (push) Successful in 1m17s

This commit is contained in:
root
2026-08-20 12:59:59 -04:00
parent 0a31aa1393
commit bfa343b69f
57 changed files with 820 additions and 240 deletions
+6 -3
View File
@@ -357,9 +357,10 @@
<th>Semester Score</th>
</tr>
</thead>
<tbody>
<?php foreach ($students as $student): ?>
<tr>
<tbody>
<?php foreach ($students as $student): ?>
<?php $rowLocked = student_is_non_active_for_editing($student, $schoolYear ?? null); ?>
<tr class="<?= $rowLocked ? 'table-secondary text-muted' : '' ?>">
<td><?= esc($student['school_id'] ?? 'N/A') ?></td>
<td>
<?php $sid = (int)($student['id'] ?? 0); ?>
@@ -367,8 +368,10 @@
<a href="#" class="text-decoration-none" data-family-student-id="<?= $sid ?>">
<?= esc($student['firstname'] ?? 'N/A') ?>
</a>
<?= student_enrollment_status_button($student, $schoolYear ?? null) ?>
<?php else: ?>
<?= esc($student['firstname'] ?? 'N/A') ?>
<?= student_enrollment_status_button($student, $schoolYear ?? null) ?>
<?php endif; ?>
</td>
<td>