This commit is contained in:
Ccjcarkbla
2026-03-09 12:53:15 -04:00
parent 072b892fb7
commit dd287987e0
24 changed files with 550 additions and 97 deletions
+15
View File
@@ -7,6 +7,10 @@
<h1>Manage Pages</h1>
<p>Create and schedule maintenance/error pages while keeping the visual template fixed.</p>
<p><a asp-page="./Create" class="btn btn-primary">Create page from template</a></p>
@if (!string.IsNullOrWhiteSpace(Model.StatusMessage))
{
<div class="alert alert-info" role="alert">@Model.StatusMessage</div>
}
<table class="table table-striped">
<thead>
@@ -33,6 +37,17 @@
<td>
<a asp-page="./Edit" asp-route-id="@item.Id">Edit</a> |
<a href="@Model.GetPreviewUrl(item)" target="_blank" rel="noopener">Preview</a>
@if (!item.IsDefaultFallback)
{
<text> | </text>
<form method="post" asp-page-handler="Delete" asp-route-id="@item.Id" style="display:inline">
<button type="submit"
class="btn btn-link p-0 align-baseline"
onclick="return confirm('Delete page @item.Key?');">
Delete
</button>
</form>
}
</td>
</tr>
}