Update (admin): Improve message flashing and announcement
This commit is contained in:
@@ -1,38 +1,33 @@
|
||||
@if ($message = Session::get('success'))
|
||||
<div class="alert alert-success alert-block">
|
||||
<button type="button" class="close" data-dismiss="alert">×</button>
|
||||
<strong>{{ $message }}</strong>
|
||||
<div class="alert alert-success alert-block my-3">
|
||||
<h4 class="alert-title">Success!</h4>
|
||||
<div class="text-muted">{{ $message }}</div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
|
||||
@if ($message = Session::get('error'))
|
||||
<div class="alert alert-danger alert-block">
|
||||
<button type="button" class="close" data-dismiss="alert">×</button>
|
||||
<strong>{{ $message }}</strong>
|
||||
<div class="alert alert-danger alert-block my-3">
|
||||
|
||||
<h4 class="alert-title">Error!</h4>
|
||||
<div class="text-muted">{{ $message }}</div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
|
||||
@if ($message = Session::get('warning'))
|
||||
<div class="alert alert-warning alert-block">
|
||||
<button type="button" class="close" data-dismiss="alert">×</button>
|
||||
<strong>{{ $message }}</strong>
|
||||
<div class="alert alert-warning alert-block my-3">
|
||||
|
||||
<h4 class="alert-title">Warning!</h4>
|
||||
<div class="text-muted">{{ $message }}</div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
|
||||
@if ($message = Session::get('info'))
|
||||
<div class="alert alert-info alert-block">
|
||||
<button type="button" class="close" data-dismiss="alert">×</button>
|
||||
<strong>{{ $message }}</strong>
|
||||
</div>
|
||||
@endif
|
||||
<div class="alert alert-info alert-block my-3">
|
||||
|
||||
|
||||
@if ($errors->any())
|
||||
<div class="alert alert-danger">
|
||||
<button type="button" class="close" data-dismiss="alert">×</button>
|
||||
Please check the form below for errors
|
||||
<h4 class="alert-title">Attention!</h4>
|
||||
<div class="text-muted">{{ $message }}</div>
|
||||
</div>
|
||||
@endif
|
||||
@@ -1,4 +1,5 @@
|
||||
<div class="alert alert-success" role="alert">
|
||||
<div class="card mb-3 border-3 border-primary">
|
||||
<div class="card-body">
|
||||
<h3 class="">Webmaster Announcement</h3>
|
||||
<div class="text-muted">
|
||||
<p class="fw-bold mb-0">Change Log 2/8/2023 12.03am</p>
|
||||
@@ -19,4 +20,5 @@
|
||||
<li>(Fix) Post list has timezone error</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user