Skip to content
Snippets Groups Projects
Select Git revision
  • f38bc6ddc6d3c9f5f9f5d016194e930a3ce46d73
  • development default protected
  • 26-link-booking-page-to-server-and-database
  • As-a-user-I-want-to-view-information-of-all-locations-available
  • 26-link-booking-page-to-server-and-database-2
  • 26-link-booking-page-to-server-and-database-3
  • 26-link-booking-page-to-server-and-database-4
  • 28-fixing-bugs-and-issues
  • 2-as-a-user-i-want-to-be-authorized-if-i-am-a-member
  • 25-adding-a-basic-locations-template-route
  • 14-as-a-user-i-want-to-view-a-list-of-all-locations-available
  • 23-as-a-user-i-want-to-view-information-of-all-locations-available
  • page-for-all-workingSpaces
  • 24-hotfix-development-directory
  • 13-as-a-moderator-i-want-to-be-able-to-amend-and-remove-existing-locations-spaces-features
  • 7-as-a-user-i-want-to-see-all-of-the-working-spaces-available
  • 22-hotfix-templating-directory
  • 15-as-a-user-i-want-to-find-out-what-tramshed-is-so-that-i-can-access-their-working-spaces
  • 3-as-a-moderator-i-want-to-be-able-to-add-new-locations-spaces-features
  • 7-as-a-user-i-want-to-see-all-of-the-working-spaces-available-2
  • 16-as-a-user-i-want-to-be-able-to-find-information-about-tramshed-on-a-webpage-2
21 results

make_booking.html

Blame
  • 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>