63 lines
2.3 KiB
Plaintext
63 lines
2.3 KiB
Plaintext
|
@using PagedList.Mvc
|
||
|
@using PagedList
|
||
|
@using Resources
|
||
|
|
||
|
@model IEnumerable<Weee.Models.ActionLog>
|
||
|
|
||
|
@{
|
||
|
ViewBag.Title = "Index";
|
||
|
Layout = "~/Areas/Admin/Views/Shared/_AdminLayout.cshtml";
|
||
|
}
|
||
|
|
||
|
|
||
|
<div class="col-md-12">
|
||
|
<div class="row docs-row">
|
||
|
<div class="col-xs-5">
|
||
|
<h2 class="docs-h2">@Resource.SystemLog</h2>
|
||
|
</div>
|
||
|
<div class="col-xs-7">
|
||
|
@using (Html.BeginForm("Index", "Log", FormMethod.Get, new { id = "search-filter", @class = "form-horizontal" }))
|
||
|
{
|
||
|
<div class="form-group">
|
||
|
<div class="col-sm-8">
|
||
|
<input name="searchString" class="form-control" type="text" value="@ViewBag.SearchString" />
|
||
|
</div>
|
||
|
<div class="col-sm-4">
|
||
|
<input type="submit" value="@Resource.StaticLabelGlobal_Search" class="btn btn-default" />
|
||
|
@Html.ActionLink(Resource.StaticLabelGlobal_Cancel, "index", new { }, new { @class = "btn btn-default" })
|
||
|
</div>
|
||
|
</div>
|
||
|
}
|
||
|
</div>
|
||
|
</div>
|
||
|
<hr />
|
||
|
|
||
|
<div class="docs-row col-md-12">
|
||
|
<table class="table table-bordered text-center">
|
||
|
<tr>
|
||
|
<th>@Html.DisplayNameFor(model => model.Name)</th>
|
||
|
<th>@Html.DisplayNameFor(model => model.Controller)</th>
|
||
|
<th>@Html.DisplayNameFor(model => model.Action)</th>
|
||
|
<th>@Html.DisplayNameFor(model => model.IP)</th>
|
||
|
<th>@Html.DisplayNameFor(model => model.ActionTime)</th>
|
||
|
<th>@Html.DisplayNameFor(model => model.ExecuteResult)</th>
|
||
|
</tr>
|
||
|
@foreach (var item in Model)
|
||
|
{
|
||
|
<tr>
|
||
|
<td>@item.Name</td>
|
||
|
<td>@item.Controller</td>
|
||
|
<td>@item.Action</td>
|
||
|
<td>@item.IP</td>
|
||
|
<td>@item.ActionTime</td>
|
||
|
<td>@item.ExecuteResult</td>
|
||
|
</tr>
|
||
|
}
|
||
|
</table>
|
||
|
</div>
|
||
|
|
||
|
<div class="text-center">
|
||
|
@Html.PagedListPager((IPagedList)ViewBag.OnePage, page => Url.Action("Index", new { page, searchString = ViewBag.SearchString }))
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="col-md-1"></div>
|