Changes
This commit is contained in:
@@ -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>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user