Select Git revision
CHApprovalSystem.html
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
CHApprovalSystem.html 3.90 KiB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Hospital Approval System</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="/css/common.css">
<link rel="stylesheet" href="/css/beds.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
<link rel="stylesheet" href="../css/shared-nav.css">
<style>
.approval-dashboard {
background-color: #ffffff;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
padding: 20px;
margin-top: 20px;
}
.status-badge {
padding: 5px 10px;
border-radius: 15px;
font-size: 0.9em;
font-weight: 500;
}
.status-pending {
background-color: #ffc107;
color: #000;
}
.status-approved {
background-color: #28a745;
color: #fff;
}
.status-rejected {
background-color: #dc3545;
color: #fff;
}
.action-buttons button {
margin: 0 5px;
}
</style>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="../js/shared-nav.js"></script>
</head>
<body>
<div id="container">
<!-- Reuse your existing top navigation -->
<div id="top">
<span class="brand">Digital Insight for Health</span>
<span id="showSpan"></span>
</div>
<div class="main-content">
<div class="approval-dashboard">
<h2>Pending Hospital Approvals</h2>
<div class="table-responsive">
<table class="table">
<thead>
<tr>
<th>Hospital Name</th>
<th>Location</th>
<th>Phone</th>
<th>Total Beds</th>
<th>Available Beds</th>
<th>Status</th>
<th>Actions</th>
</tr>
</thead>
<tbody id="pendingTableBody">
<!-- Dynamically populated -->
</tbody>
</table>
</div>
</div>
</div>
</div>
<!-- Approval Modal -->
<div class="modal fade" id="approvalModal" tabindex="-1">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Confirm Action</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal"></button>
</div>
<div class="modal-body">
<p id="modalMessage"></p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Cancel</button>
<button type="button" class="btn btn-primary" id="confirmAction">Confirm</button>
</div>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.bundle.min.js"></script>
<script src="/js/approvalSystem.js"></script>
<script>
document.addEventListener('DOMContentLoaded', function() {
setupNavigation('currentPage'); // Replace currentPage with: dashboard, beds, or approvals
});
</script>
</body>
</html>