fix is_active student flag logic and make moving with enrollment status
This commit is contained in:
@@ -381,14 +381,12 @@ $selectedYear = trim((string)($selectedYear ?? ''));
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<!-- is_active -->
|
||||
<div class="col-md-3">
|
||||
<label class="form-label d-block">Active Status</label>
|
||||
<input type="hidden" name="is_active" value="0">
|
||||
<div class="form-check form-switch">
|
||||
<input class="form-check-input" type="checkbox" value="1" id="is_active_<?= (int)$student['id'] ?>" name="is_active" <?= $isActive ? 'checked' : '' ?>>
|
||||
<label class="form-check-label" for="is_active_<?= (int)$student['id'] ?>">Show in classes/attendance</label>
|
||||
</div>
|
||||
<span class="badge <?= $isActive ? 'bg-success' : 'bg-secondary' ?>">
|
||||
<?= $isActive ? 'Visible' : 'Hidden' ?>
|
||||
</span>
|
||||
<div class="form-text">Controlled by current enrollment status.</div>
|
||||
</div>
|
||||
|
||||
<!-- photo_consent -->
|
||||
|
||||
Reference in New Issue
Block a user