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

50 lines
1.8 KiB
Plaintext

@using Resources
@using PagedList.Mvc
@using PagedList
@model IEnumerable<Weee.Models.PublicReferenceFile>
@{
ViewBag.Title = Resource.StaticLabelPublicReferenceFile;
Layout = "~/Areas/Admin/Views/Shared/_AdminLayout.cshtml";
}
<div class="col-md-12">
<h2>@Resource.StaticLabelPublicReferenceFile</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.DisplayName)</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><a href="@item.DownloadLink">@item.DisplayName</a></td>
<td>@item.CreatedTime</td>
<td>@item.UpdatedTime</td>
<td class="docs-button-td-md">
@Html.ActionLink(Resource.StaticLabelGlobal_Edit, "Edit", new { id = item.ID }, new { @class = "btn btn-xs btn-default" })
@Html.ActionLink(Resource.StaticLabelGlobal_Delete, "Delete", 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>