-
-
-
-
Benutzerübersicht
-
-
-
-
- + Neuen Benutzer anlegen
-
+
- <% if (query?.q) { %>
-
Reset
- <% } %>
-
+
+ <%- include("partials/flash") %>
-
-
+
+
-
-
- | ID |
- Titel |
- Vorname |
- Nachname |
- Username |
- Rolle |
- Status |
- Aktionen |
-
-
+
Benutzerübersicht
-
- <% users.forEach(u => { %>
+
+
-
+
+
- | <%= u.id %> |
+
-
-
-
- <% if (u.id !== currentUser.id) { %>
-
- <% } else { %>
-
- Du selbst
-
- <% } %>
-
-
-
-
- <% }) %>
-
-
-
+
-
+
diff --git a/views/dashboard.ejs b/views/dashboard.ejs
index b85e78e..5d06917 100644
--- a/views/dashboard.ejs
+++ b/views/dashboard.ejs
@@ -102,7 +102,7 @@
.waiting-grid {
display: grid;
grid-template-columns: repeat(7, 1fr);
- grid-template-rows: repeat(3, 80px);
+ grid-auto-rows: 80px;
gap: 12px;
width: 100%;
}
@@ -117,7 +117,9 @@
align-items: center;
justify-content: center;
- overflow: hidden; /* 🔥 DAS fehlt */
+ overflow: hidden;
+ text-decoration: none;
+ color: inherit;
}
.waiting-slot.occupied {
@@ -125,22 +127,11 @@
background: #eefdf5;
}
- .waiting-grid {
- grid-auto-flow: row dense;
- }
-
- .chair-icon {
- width: 40px;
- height: 40px;
- object-fit: contain;
- opacity: 0.25;
- }
-
.patient-text {
display: flex;
flex-direction: column;
align-items: center;
- gap: 4px; /* 🔥 Abstand zwischen Name und Datum */
+ gap: 4px;
}
.waiting-slot.clickable {
@@ -153,43 +144,21 @@
box-shadow: 0 0 0 2px #2563eb;
}
+ .nav-item.locked {
+ opacity: 0.5;
+ cursor: not-allowed;
+ }
+ .nav-item.locked:hover {
+ background: transparent;
+ color: #cbd5e1;
+ }
-
-
+
+ <%- include("partials/sidebar", { user, active: "patients" }) %>
@@ -201,18 +170,16 @@
<%- include("partials/flash") %>
+ WARTEZIMMER MONITOR
+ ========================= -->
🪑 Wartezimmer-Monitor
- <% const maxSlots = 21;
- for (let i = 0; i < maxSlots; i++) {
- const p = waitingPatients && waitingPatients[i];
- %>
+ <% if (waitingPatients && waitingPatients.length > 0) { %>
+
+ <% waitingPatients.forEach(p => { %>
- <% if (p) { %>
<% if (user.role === 'arzt') { %>
@@ -232,12 +199,14 @@
<% } %>
- <% } %>
+ <% }) %>
+
+ <% } else { %>
+
Keine Patienten im Wartezimmer.
<% } %>
-