2024-04-30 00:44:32 +04:00
|
|
|
@using Contracts.ViewModels
|
|
|
|
|
|
|
|
@model List<MachineViewModel>
|
|
|
|
|
|
|
|
@{
|
|
|
|
ViewData["Title"] = "Product-Add-Machine";
|
|
|
|
}
|
|
|
|
|
|
|
|
<div class="text-center">
|
2024-05-26 23:23:24 +04:00
|
|
|
<h1 class="display-4">Изделие - @ViewBag.Product.Name</h1>
|
2024-04-30 00:44:32 +04:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="container">
|
|
|
|
<h1>Список изделий</h1>
|
|
|
|
<div class="row">
|
|
|
|
@foreach (var machine in Model)
|
|
|
|
{
|
|
|
|
<div class="col-md-4">
|
|
|
|
<div class="card mb-4">
|
|
|
|
<div class="card-body">
|
|
|
|
<h5 class="card-title">@machine.Title</h5>
|
2024-05-26 23:23:24 +04:00
|
|
|
<form asp-action="ProductMachineAdd" method="post">
|
|
|
|
<input type="hidden" name="productId" value="@ViewBag.Product.Id"/>
|
|
|
|
<input type="hidden" name="machineId" value="@machine.Id" />
|
2024-04-30 00:44:32 +04:00
|
|
|
<button type="submit" class="btn btn-primary">Выбрать</button>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
}
|
|
|
|
</div>
|
|
|
|
</div>
|