67 lines
2.0 KiB
Plaintext
67 lines
2.0 KiB
Plaintext
<div class="layout">
|
|
|
|
<!-- ✅ SIDEBAR -->
|
|
<%- include("partials/sidebar", { user, active: "patients", lang }) %>
|
|
|
|
<!-- ✅ MAIN -->
|
|
<div class="main">
|
|
|
|
<!-- ✅ HEADER (inkl. Uhrzeit) -->
|
|
<%- include("partials/page-header", {
|
|
user,
|
|
title: "Dashboard",
|
|
subtitle: "",
|
|
showUserName: true,
|
|
hideDashboardButton: true
|
|
}) %>
|
|
|
|
<div class="content p-4">
|
|
|
|
<!-- Flash Messages -->
|
|
<%- include("partials/flash") %>
|
|
|
|
<!-- =========================
|
|
WARTEZIMMER MONITOR
|
|
========================= -->
|
|
<div class="waiting-monitor">
|
|
<h5 class="mb-3">🪑 <%=t.global.waitingroomtext%></h5>
|
|
|
|
<div class="waiting-grid">
|
|
<% if (waitingPatients && waitingPatients.length > 0) { %>
|
|
|
|
<% waitingPatients.forEach(p => { %>
|
|
|
|
<% if (user.role === 'arzt') { %>
|
|
<form method="POST" action="/patients/<%= p.id %>/call" style="width:100%; margin:0;">
|
|
<button type="submit" class="waiting-slot occupied clickable waiting-btn">
|
|
<div class="patient-text">
|
|
<div class="name"><%= p.firstname %> <%= p.lastname %></div>
|
|
<div class="birthdate">
|
|
<%= new Date(p.birthdate).toLocaleDateString("de-DE") %>
|
|
</div>
|
|
</div>
|
|
</button>
|
|
</form>
|
|
<% } else { %>
|
|
<div class="waiting-slot occupied">
|
|
<div class="patient-text">
|
|
<div class="name"><%= p.firstname %> <%= p.lastname %></div>
|
|
<div class="birthdate">
|
|
<%= new Date(p.birthdate).toLocaleDateString("de-DE") %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<% } %>
|
|
|
|
<% }) %>
|
|
|
|
<% } else { %>
|
|
<div class="text-muted"><%=t.global.waitingroomtextnopatient%></div>
|
|
<% } %>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|