<!-- edit_modal.php -->

<div class="modal fade" id="editModal" tabindex="-1" role="dialog" aria-labelledby="editModalLabel" aria-hidden="true">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title" id="editModalLabel">Edit Exam Routine</h5>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                    <span aria-hidden="true">&times;</span>
                </button>
            </div>
            <div class="modal-body">
                <!-- Replace the content below with your actual form fields and logic -->
                <form id="editForm" method="post" action="process_edit.php">
                    <div class="form-group">
                        <label for="editClass">Class:</label>
                        <input type="text" class="form-control" id="editClass" name="editClass" readonly>
                    </div>
                    <div class="form-group">
                        <label for="editExamType">Exam Type:</label>
                        <input type="text" class="form-control" id="editExamType" name="editExamType" readonly>
                    </div>
                    <div class="form-group">
                        <label for="editExamYear">Exam Year:</label>
                        <input type="text" class="form-control" id="editExamYear" name="editExamYear" readonly>
                    </div>
                    <div class="form-group">
                        <label for="editSubject">Subject:</label>
                        <input type="text" class="form-control" id="editSubject" name="editSubject" readonly>
                    </div>
                    <div class="form-group">
                        <label for="editExamDate">Exam Date:</label>
                        <input type="text" class="form-control" id="editExamDate" name="editExamDate" required>
                    </div>
                    <button type="submit" class="btn btn-primary">Save Changes</button>
                </form>
                <!-- End of form -->
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
            </div>
        </div>
    </div>
</div>
