diff options
| author | Paweł Bernaciak <pawelbernaciak@zohomail.eu> | 2023-12-29 09:41:56 +0100 |
|---|---|---|
| committer | Paweł Bernaciak <pawelbernaciak@zohomail.eu> | 2023-12-29 09:41:56 +0100 |
| commit | 79f5eaf40b93d64be74d8b4f1ef80d19fadbfbe1 (patch) | |
| tree | ddf121e78bdd50673379b223abfdb448c4f81291 /CoreWiki/Pages/Delete.cshtml | |
| parent | 1a96616699ab41bf6343bc1acc45a836c3e6caf3 (diff) | |
Diffstat (limited to 'CoreWiki/Pages/Delete.cshtml')
| -rw-r--r-- | CoreWiki/Pages/Delete.cshtml | 41 |
1 files changed, 15 insertions, 26 deletions
diff --git a/CoreWiki/Pages/Delete.cshtml b/CoreWiki/Pages/Delete.cshtml index 0b680b8..0c721bd 100644 --- a/CoreWiki/Pages/Delete.cshtml +++ b/CoreWiki/Pages/Delete.cshtml @@ -5,30 +5,19 @@ ViewData["Title"] = "Delete";
}
-<h1>Delete</h1>
-
-<h3>Are you sure you want to delete this?</h3>
-<div>
- <h4>Article</h4>
- <hr />
- <dl class="row">
- <dt class="col-sm-2">
- @Html.DisplayNameFor(model => model.Article.Published)
- </dt>
- <dd class="col-sm-10">
- @Html.DisplayFor(model => model.Article.Published)
- </dd>
- <dt class="col-sm-2">
- @Html.DisplayNameFor(model => model.Article.Content)
- </dt>
- <dd class="col-sm-10">
- @Html.DisplayFor(model => model.Article.Content)
- </dd>
- </dl>
-
- <form method="post">
- <input type="hidden" asp-for="Article.Slug" />
- <input type="submit" value="Delete" class="btn btn-danger" /> |
- <a href="/">Back to Home Page</a>
- </form>
+<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>
\ No newline at end of file |
