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;
}
[HttpPost]
public IActionResult Logout() {
APIClient.Client = null;
return Redirect("~/Home/Enter");
}
#endregion
#region Карты

View File

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

View File

@ -13,13 +13,12 @@
<form method="post">
<div class="row">
<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>
</div>
</div>
<div class="row">
<div class="col-8"></div>
<div class="col-4">
<div class="col">
<input type="submit" value="Выбрать" class="btn btn-warning"/>
</div>
</div>

View File

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

View File

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