44 lines
1.8 KiB
Plaintext
44 lines
1.8 KiB
Plaintext
@using ServiceStationContracts.ViewModels
|
||
@model List<CarViewModel>
|
||
@{
|
||
ViewData["Title"] = "CreateTechnicalWork";
|
||
}
|
||
<form method="post">
|
||
<div class="w-25 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" />
|
||
</div>
|
||
<div class="form-group py-2">
|
||
<label>Цена ТО</label>
|
||
<input type="number" min="100" step="100" id="WorkPrice" placeholder="Введите цену" name="WorkPrice" class="form-control" />
|
||
</div>
|
||
<table class="table">
|
||
<thead>
|
||
<tr>
|
||
<th scope="col">№</th>
|
||
<th scope="col">Номер машины</th>
|
||
<th scope="col">Марка машины</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
@foreach (var car in Model)
|
||
{
|
||
<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>
|
||
<br>
|
||
<div>
|
||
<input type="submit" value="Сохранить" class="btn btn-secondary text-center" />
|
||
</div>
|
||
</div>
|
||
</form> |