εミ(ο_ _)ο
This commit is contained in:
parent
287c251094
commit
c1e1248bfe
@ -1,64 +1,70 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>@ViewData["Title"] - BeutySalonClientApp</title>
|
||||
<link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.min.css" />
|
||||
<link rel="stylesheet" href="~/css/site.css" asp-append-version="true" />
|
||||
<link rel="stylesheet" href="~/BeutySalonClientApp.styles.css" asp-append-version="true" />
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>@ViewData["Title"] - BeutySalonClientApp</title>
|
||||
<link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.min.css" />
|
||||
<link rel="stylesheet" href="~/css/site.css" asp-append-version="true" />
|
||||
<link rel="stylesheet" href="~/BeutySalonClientApp.styles.css" asp-append-version="true" />
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<nav class="navbar navbar-expand-sm navbar-toggleable-sm navbar-light bg-white border-bottom box-shadow mb-3">
|
||||
<div class="container-fluid">
|
||||
<div class="d-flex flex-column">
|
||||
<a class="navbar-brand fw-weight-bold py-0 px-2" asp-area="" asp-controller="Home" asp-action="Index">Вы Ужасны</a>
|
||||
<div class="px-2">ClientApp</div>
|
||||
</div>
|
||||
<div class="mx-2">
|
||||
<img src="https://png.pngtree.com/png-clipart/20191120/original/pngtree-spider-glyph-icon-vector-png-image_5056646.jpg" alt="mdo" width="35" height="35" class="rounded-circle">
|
||||
</div>
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target=".navbar-collapse" aria-controls="navbarSupportedContent"
|
||||
aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
<div class="navbar-collapse collapse d-sm-inline-flex justify-content-between">
|
||||
<ul class="navbar-nav flex-grow-1">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link text-dark" asp-area="" asp-controller="Home" asp-action="Register">Регистрация</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link text-dark" asp-area="" asp-controller="Home" asp-action="Enter">Авторизация</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link text-dark" asp-area="" asp-controller="Home" asp-action="Procedure">Процедуры</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link text-dark" asp-area="" asp-controller="Home" asp-action="Order">Заказы</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link text-dark" asp-area="" asp-controller="Home" asp-action="Rating">Оценки</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
</header>
|
||||
<div class="container">
|
||||
<main role="main" class="pb-3">
|
||||
@RenderBody()
|
||||
</main>
|
||||
</div>
|
||||
<header>
|
||||
<nav class="navbar navbar-expand-sm navbar-toggleable-sm navbar-light bg-white border-bottom box-shadow mb-3">
|
||||
<div class="container-fluid">
|
||||
<div class="d-flex flex-column">
|
||||
<a class="navbar-brand fw-weight-bold py-0 px-2" asp-area="" asp-controller="Home" asp-action="Index">Вы Ужасны</a>
|
||||
<div class="px-2">ClientApp</div>
|
||||
</div>
|
||||
<div class="mx-2">
|
||||
<img src="https://sun9-24.userapi.com/impg/AyVABOovpEhT_XRKJ5-AfQopMZCzJ1w9xOjNzw/XtXFrtPMWhc.jpg?size=1080x1092&quality=95&sign=822391009593062bec0a7ce08018b334&type=album" alt="mdo" width="35" height="35" class="rounded-circle">
|
||||
</div>
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target=".navbar-collapse" aria-controls="navbarSupportedContent"
|
||||
aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
<div class="navbar-collapse collapse d-sm-inline-flex justify-content-between">
|
||||
<ul class="navbar-nav flex-grow-1">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link text-dark" asp-area="" asp-controller="Home" asp-action="Register">Регистрация</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link text-dark" asp-area="" asp-controller="Home" asp-action="Enter">Авторизация</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link text-dark" asp-area="" asp-controller="Home" asp-action="Procedure">Процедуры</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link text-dark" asp-area="" asp-controller="Home" asp-action="Order">Заказы</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link text-dark" asp-area="" asp-controller="Home" asp-action="Rating">Оценки</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link text-dark" asp-area="" asp-controller="Home" asp-action="ServiceList">Список</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link text-dark" asp-area="" asp-controller="Home" asp-action="Report">Отчет</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
</header>
|
||||
<div class="container">
|
||||
<main role="main" class="pb-3">
|
||||
@RenderBody()
|
||||
</main>
|
||||
</div>
|
||||
|
||||
<footer class="border-top footer text-muted">
|
||||
<div class="container">
|
||||
© 2023 - BeutySalonClientApp - <a asp-area="" asp-controller="Home" asp-action="Privacy">Privacy</a>
|
||||
</div>
|
||||
</footer>
|
||||
<script src="~/lib/jquery/dist/jquery.min.js"></script>
|
||||
<script src="~/lib/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
|
||||
<script src="~/js/site.js" asp-append-version="true"></script>
|
||||
@await RenderSectionAsync("Scripts", required: false)
|
||||
<footer class="border-top footer text-muted">
|
||||
<div class="container">
|
||||
© 2023 - BeutySalonClientApp - <a asp-area="" asp-controller="Home" asp-action="Privacy">Privacy</a>
|
||||
</div>
|
||||
</footer>
|
||||
<script src="~/lib/jquery/dist/jquery.min.js"></script>
|
||||
<script src="~/lib/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
|
||||
<script src="~/js/site.js" asp-append-version="true"></script>
|
||||
@await RenderSectionAsync("Scripts", required: false)
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
@ -7,9 +7,7 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<None Include="Views\Cosmetic\Create.cshtml" />
|
||||
<None Include="Views\Cosmetic\Update.cshtml" />
|
||||
<None Include="Views\Home\Cosmetic.cshtml" />
|
||||
<None Include="Views\Home\Enter.cshtml" />
|
||||
<None Include="Views\Home\Index.cshtml" />
|
||||
<None Include="Views\Home\LaborCosts.cshtml" />
|
||||
@ -39,4 +37,11 @@
|
||||
<ProjectReference Include="..\BeautySalonDataModels\BeautySalonDataModels.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Content Update="Views\Cosmetic\Update.cshtml">
|
||||
<ExcludeFromSingleFile>true</ExcludeFromSingleFile>
|
||||
<CopyToPublishDirectory>PreserveNewest</CopyToPublishDirectory>
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
@ -0,0 +1,26 @@
|
||||
@{
|
||||
ViewData["Title"] = "Косметика";
|
||||
}
|
||||
|
||||
<h4 class="fw-bold">Создать косметику</h4>
|
||||
|
||||
<form method="post" asp-controller="Cosmetic" asp-action="Create">
|
||||
<p class="mb-0">Бренд:</p>
|
||||
<input type="text" name="brand" class="form-control mb-3" />
|
||||
<p class="mb-0">Наименование косметики:</p>
|
||||
<input type="text" name="cosmeticName" class="form-control mb-3" />
|
||||
<p class="mb-0">Стоимость:</p>
|
||||
<input type="number" step="0.01" min="0.01" name="cosmeticPrice" class="form-control mb-3" />
|
||||
<p class="mb-0">Выбрать трудозатрату для привязки:</p>
|
||||
<select class="form-select mb-2" name="laborCostsId">
|
||||
@foreach (var laborCosts in @ViewBag.LaborCostsList)
|
||||
{
|
||||
<option value="@laborCosts.Id">
|
||||
часы: @(laborCosts.NumberHours), сложность: @(laborCosts.Difficulty)
|
||||
</option>
|
||||
}
|
||||
</select>
|
||||
<button type="submit" class="btn button-primary">
|
||||
Создать
|
||||
</button>
|
||||
</form>
|
@ -0,0 +1,36 @@
|
||||
@{
|
||||
ViewData["Title"] = "Косметика";
|
||||
}
|
||||
|
||||
<h4 class="fw-bold">Обновить косметику</h4>
|
||||
|
||||
<form method="post" asp-controller="Cosmetic" asp-action="Update">
|
||||
<input name="id" value="@ViewBag.Cosmetic.Id" style="display: none;" />
|
||||
<p class="mb-0">Бренд:</p>
|
||||
<input type="text" value="@ViewBag.Cosmetic.Brand" name="brand" class="form-control mb-3" />
|
||||
<p class="mb-0">Наименование косметики:</p>
|
||||
<input type="text" value="@ViewBag.Cosmetic.CosmeticName" name="cosmeticName" class="form-control mb-3" />
|
||||
<p class="mb-0">Стоимость:</p>
|
||||
<input type="number" step="0.01" value="0.01" name="cosmeticPrice" class="form-control mb-3" />
|
||||
<p class="mb-0">Трудозатраты:</p>
|
||||
<select class="form-select mb-2" name="laborCostsId">
|
||||
@foreach (var laborCosts in @ViewBag.LaborCostsList)
|
||||
{
|
||||
@if (laborCosts.Id == ViewBag.Service.LaborCostsId)
|
||||
{
|
||||
<option value="@laborCosts.Id" selected>
|
||||
часы: @(laborCosts.NumberHours), специалисты: @(laborCosts.NumberSpecialists)
|
||||
</option>
|
||||
}
|
||||
else
|
||||
{
|
||||
<option value="@laborCosts.Id">
|
||||
часы: @(laborCosts.NumberHours), специалисты: @(laborCosts.NumberSpecialists)
|
||||
</option>
|
||||
}
|
||||
}
|
||||
</select>
|
||||
<button type="submit" class="button-primary">
|
||||
Обновить
|
||||
</button>
|
||||
</form>
|
53
BeautySalonView/StaffMemberWebApp/Views/Home/Cosmetic.cshtml
Normal file
53
BeautySalonView/StaffMemberWebApp/Views/Home/Cosmetic.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="Cosmetic" asp-action="Create" class="btn button-primary">
|
||||
Создать
|
||||
</a>
|
||||
<button id="update-button" class="btn button-primary">
|
||||
Обновить
|
||||
</button>
|
||||
<button id="delete-button" class="btn 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="btn btn-lg 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.Cosmetic)
|
||||
{
|
||||
<tr class="table-row" id="row-@item.Id">
|
||||
<td>@item.Brand</td>
|
||||
<td>@item.CosmeticName</td>
|
||||
<td>@item.CosmeticPrice</td>
|
||||
</tr>
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<script src="~/js/cosmetic.js" asp-append-version="true"></script>
|
19
BeautySalonView/StaffMemberWebApp/Views/Home/Enter.cshtml
Normal file
19
BeautySalonView/StaffMemberWebApp/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>
|
@ -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="LaborCosts" 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/Cosmetics?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.LaborCosts)
|
||||
{
|
||||
<tr class="table-row" id="row-@item.Id">
|
||||
<td>@item.NumberHours</td>
|
||||
<td>@item.Difficlty</td>
|
||||
</tr>
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<script src="~/js/laborcosts.js" asp-append-version="true"></script>
|
25
BeautySalonView/StaffMemberWebApp/Views/Home/Register.cshtml
Normal file
25
BeautySalonView/StaffMemberWebApp/Views/Home/Register.cshtml
Normal 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>
|
53
BeautySalonView/StaffMemberWebApp/Views/Home/Service.cshtml
Normal file
53
BeautySalonView/StaffMemberWebApp/Views/Home/Service.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="Service" asp-action="Create" class="button-primary">
|
||||
Создать
|
||||
</a>
|
||||
<a id="update-button" class="button-primary">
|
||||
Обновить
|
||||
</a>
|
||||
<a id="bind-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?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.Service)
|
||||
{
|
||||
<tr class="table-row" id="row-@item.Id">
|
||||
<td>@item.ServiceName</td>
|
||||
<td>@item.ServicePrice</td>
|
||||
</tr>
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<script src="~/js/service.js" asp-append-version="true"></script>
|
@ -0,0 +1,15 @@
|
||||
@{
|
||||
ViewData["Title"] = "Трудозатраты";
|
||||
}
|
||||
|
||||
<h4 class="fw-bold">Создать трудозатрату</h4>
|
||||
|
||||
<form method="post" asp-controller="LaborCosts" asp-action="Create">
|
||||
<p class="mb-0">Количество часов:</p>
|
||||
<input type="number" name="numberHours" class="form-control mb-3" />
|
||||
<p class="mb-0">Сложность:</p>
|
||||
<input type="text" name="difficulty" class="form-control mb-3" />
|
||||
<button type="submit" class="btn button-primary">
|
||||
Создать
|
||||
</button>
|
||||
</form>
|
@ -0,0 +1,16 @@
|
||||
@{
|
||||
ViewData["Title"] = "Трудозатраты";
|
||||
}
|
||||
|
||||
<h4 class="fw-bold">Обновить трудозатраты</h4>
|
||||
|
||||
<form method="post" asp-controller="LaborCosts" asp-action="Update">
|
||||
<input name="id" value="@ViewBag.LaborCosts.Id" style="display: none;" />
|
||||
<p class="mb-0">Количество часов:</p>
|
||||
<input type="number" value="@ViewBag.LaborCosts.NumberHours" name="numberHours" class="form-control mb-3" />
|
||||
<p class="mb-0">Сложность:</p>
|
||||
<input type="text" value="@ViewBag.LaborCosts.Difficulty" name="difficulty" class="form-control mb-3" />
|
||||
<button type="submit" class="btn button-primary">
|
||||
Обновить
|
||||
</button>
|
||||
</form>
|
@ -0,0 +1,15 @@
|
||||
@{
|
||||
ViewData["Title"] = "Услуги";
|
||||
}
|
||||
|
||||
<h4 class="fw-bold">Создать услугу</h4>
|
||||
|
||||
<form method="post" asp-controller="Service" asp-action="Create">
|
||||
<p class="mb-0">Наименование услуги:</p>
|
||||
<input name="serviceName" class="form-control mb-2" />
|
||||
<p class="mb-0">Стоимость услуги:</p>
|
||||
<input type="number" step="0.01" name="servicePrice" class="form-control mb-2" />
|
||||
<button id="create-button" class="button-primary text-button">
|
||||
Создать
|
||||
</button>
|
||||
</form>
|
@ -0,0 +1,18 @@
|
||||
@{
|
||||
ViewData["Title"] = "Услуга";
|
||||
}
|
||||
|
||||
<h4 class="fw-bold">Обновить услугу</h4>
|
||||
|
||||
<form method="post" asp-controller="Service" asp-action="Update">
|
||||
<input name="id" value="@ViewBag.Service.Id" style="display: none;" />
|
||||
<p class="mb-0">Наименование услуги:</p>
|
||||
<input value="@ViewBag.Service.ServiceName" name="serviceName" class="form-control mb-2" />
|
||||
<p class="mb-0">Стоимость услуги:</p>
|
||||
<input value="@ViewBag.Service.ServicePrice.ToString("0.00").Replace(",", ".")"
|
||||
type="number" step="0.01" name="servicePrice" class="form-control mb-2" />
|
||||
<button class="button-primary">
|
||||
Обновить
|
||||
</button>
|
||||
</form>
|
||||
|
Loading…
x
Reference in New Issue
Block a user