mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-10 15:20:48 -05:00
added console page back
This commit is contained in:
20
WebfrontCore/Views/Console/Index.cshtml
Normal file
20
WebfrontCore/Views/Console/Index.cshtml
Normal file
@ -0,0 +1,20 @@
|
||||
@model IEnumerable<SharedLibrary.Dtos.ServerInfo>
|
||||
<div class="row justify-content-center">
|
||||
<div id="console" class="col-md-8">
|
||||
@Html.DropDownList("Server", Model.Select(s => new SelectListItem() { Text = s.Name, Value = s.ID.ToString() }).ToList(), new { @class = "form-control bg-dark text-light", id="console_server_select" })
|
||||
<div id="console_command_response" class="bg-dark p-3">
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<div class="col-12 col-sm-9 pr-1 pr-md-0">
|
||||
<input id="console_command_value" class="form-control m-0 bg-dark text-light" type="text" />
|
||||
</div>
|
||||
<div class="col pl-1 pl-md-0">
|
||||
<button id="console_command_button" class="btn btn-primary btn-block m-0">Execute</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@section scripts {
|
||||
<script type="text/javascript" src="~/js/console.js"></script>
|
||||
}
|
11
WebfrontCore/Views/Console/_Response.cshtml
Normal file
11
WebfrontCore/Views/Console/_Response.cshtml
Normal file
@ -0,0 +1,11 @@
|
||||
@model List<SharedLibrary.Dtos.CommandResponseInfo>
|
||||
@{
|
||||
Layout = null;
|
||||
}
|
||||
|
||||
@{
|
||||
foreach (var response in Model)
|
||||
{
|
||||
<span class="text-success">@response.Response</span><br />
|
||||
}
|
||||
}
|
@ -26,6 +26,7 @@
|
||||
<li class="nav-item text-center text-md-left">@Html.ActionLink("Home", "Index", "Home", new { area = "" }, new { @class = "nav-link" })</li>
|
||||
<li class="nav-item text-center text-md-left">@Html.ActionLink("Penalties", "List", "Penalty", new { area = "" }, new { @class = "nav-link" })</li>
|
||||
<li class="nav-item text-center text-md-left">@Html.ActionLink("Admins", "PrivilegedAsync", "Client", new { area = "" }, new { @class = "nav-link" })</li>
|
||||
<li class="nav-item text-center text-md-left">@Html.ActionLink("Console", "Index", "Console", new { area = "" }, new { @class = "nav-link" })</li>
|
||||
</ul>
|
||||
<form class="form-inline text-primary pt-3 pb-3" method="get" action="/Client/FindAsync">
|
||||
<input id="client_search" name="clientName" class="form-control mr-auto ml-auto mr-md-2" type="text" placeholder="Find Player" />
|
||||
|
Reference in New Issue
Block a user