diff options
| author | Paweł Bernaciak <pawelbernaciak@zohomail.eu> | 2023-02-10 16:19:46 +0100 |
|---|---|---|
| committer | Paweł Bernaciak <pawelbernaciak@zohomail.eu> | 2023-02-10 16:19:46 +0100 |
| commit | 00c3b32e2db200a2f42396ac7f8381704ec97268 (patch) | |
| tree | 089d68dcbda127d4c95ccca9b0c9a18b59dc8bdc /CoreWiki/Pages/OldIndex.cshtml | |
Initial Commit
Diffstat (limited to 'CoreWiki/Pages/OldIndex.cshtml')
| -rw-r--r-- | CoreWiki/Pages/OldIndex.cshtml | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/CoreWiki/Pages/OldIndex.cshtml b/CoreWiki/Pages/OldIndex.cshtml new file mode 100644 index 0000000..c1342e4 --- /dev/null +++ b/CoreWiki/Pages/OldIndex.cshtml @@ -0,0 +1,42 @@ +@page
+@model CoreWiki.Pages.IndexModel
+
+@{
+ ViewData["Title"] = "Index";
+}
+
+<h1>Index</h1>
+
+<p>
+ <a asp-page="Create">Create New</a>
+</p>
+<table class="table">
+ <thead>
+ <tr>
+ <th>
+ @Html.DisplayNameFor(model => model.Article[0].Published)
+ </th>
+ <th>
+ @Html.DisplayNameFor(model => model.Article[0].Content)
+ </th>
+ <th></th>
+ </tr>
+ </thead>
+ <tbody>
+@foreach (var item in Model.Article) {
+ <tr>
+ <td>
+ @Html.DisplayFor(modelItem => item.Published)
+ </td>
+ <td>
+ @Html.DisplayFor(modelItem => item.Content)
+ </td>
+ <td>
+ <a asp-page="./Edit" asp-route-id="@item.Topic">Edit</a> |
+ <a asp-page="./Details" asp-route-id="@item.Topic">Details</a> |
+ <a asp-page="./Delete" asp-route-id="@item.Topic">Delete</a>
+ </td>
+ </tr>
+}
+ </tbody>
+</table>
|
