Finish FrontClient
This commit is contained in:
parent
a222f3c22e
commit
e1b25ef83b
@ -101,6 +101,13 @@ namespace BankYouBankruptClientApp.Controllers
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
public IActionResult Logout() {
|
||||
APIClient.Client = null;
|
||||
return Redirect("~/Home/Enter");
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Карты
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -4,7 +4,7 @@ html {
|
||||
|
||||
@media (min-width: 768px) {
|
||||
html {
|
||||
font-size: 20px;
|
||||
font-size: 19px;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user