demo20230512/Areas/admin/Views/PublicMessage/Index.cshtml
2023-05-12 10:20:28 +08:00

49 lines
1.6 KiB
Plaintext

@using Resources
@using PagedList.Mvc
@using PagedList
@model IEnumerable<Weee.Models.PublicMessage>
@{
ViewBag.Title = Resource.StaticLabelPublicMessage;
Layout = "~/Areas/Admin/Views/Shared/_AdminLayout.cshtml";
}
<div class="col-md-12">
<h2>@Resource.StaticLabelPublicMessage</h2>
<hr />
<div class="col-md-12">
<div class="docs-row text-right">
@Html.ActionLink(Resource.StaticLabelGlobal_New, "Edit", new { id = 0 }, new { @class = "btn btn-default" })
</div>
<div>
<table class="table text-center">
<tr>
<th>@Html.DisplayNameFor(model => model.Note)</th>
<th>@Html.DisplayNameFor(model => model.CreatedTime)</th>
<th>@Html.DisplayNameFor(model => model.UpdatedTime)</th>
<th></th>
</tr>
@foreach (var item in Model)
{
<tr>
<td>@Html.DisplayFor(modelItem => item.Note)</td>
<td>@item.CreatedTime</td>
<td>@item.UpdatedTime</td>
<td class="docs-button-td-sm">
@Html.ActionLink(Resource.StaticLabelGlobal_Edit, "Edit", new { id = item.ID }, new { @class = "btn btn-xs btn-default" })
</td>
</tr>
}
</table>
</div>
<div class="text-center">
@Html.PagedListPager((IPagedList)Model, page => Url.Action("Index", new { page }))
</div>
</div>
</div>
<div class="col-md-2"></div>