2018-05-05 18:52:04 -04:00
|
|
|
@{
|
|
|
|
var loc = SharedLibraryCore.Utilities.CurrentLocalization.LocalizationIndex;
|
|
|
|
}
|
|
|
|
<!DOCTYPE html>
|
2018-02-21 20:29:23 -05:00
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
2018-03-13 17:30:22 -04:00
|
|
|
<title>@ViewBag.Title | IW4MAdmin</title>
|
|
|
|
<meta property="og:title" content="@ViewBag.Title | IW4MAdmin">
|
|
|
|
<meta property="og:type" content="website">
|
2018-03-26 00:51:25 -04:00
|
|
|
<meta property="og:image" content="@ViewBag.Url/images/icon.png">
|
2018-03-13 17:30:22 -04:00
|
|
|
<meta property="og:description" content="@ViewBag.Description">
|
|
|
|
<meta property="og:url" content="@ViewBag.Url">
|
|
|
|
<meta name="description" content="@ViewBag.Description">
|
|
|
|
<meta name="keywords" content="@ViewBag.Keywords">
|
2018-04-16 16:31:14 -04:00
|
|
|
<link rel="icon" type="image/png" href="~/images/icon.png">
|
|
|
|
|
2018-02-21 20:29:23 -05:00
|
|
|
<link href='https://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
|
2018-04-09 15:17:10 -04:00
|
|
|
<environment include="Development">
|
2019-07-27 09:18:49 -04:00
|
|
|
<link rel="stylesheet" href="~/dynamic/css/main.css" />
|
2018-02-21 20:29:23 -05:00
|
|
|
<link rel="stylesheet" href="~/lib/open-iconic/font/css/open-iconic-bootstrap.css" />
|
|
|
|
</environment>
|
2018-04-09 15:17:10 -04:00
|
|
|
<environment include="Production">
|
2019-07-27 09:18:49 -04:00
|
|
|
<link rel="stylesheet" href="~/dynamic/css/global.min.css" />
|
2018-02-22 01:06:21 -05:00
|
|
|
</environment>
|
2018-02-21 20:29:23 -05:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<header>
|
2019-03-30 23:04:15 -04:00
|
|
|
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
|
2019-07-27 16:23:45 -04:00
|
|
|
@Html.ActionLink((string)ViewBag.CustomBranding, "Index", "Home", new { area = "" }, new { @class = "navbar-brand" })
|
2018-02-21 20:29:23 -05:00
|
|
|
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
|
|
|
|
<span class="navbar-toggler-icon"></span>
|
|
|
|
</button>
|
|
|
|
<div class="collapse navbar-collapse" id="navbarCollapse">
|
|
|
|
<ul class="navbar-nav mr-auto">
|
2019-03-30 23:04:15 -04:00
|
|
|
<li class="nav-item text-center text-lg-left">@Html.ActionLink(loc["WEBFRONT_NAV_HOME"], "Index", "Home", new { area = "" }, new { @class = "nav-link" })</li>
|
|
|
|
<li class="nav-item text-center text-lg-left">@Html.ActionLink(loc["WEBFRONT_NAV_PENALTIES"], "List", "Penalty", new { area = "" }, new { @class = "nav-link" })</li>
|
|
|
|
<li class="nav-item text-center text-lg-left">@Html.ActionLink(loc["WEBFRONT_NAV_PRIVILEGED"], "PrivilegedAsync", "Client", new { area = "" }, new { @class = "nav-link" })</li>
|
2018-09-16 16:34:16 -04:00
|
|
|
@foreach (var _page in ViewBag.Pages)
|
2018-08-03 18:10:20 -04:00
|
|
|
{
|
2019-03-30 23:04:15 -04:00
|
|
|
<li class="nav-item text-center text-lg-left">
|
2018-08-03 18:10:20 -04:00
|
|
|
<a class="nav-link" href="@_page.Location">@_page.Name</a>
|
|
|
|
</li>
|
|
|
|
}
|
2019-03-30 23:04:15 -04:00
|
|
|
<li class="nav-item text-center text-lg-left"></li>
|
2018-05-05 18:52:04 -04:00
|
|
|
@if (!string.IsNullOrEmpty(ViewBag.SocialLink))
|
2018-04-09 23:33:42 -04:00
|
|
|
{
|
2019-03-30 23:04:15 -04:00
|
|
|
<li class="nav-item text-center text-lg-left"><a href="@ViewBag.SocialLink" class="nav-link" target="_blank">@ViewBag.SocialTitle</a></li>
|
2018-04-09 23:33:42 -04:00
|
|
|
}
|
2018-04-04 15:38:34 -04:00
|
|
|
@if (ViewBag.Authorized)
|
2018-04-09 23:33:42 -04:00
|
|
|
{
|
2019-03-30 23:04:15 -04:00
|
|
|
<li class="nav-link dropdown text-center text-lg-left p-0">
|
2018-04-13 02:32:30 -04:00
|
|
|
<a href="#" class="nav-link oi oi-person dropdown-toggle oi-fix-navbar w-100" id="account_dropdown" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"></a>
|
|
|
|
|
|
|
|
<div class="dropdown-menu p-0" aria-labelledby="account_dropdown">
|
2019-04-14 11:55:05 -04:00
|
|
|
<a asp-controller="Console" asp-action="Index" class="dropdown-item bg-dark text-muted text-center text-lg-left">@loc["WEBFRONT_NAV_CONSOLE"]</a>
|
|
|
|
<a asp-controller="Client" asp-action="ProfileAsync" asp-route-id="@ViewBag.User.ClientId" class="dropdown-item bg-dark text-muted text-center text-lg-left">@loc["WEBFRONT_NAV_PROFILE"]</a>
|
2019-07-07 18:57:06 -04:00
|
|
|
@if (ViewBag.User.Level >= SharedLibraryCore.Database.Models.EFClient.Permission.Owner)
|
2019-04-16 12:32:42 -04:00
|
|
|
{
|
|
|
|
<a asp-controller="Configuration" asp-action="Edit" class="dropdown-item bg-dark text-muted text-center text-lg-left">@loc["WEBFRONT_NAV_EDIT_CONFIGURATION"]</a>
|
|
|
|
}
|
2019-07-16 16:27:19 -04:00
|
|
|
<a class="dropdown-item bg-dark text-muted text-center text-lg-left profile-action" href="#" data-action="RecentClients" title="@loc["WEBFRONT_ACTION_RECENT_CLIENTS"]">@loc["WEBFRONT_ACTION_RECENT_CLIENTS"]</a>
|
2019-04-14 11:55:05 -04:00
|
|
|
<a class="dropdown-item bg-dark text-muted text-center text-lg-left profile-action" href="#" data-action="GenerateLoginToken" title="@loc["WEBFRONT_ACTION_TOKEN"]">@loc["WEBFRONT_ACTION_TOKEN"]</a>
|
|
|
|
<a asp-controller="Account" asp-action="LogoutAsync" class="dropdown-item bg-dark text-muted text-center text-lg-left">@loc["WEBFRONT_NAV_LOGOUT"]</a>
|
2018-04-13 02:32:30 -04:00
|
|
|
</div>
|
|
|
|
</li>
|
2018-04-09 23:33:42 -04:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
<li class="nav-item text-center text-md-left">
|
|
|
|
<a href="#" id="profile_action_login_btn" class="nav-link profile-action oi oi-key oi-fix-navbar w-100" title="Login" data-action="login" aria-hidden="true"></a>
|
|
|
|
</li>
|
|
|
|
}
|
2018-02-21 20:29:23 -05:00
|
|
|
</ul>
|
|
|
|
<form class="form-inline text-primary pt-3 pb-3" method="get" action="/Client/FindAsync">
|
2019-03-30 23:04:15 -04:00
|
|
|
<input id="client_search" name="clientName" class="form-control mr-lg-2 w-100" type="text" placeholder="@loc["WEBFRONT_NAV_SEARCH"]" />
|
2018-02-21 20:29:23 -05:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
</header>
|
2019-04-16 12:32:42 -04:00
|
|
|
|
2018-04-09 23:33:42 -04:00
|
|
|
<!-- loading icon -->
|
2018-04-13 02:32:30 -04:00
|
|
|
<div class="oi oi-loop-circular layout-loading-icon"></div>
|
2018-02-21 20:29:23 -05:00
|
|
|
|
2018-03-28 23:01:09 -04:00
|
|
|
<!-- Main Modal -->
|
2018-03-09 03:01:12 -05:00
|
|
|
<div class="modal fade" id="mainModal" tabindex="-1" role="dialog" aria-labelledby="mainModalLabel" aria-hidden="true">
|
|
|
|
<div class="modal-dialog" role="document">
|
|
|
|
<div class="modal-content bg-dark">
|
|
|
|
<div class="modal-header">
|
|
|
|
<h5 class="modal-title" id="mainModalLabel"></h5>
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
2018-03-13 17:30:22 -04:00
|
|
|
<span aria-hidden="true" class="text-danger">×</span>
|
2018-03-09 03:01:12 -05:00
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-03-28 23:01:09 -04:00
|
|
|
<!-- End Main Modal -->
|
2018-03-27 00:54:20 -04:00
|
|
|
<!-- Action Modal -->
|
|
|
|
<div class="modal fade" id="actionModal" tabindex="-1" role="dialog" aria-labelledby="actionModalLabel" aria-hidden="true">
|
|
|
|
<div class="modal-dialog" role="document">
|
|
|
|
<div class="modal-content bg-dark">
|
|
|
|
<div class="modal-header">
|
|
|
|
<h5 class="modal-title" id="actionModalLabel">IW4MAdmin</h5>
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
|
|
|
<span aria-hidden="true" class="text-danger">×</span>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
2018-04-05 00:38:45 -04:00
|
|
|
<div class="modal-message text-danger mb-3"></div>
|
|
|
|
<div class="modal-body-content"></div>
|
2018-03-27 00:54:20 -04:00
|
|
|
</div>
|
|
|
|
<!--<div class="modal-footer">
|
|
|
|
<button type="button" class="btn btn-primary">Action</button>
|
|
|
|
<button type="button" class="btn btn-secondary" data-dismiss="modal">Cancel</button>
|
|
|
|
</div>-->
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="target_id">
|
2018-03-30 00:13:40 -04:00
|
|
|
@RenderSection("targetid", required: false)
|
2018-03-27 00:54:20 -04:00
|
|
|
</div>
|
|
|
|
<!-- End Action Modal -->
|
|
|
|
|
2019-07-05 21:53:03 -04:00
|
|
|
<div class="@(ViewBag.IsFluid ?? false ? "container-fluid" : "container") pt-4 pb-4 pl-3 pr-3 pr-lg-4 pl-lg-4">
|
2018-02-21 20:29:23 -05:00
|
|
|
@RenderBody()
|
2018-09-16 16:34:16 -04:00
|
|
|
<footer id="footer_text">
|
|
|
|
<div class="d-lg-none d-block text-center pt-4 pb-4">
|
|
|
|
<a href="https://github.com/RaidMax/IW4M-Admin/releases" target="_blank">
|
|
|
|
@Program.Manager.Version
|
|
|
|
</a>
|
|
|
|
<br />
|
|
|
|
<span class="text-muted">Developed by RaidMax</span>
|
|
|
|
</div>
|
|
|
|
<div class="footer-mobile d-lg-block d-none text-center">
|
|
|
|
<a href="https://github.com/RaidMax/IW4M-Admin/releases" target="_blank">
|
|
|
|
@Program.Manager.Version
|
|
|
|
</a>
|
|
|
|
<br />
|
|
|
|
<span class="text-muted">Developed by RaidMax</span>
|
|
|
|
</div>
|
|
|
|
</footer>
|
2018-02-21 20:29:23 -05:00
|
|
|
</div>
|
2018-04-09 15:17:10 -04:00
|
|
|
<environment include="Development">
|
2018-02-21 20:29:23 -05:00
|
|
|
<script type="text/javascript" src="~/lib/jQuery/dist/jquery.js"></script>
|
2018-03-27 20:27:01 -04:00
|
|
|
<script type="text/javascript" src="~/lib/moment/moment.js"></script>
|
|
|
|
<script type="text/javascript" src="~/lib/moment-timezone/builds/moment-timezone-with-data.js"></script>
|
2018-02-21 20:29:23 -05:00
|
|
|
<script type="text/javascript" src="~/lib/bootstrap/dist/js/bootstrap.js"></script>
|
2019-01-27 20:45:35 -05:00
|
|
|
<script type="text/javascript" src="~/lib/canvasjs/canvasjs.js"></script>
|
2018-04-09 23:33:42 -04:00
|
|
|
<script type="text/javascript" src="~/js/action.js"></script>
|
2018-04-10 02:38:18 -04:00
|
|
|
<script type="text/javascript" src="~/js/search.js"></script>
|
2018-02-21 20:29:23 -05:00
|
|
|
</environment>
|
2018-04-09 15:17:10 -04:00
|
|
|
<environment include="Production">
|
2018-04-09 23:33:42 -04:00
|
|
|
<script type="text/javascript" src="~/js/global.min.js"></script>
|
2018-02-22 01:06:21 -05:00
|
|
|
</environment>
|
2019-05-17 10:02:09 -04:00
|
|
|
<script>
|
|
|
|
let _localizationTmp = @Html.Raw(Json.Serialize(ViewBag.Localization));
|
|
|
|
const _localization = [];
|
|
|
|
$.each(_localizationTmp.set, function (key, value) {
|
|
|
|
_localization[key] = value;
|
|
|
|
});
|
|
|
|
</script>
|
2018-02-21 20:29:23 -05:00
|
|
|
@RenderSection("scripts", required: false)
|
|
|
|
</body>
|
2018-03-13 17:30:22 -04:00
|
|
|
</html>
|