Ajustes Toast
This commit is contained in:
@@ -138,20 +138,7 @@
|
||||
</header>
|
||||
|
||||
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
|
||||
<?php if (isset($_SESSION['flash_success'])): ?>
|
||||
<div class="mb-4 bg-green-100 border border-green-400 text-green-700 px-4 py-3 rounded relative"
|
||||
role="alert">
|
||||
<span class="block sm:inline"><?= $_SESSION['flash_success'] ?></span>
|
||||
<?php unset($_SESSION['flash_success']); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (isset($_SESSION['flash_error'])): ?>
|
||||
<div class="mb-4 bg-red-100 border border-red-400 text-red-700 px-4 py-3 rounded relative" role="alert">
|
||||
<span class="block sm:inline"><?= $_SESSION['flash_error'] ?></span>
|
||||
<?php unset($_SESSION['flash_error']); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (isset($content))
|
||||
include $content; ?>
|
||||
@@ -162,6 +149,8 @@
|
||||
<div x-show="sidebarOpen" @click="sidebarOpen = false"
|
||||
class="fixed inset-0 z-30 bg-black bg-opacity-50 md:hidden" x-transition.opacity></div>
|
||||
</div>
|
||||
|
||||
<?php include __DIR__ . '/../partials/toast.php'; ?>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user