чуть подправил Веб-кар
This commit is contained in:
parent
0877c3404b
commit
00f24aec78
@ -15,7 +15,7 @@ namespace ImplementerApp.Controllers
|
||||
private readonly ILogger<HomeController> _logger;
|
||||
private readonly ICompletionsLogic _completionsLogic;
|
||||
private readonly IAdministratorLogic _adminLogic;
|
||||
private readonly ICarSalesLogic _carLogic;
|
||||
private readonly ICarSaleLogic _carLogic;
|
||||
private readonly IBonusLogic _inspectionLogic;
|
||||
|
||||
|
||||
|
@ -1,56 +0,0 @@
|
||||
@using CarCenterContracts.ViewModels
|
||||
|
||||
@model List<CarSalesViewModel>
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "CreateBonus";
|
||||
}
|
||||
<div class="text-center">
|
||||
<h2 class="display-4">Создание осмотра</h2>
|
||||
</div>
|
||||
<form method="post">
|
||||
<div class="row">
|
||||
<div class="col-4">Название:</div>
|
||||
<div class="col-8"><input type="text" name="title" id="title" /></div>
|
||||
</div>
|
||||
<div class="container">
|
||||
<div>CarSales</div>
|
||||
<div class="table-responsive-lg">
|
||||
<table id="CarSalessTable" class="display">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Выбор</th>
|
||||
<th>Название</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach (var CarSales in Model)
|
||||
{
|
||||
<tr>
|
||||
<td>
|
||||
<input type="checkbox" name="carcales" value="@CarSales.Id" />
|
||||
</td>
|
||||
<td>@CarSales.CarBrand</td>
|
||||
</tr>
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-4">Сумма:</div>
|
||||
<div class="col-8"><input type="text" id="sum" name="sum" readonly /></div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-8"></div>
|
||||
<div class="col-4"><input type="submit" value="Сохранить" class="btn btn-primary" /></div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
|
||||
<script src="https://cdn.datatables.net/1.11.3/js/jquery.dataTables.js"></script>
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
$('#CarsTable').DataTable();
|
||||
});
|
||||
</script>
|
@ -49,12 +49,7 @@
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.BonusDate)
|
||||
</td>
|
||||
<td>
|
||||
<a asp-action="CreateBonus" asp-route-id="@item.Id" class="btn btn-primary">Изменить</a>
|
||||
</td>
|
||||
<td>
|
||||
<a asp-action="Delete" asp-route-id="@item.Id" class="btn btn-danger">Удалить</a>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
}
|
||||
</tbody>
|
||||
|
@ -1,6 +1,6 @@
|
||||
@using CarCenterContracts.ViewModels
|
||||
|
||||
@model List<CarSalesViewModel>
|
||||
@model List<CarViewModel>
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Cars";
|
||||
|
Loading…
Reference in New Issue
Block a user