admin/add: add ?mode=student toggle — hides admin header, keeps admin form css

This commit is contained in:
Pontoporeia
2026-04-15 13:43:46 +02:00
parent 150b5b1dac
commit c3affd2285
2 changed files with 3 additions and 7 deletions

View File

@@ -49,11 +49,11 @@ function wasSelected($key, $value) {
}
?>
<?php
$isAdmin = true;
if ($studentMode) {
$bodyClass = 'student-body';
$bodyClass = 'admin-body student-body';
require_once APP_ROOT . '/templates/head.php';
} else {
$isAdmin = true;
$bodyClass = 'admin-body';
require_once APP_ROOT . '/templates/head.php';
include APP_ROOT . '/templates/header.php';

View File

@@ -1684,11 +1684,7 @@
gap: var(--space-3xs);
}
/* ── Student mode & toggle ──────────────────────────────────────────────────── */
.student-body header {
display: none;
}
/* ════ Student mode (modifier on admin-body) ════════════════════════════════ */
.student-body main {
max-width: 720px;
}