Files
training-software/frontend/public/attendance.html
Paperclip CTO 4a46c14857
All checks were successful
CI / lint (push) Successful in 10s
CI / test (push) Successful in 23s
CI / build-container (push) Successful in 8s
feat(frontend): add theming, branding sync, and improved frontend error UX
2026-05-19 09:09:04 +02:00

67 lines
2.2 KiB
HTML

<!doctype html>
<html lang="de">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Anwesenheit — Training Portal</title>
<link rel="stylesheet" href="./styles.css">
<link rel="stylesheet" href="./attendance.css">
</head>
<body>
<header class="topbar">
<img id="company-logo" alt="Logo" class="logo" hidden>
<span id="company-name">Training Portal</span>
<nav>
<a href="./attendance.html">Anwesenheit</a>
<a href="./meetings.html">Meetings</a>
</nav>
<button id="theme-toggle" class="btn-ghost theme-toggle" type="button">Dark Mode</button>
<button id="btn-logout" class="btn-ghost">Abmelden</button>
</header>
<main class="page-content">
<!-- Login form (shown when not authenticated) -->
<section id="login-section" class="card" hidden>
<h2>Anmelden</h2>
<form id="login-form" novalidate>
<label for="login-email">E-Mail</label>
<input id="login-email" type="email" autocomplete="username" required>
<label for="login-password">Passwort</label>
<input id="login-password" type="password" autocomplete="current-password" required>
<p id="login-error" class="error-msg" hidden></p>
<button type="submit">Anmelden</button>
</form>
</section>
<!-- Attendance dashboard (shown when authenticated) -->
<section id="dashboard-section" hidden>
<div class="section-header">
<h2>Meine Anwesenheit</h2>
<span id="user-label" class="badge"></span>
</div>
<div id="attendance-loading" class="loading-msg">Lade Daten…</div>
<p id="attendance-error" class="error-msg" hidden></p>
<table id="attendance-table" class="data-table" hidden>
<thead>
<tr>
<th>Datum</th>
<th>Status</th>
<th>Meeting</th>
<th>Quelle</th>
</tr>
</thead>
<tbody id="attendance-body"></tbody>
</table>
<p id="attendance-empty" class="empty-msg" hidden>Keine Anwesenheitseinträge vorhanden.</p>
</section>
</main>
<script src="./config.js"></script>
<script src="./theme.js"></script>
<script src="./attendance.js"></script>
</body>
</html>