Files
yavsc/src/Yavsc/Views/HyperLink/Index.cshtml
Paul Schneider 64febe48b0 97 remaining
2023-03-20 19:38:50 +00:00

51 lines
1.2 KiB
Plaintext

@model IEnumerable<Yavsc.Models.Relationship.HyperLink>
@{
ViewData["Title"] = "Index";
}
<h2>HyperLink - Index"]</h2>
<p>
<a asp-action="Create">Create New</a>
</p>
<table class="table">
<tr>
<th>
@Html.DisplayNameFor(model => model.HRef)
</th>
<th>
@Html.DisplayNameFor(model => model.Method)
</th>
<th>
@Html.DisplayNameFor(model => model.ContentType)
</th>
<th>
@Html.DisplayNameFor(model => model.Rel)
</th>
<th></th>
</tr>
@foreach (var item in Model) {
<tr>
<td>
@Html.DisplayFor(modelItem => item.HRef)
</td>
<td>
@Html.DisplayFor(modelItem => item.Method)
</td>
<td>
@Html.DisplayFor(modelItem => item.ContentType)
</td>
<td>
@Html.DisplayFor(modelItem => item.Rel)
</td>
<td>
@Html.ActionLink("Edit", "Edit", new { hRef=item.HRef, method = item.Method }) |
@Html.ActionLink("Details", "Details", new { hRef=item.HRef, method = item.Method }) |
@Html.ActionLink("Delete", "Delete", new { hRef=item.HRef, method = item.Method })
</td>
</tr>
}
</table>