Files
atakanozbancom/Views/admin/myprojects.cshtml
T
Atakan Doğan ÖzbanandCursor fc45c35dbe Add support page, admin features, and auth hardening.
Rename public affiliate route to /support with localized nav labels, and include affiliate/social/wallpaper admin, 2FA login, and related site updates.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-29 20:25:55 +02:00

39 lines
1.3 KiB
Plaintext

@using atakanozbancom.Models.classes
@model List<myprojects>
@{
ViewBag.Title = "myprojects";
Layout = "~/Views/Shared/_AdminLayout.cshtml";
}
<h2 class="text-white mt-3 mb-3">My Projects</h2>
<table class="table table-bordered mt-3">
<tr class="bg-dark text-white">
<th class="bg-dark text-white">ID</th>
<th class="bg-dark text-white">Title</th>
<th class="bg-dark text-white">Description</th>
<th class="bg-dark text-white">Edit</th>
<th class="bg-dark text-white">Delete</th>
</tr>
@foreach (var x in Model)
{
<tr>
<td class="bg-dark text-white">@x.id</td>
<td class="bg-dark text-white">@x.title</td>
<td class="bg-dark text-white">@x.description</td>
<td class="bg-dark text-white"><a href="/admin/myprojectsget/@x.id" class="btn btn-primary">Edit</a></td>
<td class="bg-dark text-white">
@using (Html.BeginForm("myprojectsdelete", "admin", new { id = x.id }, FormMethod.Post, new { onsubmit = "return confirm('Delete this project?');" }))
{
@Html.AntiForgeryToken()
<button type="submit" class="btn btn-danger">Delete</button>
}
</td>
</tr>
}
</table>
<a href="/admin/newmppost" class="btn btn-primary">Create New Post</a>