96 lines
2.5 KiB
Plaintext
96 lines
2.5 KiB
Plaintext
<!DOCTYPE html>
|
|
<html lang="de">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<title>Dashboard</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
|
|
<link rel="stylesheet" href="/css/bootstrap.min.css" />
|
|
<link rel="stylesheet" href="/bootstrap-icons/bootstrap-icons.min.css" />
|
|
|
|
<style>
|
|
body {
|
|
margin: 0;
|
|
background: #f4f6f9;
|
|
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
|
|
Roboto, Ubuntu;
|
|
}
|
|
|
|
.layout {
|
|
display: flex;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
/* ✅ erzwingt Sidebar links */
|
|
.sidebar-wrap {
|
|
width: 260px;
|
|
flex: 0 0 260px;
|
|
}
|
|
|
|
/* ✅ Main rechts */
|
|
.main {
|
|
flex: 1;
|
|
min-width: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
background: #f4f6f9;
|
|
}
|
|
|
|
.content {
|
|
padding: 24px;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<div class="layout">
|
|
<!-- ✅ Sidebar links fix -->
|
|
<div class="sidebar-wrap">
|
|
<%- include("partials/sidebar", { user, active: "dashboard" }) %>
|
|
</div>
|
|
|
|
<!-- ✅ Main rechts -->
|
|
<div class="main">
|
|
<!-- ✅ Schwarzer Balken wie patients -->
|
|
<nav class="navbar navbar-dark bg-dark position-relative px-3">
|
|
<div
|
|
class="position-absolute top-50 start-50 translate-middle d-flex align-items-center gap-2 text-white"
|
|
>
|
|
<i class="bi bi-house-door fs-4"></i>
|
|
<span class="fw-semibold fs-5">
|
|
Willkommen, <%= (user.username || '').toUpperCase() %>
|
|
</span>
|
|
</div>
|
|
|
|
<div class="ms-auto">
|
|
<a href="/logout" class="btn btn-outline-light btn-sm">
|
|
Logout
|
|
</a>
|
|
</div>
|
|
</nav>
|
|
|
|
<div class="content">
|
|
<%- include("partials/flash") %>
|
|
|
|
<div class="card shadow">
|
|
<div class="card-body">
|
|
<h5 class="mb-0">🪑 Wartezimmer-Monitor</h5>
|
|
|
|
<div class="text-muted mt-2">
|
|
<% if (waitingPatients && waitingPatients.length > 0) { %>
|
|
Patienten im Wartezimmer: <%= waitingPatients.length %>
|
|
<% } else { %>
|
|
Keine Patienten im Wartezimmer.
|
|
<% } %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script src="/js/bootstrap.bundle.min.js"></script>
|
|
<script src="/js/flash_auto_hide.js"></script>
|
|
</body>
|
|
</html>
|