<div id="newUserModal" class="modal" tabindex="-1">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <div class="d-block">
                    <h5 class="modal-title">New User</h5>
                </div>
                <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
            </div>
            <form action="<?php echo URL_APP_ADMIN; ?>/src/new-user.php" method="POST" id="newUserForm">
                <div id="newUserModalBody" class="modal-body">
                    <div class="alert alert-danger mb-3" role="alert">
                        <div class="d-flex align-items-center">
                            <p class="me-3"><i class="bi bi-exclamation-triangle-fill fs-1"></i></p>
                            <p><strong>Do not add a new Client here.</strong> This section is for adding a new admin User who can see all projects. Add a new Client by clicking the New button at the top of the Clients table.</p>
                        </div>
                        <div class="d-flex align-items-center">
                            <p class="me-3"><i class="bi bi-info-circle-fill fs-1"></i></p>
                            <p>A User with the <strong>Super Admin</strong> role can <strong>see and edit</strong> everything.</p>
                        </div>
                        <div class="d-flex align-items-center">
                            <p class="me-3 mb-0"><i class="bi bi-info-circle-fill fs-1"></i></p>
                            <p class="mb-0">A User with the <strong>Admin</strong> role can <strong>see all Projects and Clients but cannot edit.</strong></p>
                        </div>
                    </div>
                    <div class="form-floating mb-2">
                        <input type="name" name="name" class="form-control" id="name" required>
                        <label for="name">Name</label>
                    </div>
                    <div class="form-floating mb-2">
                        <input type="email" name="email" class="form-control" id="email" required>
                        <label for="email">Email</label>
                    </div>
                    <div class="form-floating mb-2">
                        <input type="email" name="ssEmail" class="form-control" id="ssEmail">
                        <label for="ssEmail">Smartsheet Email (leave empty if no Smartsheet account)</label>
                    </div>
                    <div class="form-check text-start my-2 mx-1">
                        <input class="form-check-input" type="checkbox" id="admin" name="admin" checked="checked">
                        <label class="form-check-label" for="admin">
                            Admin
                        </label>
                    </div>
                    <div class="form-check text-start my-2 mx-1">
                        <input class="form-check-input" type="checkbox" id="superAdmin" name="superAdmin">
                        <label class="form-check-label" for="active">
                            Super Admin
                        </label>
                    </div>
                    <div class="form-check text-start my-2 mx-1">
                        <input class="form-check-input" type="checkbox" id="active" name="active" checked="checked">
                        <label class="form-check-label" for="active">
                            Allow portal login
                        </label>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
                    <button type="submit" class="btn btn-danger btbAction" data-action="click" data-target="save new user">Save</button>
                </div>
            </form>
        </div>
    </div>
</div>