Hyper-links
This commit is contained in:
parent
88de546f89
commit
ebde45eb75
7 changed files with 452 additions and 0 deletions
38
Yavsc/Views/HyperLink/Index.cshtml
Normal file
38
Yavsc/Views/HyperLink/Index.cshtml
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
@model IEnumerable<Yavsc.Models.Relationship.HyperLink>
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Index";
|
||||
}
|
||||
|
||||
<h2>Index</h2>
|
||||
|
||||
<p>
|
||||
<a asp-action="Create">Create New</a>
|
||||
</p>
|
||||
<table class="table">
|
||||
<tr>
|
||||
<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.ContentType)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Rel)
|
||||
</td>
|
||||
<td>
|
||||
@Html.ActionLink("Edit", "Edit", new { /* id=item.PrimaryKey */ }) |
|
||||
@Html.ActionLink("Details", "Details", new { /* id=item.PrimaryKey */ }) |
|
||||
@Html.ActionLink("Delete", "Delete", new { /* id=item.PrimaryKey */ })
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
</table>
|
||||
Loading…
Add table
Add a link
Reference in a new issue