Визуальные правочки

This commit is contained in:
Максим Яковлев 2024-05-29 19:12:54 +04:00
parent 6fadc84ab6
commit 5a21daeea4
17 changed files with 15 additions and 67 deletions

View File

@ -1,53 +0,0 @@
@using ServiceStationContracts.ViewModels;
@using ServiceStationDataModels.Models;
@{
ViewData["Title"] = "AddCarToTechnicalWork";
}
@model Tuple<List<TechnicalWorkViewModel>, List<CarViewModel>>
<div class="container">
<h2>Добавление машин к ТО:</h2>
<form method="post">
<div class="form-group">
<label for="technicalWork">Выберите ТО</label>
<select id="technicalWork" name="technicalWork" class="form-control">
@foreach (var technicalWork in Model.Item1)
{
<option value="@technicalWork.Id">@Html.DisplayFor(modelItem => technicalWork.WorkType)</option>
}
</select>
</div>
<div class="form-group">
<label for="car">Выберите машины</label>
<table class="table mb-0">
<thead>
<tr>
<th scope="col"></th>
<th scope="col">Номер</th>
<th scope="col">Марка</th>
</tr>
</thead>
<tbody>
@foreach (var car in Model.Item2)
{
<tr>
<td class="align-middle">
<div class="form-check">
<input type="checkbox" class="form-check-input" name="car[]" value="@car.Id" id="@car.Id">
</div>
</td>
<td class="align-middle">@Html.DisplayFor(modelItem => car.CarNumber)</td>
<td class="align-middle">@Html.DisplayFor(modelItem => car.CarBrand)</td>
</tr>
}
</tbody>
</table>
</div>
<br>
<div>
<input type="submit" value="Добавить" class="btn btn-secondary" />
</div>
</form>
</div>

View File

@ -5,7 +5,7 @@
ViewData["Title"] = "CreateCar";
}
<form method="post">
<div class="w-25 container justify-content-center align-items-center">
<div class="w-50 container justify-content-center align-items-center">
<div class="form-group py-2">
<label>Номер машины</label>
<input type="text" id="carNumber" placeholder="Введите номер машины" name="carNumber" class="form-control" />

View File

@ -7,7 +7,7 @@
<form method="post">
<div class="w-25 container justify-content-center align-items-center">
<div class="w-50 container justify-content-center align-items-center">
<div class="form-group py-2">
<label>Тип неисправности</label>
<input type="text" id="defectType" placeholder="Введите тип неисправности" name="defectType" class="form-control" />

View File

@ -4,7 +4,7 @@
ViewData["Title"] = "CreateTechnicalWork";
}
<form method="post">
<div class="w-25 container justify-content-center align-items-center">
<div class="w-50 container justify-content-center align-items-center">
<div class="form-group py-2">
<label>Тип ТО</label>
<input type="text" id="WorkType" placeholder="Введите тип ТО" name="WorkType" class="form-control" />

View File

@ -5,7 +5,7 @@
ViewData["Title"] = "DeleteCar";
}
<form method="post">
<div class="container d-flex justify-content-center align-items-center0 w-25">
<div class="container d-flex justify-content-center align-items-center0 w-50">
<div class="card-body">
<div class="form-group">
<label>Машины: </label>

View File

@ -5,7 +5,7 @@
ViewData["Title"] = "DeleteDefect";
}
<form method="post">
<div class="container d-flex justify-content-center align-items-center w-25">
<div class="container d-flex justify-content-center align-items-center w-50">
<div class="card-body">
<div class="form-group">
<label> Неисправности: </label>

View File

@ -3,7 +3,7 @@
ViewData["Title"] = "DeleteTechnicalWork";
}
<form method="post">
<div class="container d-flex justify-content-center align-items-center w-25">
<div class="container d-flex justify-content-center align-items-center w-50">
<div class="card-body">
<div class="form-group">
<label> ТО: </label>

View File

@ -8,7 +8,7 @@
<div class="text-center">
<h2 class="display-4">Вход в приложение</h2>
</div>
<form method="post" class="w-50 mx-auto">
<form method="post" class="w-75 mx-auto">
<div class="row my-4">
<div class="col-4">Номер телефона:</div>
<div class="col-8"><input type="text" class="form-control w-75" name="executorNumber" /></div>

View File

@ -4,6 +4,7 @@
<div class="text-center flex-column">
<h1 class="display-4">СТО "Руки-Крюки"</h1>
<img src="~/Images/ruki-kryuki.gif" width="200px"/>
<div class="p-2">
<img src="~/Images/max.png" width="100px" />
Яковлев М.Г. Роль Исполнителя

View File

@ -21,7 +21,7 @@
</div>
<div>
<label>Введите почту</label>
<input type="email" placeholder="Введите вашу почту" name="executorEmail" class="form-control w-25 mx-auto" />
<input type="email" placeholder="Введите вашу почту" name="executorEmail" class="form-control w-50 mx-auto" />
</div>
<div class="pt-3">
<div class="col-8"></div>

View File

@ -12,7 +12,7 @@
</h2>
</div>
<div class="text-center w-50 mx-auto">
<div class="text-center w-75 mx-auto">
<form method="post">
<div class="py-3">
<label>

View File

@ -8,7 +8,7 @@
<div class="text-center">
<h2 class="display-4">Регистрация</h2>
</div>
<form method="post" class="w-50 mx-auto p-3">
<form method="post" class="w-75 mx-auto p-3">
<div class="row p-3">
<div class="col-4">ФИО:</div>
<div class="col-8"><input type="text" class="form-control w-75" name="fio" /></div>

View File

@ -5,7 +5,7 @@
ViewData["Title"] = "UpdateCar";
}
<form method="post">
<div class="container d-flex justify-content-center align-items-center w-25">
<div class="container d-flex justify-content-center align-items-center w-75">
<div class="card-body ">
<div class="form-group">
<label>Машины: </label>

View File

@ -5,7 +5,7 @@
ViewData["Title"] = "UpdateDefect";
}
<form method="post">
<div class="container d-flex justify-content-center align-items-center w-50">
<div class="container d-flex justify-content-center align-items-center w-75">
<div class="card-body ">
<div class="form-group">
<label>Неисправности: </label>

View File

@ -5,7 +5,7 @@
ViewData["Title"] = "UpdateTechnicalWork";
}
<form method="post">
<div class="container d-flex justify-content-center align-items-center w-50">
<div class="container d-flex justify-content-center align-items-center w-75">
<div class="card-body ">
<div class="form-group">
<label>ТО: </label>

View File

@ -56,7 +56,7 @@
</nav>
</header>
<div class="container">
<main role="main" class="pb-3">
<main role="main" class="pb-3 w-50 mx-auto">
@RenderBody()
</main>
</div>

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB