CourseWork_BankYouBankrupt/BankYouBankrupt/BankYouBankruptClientApp/Views/Shared/_Layout.cshtml

75 lines
3.6 KiB
Plaintext
Raw Normal View History

2023-05-17 13:47:26 +04:00
@using BankYouBankruptСlientApp
2023-05-17 01:00:04 +04:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
2023-05-17 13:47:26 +04:00
<title>@ViewData["Title"]</title>
<link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.min.css" />
2023-05-16 20:05:59 +04:00
<link rel="stylesheet" href="~/css/site.css" />
2023-05-19 17:00:13 +04:00
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.2/css/all.css">
2023-05-16 20:05:59 +04:00
<script src="~/lib/jquery/dist/jquery.min.js"></script>
<script src="~/lib/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
</head>
<body>
2023-05-19 17:00:13 +04:00
<header class="d-flex flex-wrap align-items-center justify-content-center justify-content-md-between py-3 px-4 mg-5 mb-4 border-bottom bg-dark ">
<div class="col-md-3 mb-2 mb-md-0">
<a asp-controller="Home" asp-action="Enter" class="d-inline-flex link-body-emphasis text-decoration-none">
<span class="fs-4 text-light ">Банк "Вы банкрот"</span>
</a>
</div>
<ul class="nav col-12 col-md-auto mb-2 justify-content-center mb-md-0 nav-main">
<li>
<a asp-controller="Home" asp-action="CardsList" class="nav-link px-2 link-light">Карты</a>
</li>
<li class="dropdown">
<a href="#" class="nav-link px-2 link-light">Операции</a>
<ul class="dropdown-menu dropdown-menu-dark" aria-labelledby="navbarDarkDropdownMenuLink">
<li><a class="dropdown-item" asp-controller="Home" asp-action="CreditingList">Пополнить средства</a></li>
<li><a asp-controller="Home" asp-action="DebitingList" class="dropdown-item">Снять средства</a></li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="nav-link px-2 link-light">Отчеты</a>
<ul class="dropdown-menu dropdown-menu-dark" aria-labelledby="navbarDarkDropdownMenuLink">
<li><a class="dropdown-item" asp-controller="Home" asp-action="CreateExcelReport">Отчет по картам</a></li>
<li><a class="dropdown-item" asp-controller="Home" asp-action="CreateReport">Отчет за период</a></li>
<li><a class="dropdown-item" asp-controller="Home" asp-action="Diagram">Диаграмма</a></li>
</ul>
</li>
</ul>
@{
if (APIClient.Client == null)
{
<div class="col-md-3 text-end">
<a class="btn btn-primary me-2" asp-controller="Home" asp-action="Login">Войти</a>
<a class="btn btn-primary" asp-controller="Home" asp-action="Register">Регистрация</a>
</div>
}
else {
<div class="col-md-3 text-end">
<a class="btn btn-primary me-2" asp-controller="Home" asp-action="Enter">@APIClient.Client.Name @APIClient.Client.Surname</a>
</div>
2023-05-19 17:00:13 +04:00
}
}
</header>
<div class="container">
<main role="main" class="pb-3">
@RenderBody()
</main>
</div>
<footer class="border-top footer text-muted">
<div class="container">
2023-05-17 01:00:04 +04:00
&copy; 2023 - BankYouBankruptClientApp
</div>
</footer>
<script src="~/lib/jquery/dist/jquery.min.js"></script>
<script src="~/lib/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
<script src="~/js/site.js" asp-append-version="true"></script>
@await RenderSectionAsync("Scripts", required: false)
</body>
2023-05-16 20:05:59 +04:00
</html>