69 lines
1.7 KiB
Plaintext
69 lines
1.7 KiB
Plaintext
@model IEnumerable<Yavsc.Models.Messaging.Notification>
|
|
|
|
@{
|
|
ViewData["Title"] = "Index";
|
|
}
|
|
|
|
<h2>Index</h2>
|
|
|
|
<p>
|
|
<a asp-action="Create">Create New</a>
|
|
</p>
|
|
<table class="table">
|
|
<tr>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.body)
|
|
</th>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.click_action)
|
|
</th>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.color)
|
|
</th>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.icon)
|
|
</th>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.sound)
|
|
</th>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.tag)
|
|
</th>
|
|
<th>
|
|
@Html.DisplayNameFor(model => model.title)
|
|
</th>
|
|
<th></th>
|
|
</tr>
|
|
|
|
@foreach (var item in Model) {
|
|
<tr>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.body)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.click_action)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.color)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.icon)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.sound)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.tag)
|
|
</td>
|
|
<td>
|
|
@Html.DisplayFor(modelItem => item.title)
|
|
</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>
|