SoftwayWeb/Views/Shared/Alert.cshtml
2025-01-14 16:38:45 +01:00

41 lines
860 B
Plaintext

@model ErrorViewModel
@{
ViewData["Title"] = "Alert";
}
<h1 class="text-danger">Alert</h1>
<h2 class="text-danger">@Model.ErrMsg</h2>
@if (!string.IsNullOrEmpty(Model.Field1))
{
<p>
<strong>@Model.Field1_lbl:</strong> <code>@Model.Field1</code>
</p>
}
@if (!string.IsNullOrEmpty(Model.Field2))
{
<p>
<strong>@Model.Field2_lbl:</strong> <code>@Model.Field2</code>
</p>
}
@if (!string.IsNullOrEmpty(Model.Field3))
{
<p>
<strong>@Model.Field3_lbl:</strong> <code>@Model.Field3</code>
</p>
}
@if (!string.IsNullOrEmpty(Model.BackPage))
{
<p>
<strong>Back url:</strong> <code>@Model.BackPage</code>
</p>
<br />
<a href="@Model.BackPage" class="btn btn-primary">Indietro</a>
}
else
{
<br />
<button onclick="window.history.back();" class="btn btn-primary">Indietro</button>
}