51 lines
1.1 KiB
Plaintext
51 lines
1.1 KiB
Plaintext
7 years ago
|
@model IEnumerable<Yavsc.Models.Messaging.Announce>
|
||
|
|
||
|
@{
|
||
|
ViewData["Title"] = "Index";
|
||
|
}
|
||
|
|
||
|
<h2>Index</h2>
|
||
|
|
||
|
<p>
|
||
|
<a asp-action="Create">Create New</a>
|
||
|
</p>
|
||
|
<table class="table">
|
||
|
<tr>
|
||
|
<th>
|
||
|
@Html.DisplayNameFor(model => model.For)
|
||
|
</th>
|
||
|
<th>
|
||
|
@Html.DisplayNameFor(model => model.Message)
|
||
|
</th>
|
||
|
<th>
|
||
|
@Html.DisplayNameFor(model => model.Sender)
|
||
|
</th>
|
||
|
<th>
|
||
|
@Html.DisplayNameFor(model => model.Topic)
|
||
|
</th>
|
||
|
<th></th>
|
||
|
</tr>
|
||
|
|
||
|
@foreach (var item in Model) {
|
||
|
<tr>
|
||
|
<td>
|
||
|
@Html.DisplayFor(modelItem => item.For)
|
||
|
</td>
|
||
|
<td>
|
||
|
@Html.DisplayFor(modelItem => item.Message)
|
||
|
</td>
|
||
|
<td>
|
||
|
@Html.DisplayFor(modelItem => item.Sender)
|
||
|
</td>
|
||
|
<td>
|
||
|
@Html.DisplayFor(modelItem => item.Topic)
|
||
|
</td>
|
||
|
<td>
|
||
|
<a asp-action="Edit" asp-route-id="@item.Id">Edit</a> |
|
||
|
<a asp-action="Details" asp-route-id="@item.Id">Details</a> |
|
||
|
<a asp-action="Delete" asp-route-id="@item.Id">Delete</a>
|
||
|
</td>
|
||
|
</tr>
|
||
|
}
|
||
|
</table>
|