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 <?php
$isAdmin = true;
if ($studentMode) { if ($studentMode) {
$bodyClass = 'student-body'; $bodyClass = 'admin-body student-body';
require_once APP_ROOT . '/templates/head.php'; require_once APP_ROOT . '/templates/head.php';
} else { } else {
$isAdmin = true;
$bodyClass = 'admin-body'; $bodyClass = 'admin-body';
require_once APP_ROOT . '/templates/head.php'; require_once APP_ROOT . '/templates/head.php';
include APP_ROOT . '/templates/header.php'; include APP_ROOT . '/templates/header.php';

View File

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