Add Bootstrap dismissible alert for contact form success and error messages
This commit is contained in:
parent
4e35d36485
commit
1d96ccd3c1
|
|
@ -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,17 +726,17 @@ 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>
|
||||
|
||||
<div class="row">
|
||||
|
|
|
|||
Loading…
Reference in New Issue