SurveyVista/Web/Areas/Admin/Views/newsletters/LastReceivedEventsData.cshtml
2024-05-09 14:08:10 +02:00

48 lines
1.3 KiB
Text

@model IEnumerable<Web.ViewModel.NewsLetterVM.EmailEventViewModel>
@{
ViewData["Title"] = "LastReceivedEventsData";
Layout = "~/Areas/Admin/Views/Shared/_AdminLayout.cshtml";
}
<h1>LastReceivedEventsData</h1>
<p>
<a asp-action="Create">Create New</a>
</p>
<table class="table">
<thead>
<tr>
<th>
@Html.DisplayNameFor(model => model.Email)
</th>
<th>
@Html.DisplayNameFor(model => model.EventType)
</th>
<th>
@Html.DisplayNameFor(model => model.EventTime)
</th>
<th></th>
</tr>
</thead>
<tbody>
@foreach (var item in Model) {
<tr>
<td>
@Html.DisplayFor(modelItem => item.Email)
</td>
<td>
@Html.DisplayFor(modelItem => item.EventType)
</td>
<td>
@Html.DisplayFor(modelItem => item.EventTime)
</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>
}
</tbody>
</table>