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

50 lines
1.2 KiB
Text
Raw Normal View History

2017-10-10 20:50:05 +02:00
@model IEnumerable<Yavsc.Models.Messaging.Announce>
@{
2019-06-23 00:05:23 +01:00
ViewData["Title"] = @SR["Index"];
2017-10-10 20:50:05 +02:00
}
2019-06-23 00:05:23 +01:00
<h2>@SR["Index"]</h2>
2017-10-10 20:50:05 +02:00
<p>
2019-06-23 00:05:23 +01:00
<a asp-action="Create">@SR["Create New"]</a>
2017-10-10 20:50:05 +02:00
</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>