2020-08-20 11:38:11 -04:00
|
|
|
@using SharedLibraryCore.Dtos.Meta.Responses
|
|
|
|
@model SharedLibraryCore.Helpers.ResourceQueryHelperResult<MessageResponse>
|
2020-05-22 21:29:41 -04:00
|
|
|
|
2022-04-19 19:43:58 -04:00
|
|
|
<div class="content mt-0">
|
2020-05-22 21:29:41 -04:00
|
|
|
@if (ViewBag.Error != null)
|
|
|
|
{
|
2022-04-19 19:43:58 -04:00
|
|
|
<h2 class="content-title text-red mt-20">@Utilities.FormatExt(ViewBag.Localization["WEBFRONT_INVALID_QUERY"], ViewBag.Error.Message)</h2>
|
2020-05-22 21:29:41 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
else
|
|
|
|
{
|
2022-04-21 13:39:09 -04:00
|
|
|
<h2 class="content-title mt-20 mb-0">Search Results</h2>
|
|
|
|
<div class="text-muted mb-15">@Html.Raw(Utilities.FormatExt(ViewBag.Localization["WEBFRONT_STATS_MESSAGES_FOUND"], $"<span class=\"badge\">{Model.TotalResultCount.ToString("N0")}</span>"))</div>
|
2020-05-22 21:29:41 -04:00
|
|
|
|
2022-04-19 19:43:58 -04:00
|
|
|
<table class="table bg-dark-dm bg-light-lm rounded" style="table-layout: fixed">
|
2020-05-22 21:29:41 -04:00
|
|
|
<thead class="d-none d-lg-table-header-group">
|
2022-04-19 19:43:58 -04:00
|
|
|
<tr class="bg-primary text-light">
|
|
|
|
<th colspan="20%">@ViewBag.Localization["WEBFRONT_PENALTY_TEMPLATE_ADMIN"]</th>
|
|
|
|
<th colspan="45%">@ViewBag.Localization["WEBFRONT_ACTION_LABEL_MESSAGE"]</th>
|
|
|
|
<th colspan="20%">@ViewBag.Localization["WEBFRONT_STATS_MESSAGE_SERVER_NAME"]</th>
|
|
|
|
<th colspan="15%" class="text-right">@ViewBag.Localization["WEBFRONT_ADMIN_AUDIT_LOG_TIME"]</th>
|
2020-05-22 21:29:41 -04:00
|
|
|
</tr>
|
|
|
|
</thead>
|
2022-04-19 19:43:58 -04:00
|
|
|
<tbody id="message_table_body">
|
2021-04-18 10:17:01 -04:00
|
|
|
<partial name="~/Views/Client/Message/_Item.cshtml" model="@Model.Results" />
|
2020-05-22 21:29:41 -04:00
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
2022-04-19 19:43:58 -04:00
|
|
|
<div id="loaderLoad" class="mt-10 m-auto text-center d-none d-lg-block">
|
|
|
|
<i class="loader-load-more oi oi-chevron-bottom "></i>
|
|
|
|
</div>
|
2020-05-22 21:29:41 -04:00
|
|
|
|
|
|
|
@section scripts {
|
|
|
|
<environment include="Development">
|
|
|
|
<script type="text/javascript" src="~/js/loader.js"></script>
|
|
|
|
</environment>
|
|
|
|
<script>
|
|
|
|
$(document).ready(function () {
|
|
|
|
initLoader('/Message/FindNext?query=@ViewBag.Query', '#message_table_body', @Model.RetrievedResultCount, @ViewBag.QueryLimit);
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
}
|
2022-04-19 19:43:58 -04:00
|
|
|
}
|
|
|
|
</div>
|