Events-MVC (example with htmx)
This commit is contained in:
15
Events-MVC/Events.MVC/Views/Home/Error.cshtml
Normal file
15
Events-MVC/Events.MVC/Views/Home/Error.cshtml
Normal file
@@ -0,0 +1,15 @@
|
||||
@model Events.MVC.Models.ErrorViewModel
|
||||
|
||||
@{
|
||||
ViewData[Constants.ViewDataKeys.Title] = Constants.ToastTitles.Error;
|
||||
}
|
||||
|
||||
<div class="card border-0 shadow-sm">
|
||||
<div class="card-body">
|
||||
<h1 class="h4">An error occurred.</h1>
|
||||
@if (Model.ShowRequestId)
|
||||
{
|
||||
<p class="text-body-secondary mb-0">Request ID: <code>@Model.RequestId</code></p>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
10
Events-MVC/Events.MVC/Views/Home/Index.cshtml
Normal file
10
Events-MVC/Events.MVC/Views/Home/Index.cshtml
Normal file
@@ -0,0 +1,10 @@
|
||||
@{
|
||||
ViewData[Constants.ViewDataKeys.Title] = "Home";
|
||||
}
|
||||
|
||||
<section class="card border-0 shadow-sm">
|
||||
<div class="card-body p-4">
|
||||
<h1 class="h3 mb-3">Events</h1>
|
||||
<p class="mb-0">This sample demonstrates an ASP.NET Core MVC application for managing sports events, countries, people, and registrations using htmx.</p>
|
||||
</div>
|
||||
</section>
|
||||
Reference in New Issue
Block a user