Add Bootstrap dismissible alert for contact form success and error messages

This commit is contained in:
essae 2025-05-15 00:37:22 -04:00
parent 4e35d36485
commit 1d96ccd3c1
1 changed files with 10 additions and 10 deletions

View File

@ -4,7 +4,7 @@
* File: landing.php
* Path: /resources/views/pages/home/
* Purpose: Loads the Arsha one-pager layout content
* Version: 1.0
* Version: 1.1
* Author: Wizdom Networks
* Usage: Rendered via LandingController::index()
* ============================================
@ -726,18 +726,18 @@ unset($_SESSION['contact_success']);
unset($_SESSION['contact_error']);
if ($hasSuccess): ?>
<div class="alert alert-success"> Thank you! Your message has been received. We'll be in touch shortly.</div>
<div class="alert alert-success alert-dismissible fade show" role="alert">
Thank you! Your message has been received. We'll be in touch shortly.
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
<?php elseif (!empty($hasError)): ?>
<div class="alert alert-danger">⚠️ <?= htmlspecialchars($hasError) ?></div>
<div class="alert alert-danger alert-dismissible fade show" role="alert">
⚠️ <?= htmlspecialchars($hasError) ?>
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
<?php endif; ?>
<form action="/contact" method="POST" class="needs-validation" novalidate>
<form action="/contact" method="POST" class="needs-validation" novalidate>
<div class="row">
<div class="col-md-6">