summaryrefslogtreecommitdiff
path: root/CoreWiki/Pages/Delete.cshtml
blob: 0c721bd385186d2f92b8a725b25c679f2afc7e19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
@page "/Delete/{slug}"
@model CoreWiki.Pages.DeleteModel

@{
    ViewData["Title"] = "Delete";
}

<h2 class="mb-3">Are you sure you want to delete this article?</h2>
<div class="mb-3">
    <div class="flex flex-col">
        <span>@Html.DisplayNameFor(model => model.Article.Published)</span>
        <span>@Html.DisplayFor(model => model.Article.Published)</span>
    </div>
    <div class="flex flex-col">
        <span>@Html.DisplayNameFor(model => model.Article.Content)</span>
        <span>@Html.DisplayFor(model => model.Article.Content)</span>
    </div>
</div>
<form method="post">
    <input type="hidden" asp-for="Article.Id"/>
    <input type="submit" value="Delete" class="text-white bg-red-500 hover:bg-red-700 focus:ring-4 focus:ring-blue-300 font-medium rounded text-sm px-3.5 py-1.5 focus:outline-none"/>
    <a class="text-white bg-blue-500 hover:bg-blue-700 focus:ring-4 focus:ring-blue-300 font-medium rounded text-sm px-3.5 py-2 focus:outline-none" href="/">Back to Home Page</a>
</form>