fix issues on examdraft view and event print page

This commit is contained in:
root
2026-05-05 01:38:20 -04:00
parent 45d7895182
commit 92016f90d0
4 changed files with 412 additions and 45 deletions
+6 -1
View File
@@ -89,12 +89,14 @@ $maxUploadBytes = $maxUploadBytes ?? (12 * 1024 * 1024);
};
?>
<h2 class="h5 mb-3">Your submissions</h2>
<h2 class="h5 mb-1">Visible submissions</h2>
<p class="text-muted small">Includes your uploads and submitted exam drafts from teachers assigned to the same class-section.</p>
<?php if (!empty($drafts)): ?>
<div class="table-responsive">
<table class="table table-striped align-middle teacher-drafts-table">
<thead>
<tr>
<th>Teacher</th>
<th>Class</th>
<th>Title / type</th>
<th>Ver.</th>
@@ -111,6 +113,7 @@ $maxUploadBytes = $maxUploadBytes ?? (12 * 1024 * 1024);
$badgeHtml = $renderBadge($st, $statusBadges);
?>
<tr data-draft-id="<?= (int) ($d['id'] ?? 0) ?>">
<td><?= esc($d['teacher_display_name'] ?? 'Teacher') ?></td>
<td><?= esc($d['class_section_name'] ?? '') ?></td>
<td class="title-cell"><?= esc($d['draft_title'] ?? $d['exam_type'] ?? '') ?></td>
<td><?= esc((string) ($d['version'] ?? '')) ?></td>
@@ -168,6 +171,7 @@ $maxUploadBytes = $maxUploadBytes ?? (12 * 1024 * 1024);
<table class="table table-sm table-striped align-middle teacher-drafts-table">
<thead>
<tr>
<th>Teacher</th>
<th>Class</th>
<th>Title</th>
<th>Ver.</th>
@@ -183,6 +187,7 @@ $maxUploadBytes = $maxUploadBytes ?? (12 * 1024 * 1024);
<?php foreach ($legacyExams as $d): ?>
<?php $st = strtolower((string) ($d['status'] ?? '')); ?>
<tr>
<td><?= esc($d['teacher_display_name'] ?? 'Teacher') ?></td>
<td><?= esc($d['class_section_name'] ?? '') ?></td>
<td class="title-cell"><?= esc($d['draft_title'] ?? $d['exam_type'] ?? '') ?></td>
<td><?= esc((string) ($d['version'] ?? '')) ?></td>