yavsc/src/Yavsc/Views/HyperLink/Index.cshtml

50 lines
1.2 KiB
Text
Raw Normal View History

2019-01-01 16:28:47 +00:00
@model IEnumerable<Yavsc.Models.Relationship.HyperLink>
@{
2019-06-21 09:20:13 +01:00
ViewData["Title"] = @SR["Index"];
2019-01-01 16:28:47 +00:00
}
2019-06-21 09:20:13 +01:00
<h2>@SR["Index"]</h2>
2019-01-01 16:28:47 +00:00
<p>
2019-06-21 09:20:13 +01:00
<a asp-action="Create">@SR["Create New"]</a>
2019-01-01 16:28:47 +00:00
</p>
<table class="table">
<tr>
2019-06-21 09:20:13 +01:00
<th>
@Html.DisplayNameFor(model => model.HRef)
</th>
<th>
@Html.DisplayNameFor(model => model.Method)
</th>
2019-01-01 16:28:47 +00:00
<th>
@Html.DisplayNameFor(model => model.ContentType)
</th>
<th>
@Html.DisplayNameFor(model => model.Rel)
</th>
<th></th>
</tr>
@foreach (var item in Model) {
<tr>
2019-06-21 09:20:13 +01:00
<td>
@Html.DisplayFor(modelItem => item.HRef)
</td>
<td>
@Html.DisplayFor(modelItem => item.Method)
</td>
2019-01-01 16:28:47 +00:00
<td>
@Html.DisplayFor(modelItem => item.ContentType)
</td>
<td>
@Html.DisplayFor(modelItem => item.Rel)
</td>
<td>
2019-06-21 09:20:13 +01:00
@Html.ActionLink("Edit", SR["Edit"], new { /* id=item.PrimaryKey */ }) |
@Html.ActionLink("Details", SR["Details"], new { /* id=item.PrimaryKey */ }) |
@Html.ActionLink("Delete", SR["Delete"], new { /* id=item.PrimaryKey */ })
2019-01-01 16:28:47 +00:00
</td>
</tr>
}
</table>