еще куча, дубль 3

This commit is contained in:
Allllen4a 2024-04-30 19:38:49 +04:00
parent c18c66ab23
commit f933fdddae
4 changed files with 172 additions and 0 deletions

View File

@ -0,0 +1,52 @@
@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 class="d-flex mb-2 gap-1">
<div class="input-group" style="width: auto;">
</div>
<a href="/Home/Rating?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.Rating)
{
<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,44 @@

@{
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,51 @@
@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 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/Procedure?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>
</tr>
</thead>
<tbody>
@foreach (var item in ViewBag.Procedure)
{
<tr class="table-row" id="row-@item.Id">
<td>@item.ProcedureName</td>
<td>@item.ProcedurePrice</td>
</tr>
}
</tbody>
</table>
</div>
<script src="~/js/procedure.js" asp-append-version="true"></script>

View File

@ -0,0 +1,25 @@
@{
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>
<div class="mb-3">
<label for="email" class="form-label">Адрес электронной почты:</label>
<input id="email" name="email" type="email" class="form-control" aria-label="Email">
</div>
<div>
<button type="submit" class="btn button-primary">
Регистрация
</button>
</div>
</form>