diff --git a/public/admin.js b/public/admin.js index fee477a..65f9f53 100644 --- a/public/admin.js +++ b/public/admin.js @@ -880,11 +880,31 @@ function toggleAddTaskForm(date) { }); } +function renderPrintTaskBlock(t) { + const title = t.itemTitle || t.offlineTitle; + const course = t.courseName ? `${esc(t.courseName)}` : `Offline`; + const status = t.done ? `✓ done` : ''; + const typeTag = t.type ? `${TYPE_LABEL[t.type] || t.type}` : ''; + let body = ''; + if (t.body) body = `
${esc(p.trim())}
`).join('')}Nothing scheduled this week.
'; + const gradedRows = r.graded .map((g) => `Week of ${r.start}
| Date | Task | Course | Status |
|---|---|---|---|
| Nothing scheduled | |||
| Item | Course | Score |
|---|---|---|
| Nothing graded this week | ||
| Item | Course | Score |
|---|
Nothing graded this week.
'}| List | Score |
|---|---|
| No spelling tests this week | |
| List | Score |
|---|
No spelling tests this week.
'}