еще куча, дубль 2
This commit is contained in:
parent
7fa4aecdd7
commit
c18c66ab23
19
BeautySalonView/ClientWebApp/Views/Home/Enter.cshtml
Normal file
19
BeautySalonView/ClientWebApp/Views/Home/Enter.cshtml
Normal file
@ -0,0 +1,19 @@
|
||||
@{
|
||||
ViewData["Title"] = "Вход";
|
||||
}
|
||||
|
||||
<h4 class="fw-bold">Вход в приложение</h4>
|
||||
|
||||
<form method="post">
|
||||
<div class="mb-3">
|
||||
<label for="login" class="form-label">Логин:</label>
|
||||
<input id="login" name="login" type="text" class="form-control" aria-label="Login">
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label for="password" class="form-label">Пароль:</label>
|
||||
<input id="password" name="password" type="password" class="form-control" aria-label="Password">
|
||||
</div>
|
||||
<button type="submit" class="btn button-primary">
|
||||
Войти
|
||||
</button>
|
||||
</form>
|
53
BeautySalonView/ClientWebApp/Views/Home/Order.cshtml
Normal file
53
BeautySalonView/ClientWebApp/Views/Home/Order.cshtml
Normal file
@ -0,0 +1,53 @@
|
||||
@using BeautySalonContracts.ViewModels
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Заказы";
|
||||
}
|
||||
|
||||
<h4 class="fw-bold">Заказы</h4>
|
||||
|
||||
<div class="d-flex flex-wrap align-items-center justify-content-between">
|
||||
<div class="d-flex mb-2 gap-1">
|
||||
<a asp-controller="Order" asp-action="Create" class="button-primary">
|
||||
Создать
|
||||
</a>
|
||||
<a id="update-button" class="button-primary">
|
||||
Обновить
|
||||
</a>
|
||||
<button id="delete-button" class="button-primary me-5">
|
||||
Удалить
|
||||
</button>
|
||||
</div>
|
||||
<div class="d-flex mb-2 gap-1">
|
||||
<div class="input-group" style="width: auto;">
|
||||
<input id="page-input" type="number" min="1" value="@ViewBag.Page" max="@ViewBag.NumberOfPages" class="form-control" style="max-width: 5em">
|
||||
<span class="input-group-text">/ @ViewBag.NumberOfPages</span>
|
||||
</div>
|
||||
<a href="/Home/Cars?page=@ViewBag.Page" id="go-button" class="button-primary">
|
||||
Перейти
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="border">
|
||||
<table class="table mb-0">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Номер заказа</th>
|
||||
<th>Дата заказа</th>
|
||||
<th>Сумма заказа</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach (var item in ViewBag.Order)
|
||||
{
|
||||
<tr class="table-row" id="row-@item.Id">
|
||||
<td>@item.Id</td>
|
||||
<td>@item.OrderDate</td>
|
||||
<td>@item.OrderAmount</td>
|
||||
</tr>
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<script src="~/js/order.js" asp-append-version="true"></script>
|
Loading…
x
Reference in New Issue
Block a user