Finish FrontClient

This commit is contained in:
shadowik 2023-05-19 19:47:30 +04:00
parent a222f3c22e
commit e1b25ef83b
5 changed files with 15 additions and 9 deletions

View File

@ -101,6 +101,13 @@ namespace BankYouBankruptClientApp.Controllers
return; return;
} }
[HttpPost]
public IActionResult Logout() {
APIClient.Client = null;
return Redirect("~/Home/Enter");
}
#endregion #endregion
#region Карты #region Карты

View File

@ -23,8 +23,7 @@
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col-8"></div> <div class="col">
<div class="col-4">
<input id="createReport" type="submit" value="Сформировать отчёт" class="btn btn-warning" /> <input id="createReport" type="submit" value="Сформировать отчёт" class="btn btn-warning" />
</div> </div>
</div> </div>

View File

@ -13,13 +13,12 @@
<form method="post"> <form method="post">
<div class="row"> <div class="row">
<div class="row">Номер счета:</div> <div class="row">Номер счета:</div>
<div class="col-8"> <div class="col">
<select id="cardId" name="cardId" class="form-control" asp-items="@(new SelectList( @ViewBag.Cards, "Id", "Number"))"></select> <select id="cardId" name="cardId" class="form-control" asp-items="@(new SelectList( @ViewBag.Cards, "Id", "Number"))"></select>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col-8"></div> <div class="col">
<div class="col-4">
<input type="submit" value="Выбрать" class="btn btn-warning"/> <input type="submit" value="Выбрать" class="btn btn-warning"/>
</div> </div>
</div> </div>

View File

@ -50,9 +50,10 @@
</div> </div>
} }
else { else {
<div class="col-md-3 text-end"> <form method="post" class="col-md-3 text-end">
<a class="btn btn-warning me-2" asp-controller="Home" asp-action="Enter">@APIClient.Client.Name @APIClient.Client.Surname</a> <label for="exit" class="text-light">@APIClient.Client.Name @APIClient.Client.Surname </label>
</div> <button class="btn btn-warning me-2" id="exit" name="exit" type="submit" asp-controller="Home" asp-action="Logout">Выход</button>
</form>
} }
} }
</header> </header>

View File

@ -4,7 +4,7 @@ html {
@media (min-width: 768px) { @media (min-width: 768px) {
html { html {
font-size: 20px; font-size: 19px;
} }
} }