формы клиента

This commit is contained in:
Allllen4a 2024-05-01 18:15:54 +04:00
parent 6d861608da
commit e50a80f5bb
4 changed files with 175 additions and 0 deletions

View File

@ -0,0 +1,44 @@
@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="Evaluation" 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>
<div class="border">
<table class="table mb-0">
<thead>
<tr>
<th>Баллы за процедуру</th>
<th>Баллы за косметику</th>
<th>Процедура</th>
</tr>
</thead>
<tbody>
@foreach (var item in ViewBag.Evaluation)
{
<tr class="table-row" id="row-@item.Id">
<td>@item.PointsProcedure</td>
<td>@item.PointsCosmetics</td>
<td>@item.ProcedureName</td>
</tr>
}
</tbody>
</table>
</div>
<script src="~/js/rating.js" asp-append-version="true"></script>

View File

@ -0,0 +1,43 @@
@{
ViewData["Title"] = "FormationDinner";
}
<div class="text-center">
<h1 class="display-4">Формирование заказов</h1>
</div>
<div class="text-center">
@{
if (Model == null)
{
<h3 class="display-4">Авторизируйтесь</h3>
return;
}
<p>
<a asp-action="Create">Создать заказ</a>
</p>
<table class="table">
<thead>
<tr>
<th>
Номер
</th>
<th>
Дата создания
</th>
<th>
Цена
</th>
</tr>
</thead>
<tbody>
@foreach (var item in Model)
{
}
</tbody>
</table>
}
</div>

View File

@ -0,0 +1,44 @@
@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>
<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>

View File

@ -0,0 +1,44 @@
@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="Procedure" 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>
<div class="border">
<table class="table mb-0">
<thead>
<tr>
<th>Наименование процедуры</th>
<th>Длительность процедуры</th>
<th>Цена процедуры</th>
</tr>
</thead>
<tbody>
@foreach (var item in ViewBag.Procedure)
{
<tr class="table-row" id="row-@item.Id">
<td>@item.ProcedureName</td>
<td>@item.ProcedureDuration</td>
<td>@item.ProcedurePrice</td>
</tr>
}
</tbody>
</table>
</div>
<script src="~/js/procedure.js" asp-append-version="true"></script>