Let AJAX handle the model header

This commit is contained in:
johnnyq
2025-02-16 13:20:15 -05:00
parent 5f7b297cf1
commit 3cf33afac4
15 changed files with 175 additions and 51 deletions

View File

@@ -40,12 +40,15 @@ if ($email_status == 0) {
$email_status_display = "<div class='text-success'>Sent</div><small class='text-secondary'>$email_sent_at</small>";
}
// Build the dynamic modal title
$title = "<i class='fas fa-fw fa-envelope-open mr-2'></i><strong>$email_subject</strong>";
// Generate the HTML form content using output buffering.
ob_start();
?>
<div class="modal-header">
<h5 class="modal-title"><i class='fas fa-fw fa-envelope-open mr-2'></i><strong><?php echo $email_subject; ?></strong></h5>
<button type="button" class="close text-white" data-dismiss="modal">
<span>&times;</span>
</button>
</div>
<div class="modal-body bg-white">
<div class="row">
<div class="col-md-1">