2024-04-30 00:44:32 +04:00
|
|
|
@using Contracts.ViewModels
|
|
|
|
|
|
|
|
@model List<DetailViewModel>
|
|
|
|
|
|
|
|
@{
|
2024-04-28 17:11:40 +04:00
|
|
|
ViewData["Title"] = "CreateProduction";
|
|
|
|
}
|
|
|
|
<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>
|
2024-04-30 00:44:32 +04:00
|
|
|
<div class="container">
|
|
|
|
<div>Details</div>
|
|
|
|
<div class="table-responsive-lg">
|
|
|
|
<table id="detailsTable" class="display">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Выбор</th>
|
|
|
|
<th>Название</th>
|
|
|
|
<th>Количество</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
@foreach (var detail in Model)
|
|
|
|
{
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<input type="checkbox" name="details" value="@detail.Id" />
|
|
|
|
</td>
|
|
|
|
<td>@detail.Name</td>
|
|
|
|
</tr>
|
|
|
|
}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
2024-04-28 17:11:40 +04:00
|
|
|
</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>
|
2024-04-30 00:44:32 +04:00
|
|
|
</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 () {
|
|
|
|
$('#detailsTable').DataTable();
|
|
|
|
});
|
|
|
|
</script>
|