e2f9e9ae4f
- Standardize modal dismiss/cancel buttons to btn-outline-secondary across 70+ views - Remove btn-sm from page-level Create and Back buttons (Index + Detail pages) - Fix Edit buttons on Details pages: btn-secondary -> btn-warning - Fix form Cancel/Back links: btn-secondary -> btn-outline-secondary - Add 10 CSS patches to site.css for mobile/tablet responsiveness: top-navbar overflow prevention, page-header flex-wrap at 575px, table action button min-height override, notification dropdown width cap, tablet content padding Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
73 lines
3.0 KiB
Plaintext
73 lines
3.0 KiB
Plaintext
@{
|
|
ViewData["Title"] = "Error";
|
|
}
|
|
|
|
<div class="container mt-5">
|
|
<div class="row justify-content-center">
|
|
<div class="col-md-8">
|
|
<div class="card border-danger">
|
|
<div class="card-header bg-danger text-white">
|
|
<h4 class="mb-0">
|
|
<i class="bi bi-exclamation-triangle-fill"></i> An Error Occurred
|
|
</h4>
|
|
</div>
|
|
<div class="card-body">
|
|
<h5 class="card-title">We're sorry, something went wrong.</h5>
|
|
<p class="card-text">
|
|
An unexpected error has occurred while processing your request.
|
|
The error has been logged and our team will look into it.
|
|
</p>
|
|
|
|
@if (Context.TraceIdentifier != null)
|
|
{
|
|
<div class="alert alert-secondary alert-permanent mt-3">
|
|
<strong>Request ID:</strong> <code>@Context.TraceIdentifier</code>
|
|
<br />
|
|
<small class="text-muted">Please provide this ID when contacting support.</small>
|
|
</div>
|
|
}
|
|
|
|
<div class="mt-4">
|
|
<h6>What you can do:</h6>
|
|
<ul>
|
|
<li>Try refreshing the page</li>
|
|
<li>Go back to the <a asp-controller="Dashboard" asp-action="Index">Dashboard</a></li>
|
|
<li>If the problem persists, contact your system administrator</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="mt-4">
|
|
<a asp-controller="Dashboard" asp-action="Index" class="btn btn-primary">
|
|
<i class="bi bi-house-door"></i> Go to Dashboard
|
|
</a>
|
|
<button onclick="history.back()" class="btn btn-outline-secondary">
|
|
<i class="bi bi-arrow-left"></i> Go Back
|
|
</button>
|
|
</div>
|
|
</div>
|
|
<div class="card-footer text-muted">
|
|
<small>
|
|
<i class="bi bi-info-circle"></i>
|
|
Errors are logged and monitored. The technical team has been notified.
|
|
</small>
|
|
</div>
|
|
</div>
|
|
|
|
@if (Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT") == "Development")
|
|
{
|
|
var logFileName = $"logs/errors-{DateTime.Now:yyyyMMdd}.txt";
|
|
<div class="alert alert-warning alert-permanent mt-3">
|
|
<strong><i class="bi bi-code-slash"></i> Development Mode:</strong>
|
|
Check the error logs at <code>@logFileName</code> for details.
|
|
</div>
|
|
}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<style>
|
|
.card-header i {
|
|
font-size: 1.2em;
|
|
}
|
|
</style>
|